-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
61 lines (54 loc) · 1.85 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM ubuntu:18.04 AS base
MAINTAINER Brian Ball [email protected]
# install locales and set to en_US.UTF-8. This is needed for running the CLI on some machines
# such as singularity.
RUN apt-get update && apt-get install -y \
build-essential \
git \
autoconf \
libssl-dev \
libicu-dev \
ninja-build \
python3.7-dev \
python3-pip \
sudo \
wget \
bsdtar \
software-properties-common
RUN apt-add-repository ppa:brightbox/ruby-ng && \
apt-get update && \
apt-get install -y ruby2.5 ruby2.5-dev
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.7 1
RUN update-alternatives --set python /usr/bin/python3.7
RUN ln -s /usr/bin/pip3 /usr/bin/pip
RUN python -m pip install --upgrade pip
RUN pip install conan setuptools wheel twine requests packaging
#RUN pip3 install conan
ARG CMAKE_VERSION=3.17.1
RUN cd /usr/local/src/ && \
mkdir cmake && \
cd cmake && \
wget https://github.com/Kitware/CMake/releases/download/v$CMAKE_VERSION/cmake-$CMAKE_VERSION.tar.gz && \
bsdtar --strip-components=1 -xvf cmake-$CMAKE_VERSION.tar.gz && \
./bootstrap && \
make -j$(nproc) && \
make install && \
ln -s /usr/local/bin/cmake /usr/bin/cmake
#use branch python_measure
RUN cd /usr/local/src && \
mkdir openstudio && \
cd openstudio && \
git clone https://github.com/NREL/OpenStudio.git . && \
git checkout python-measure-dynamic && \
mkdir build && \
cd build
# cmake -G Ninja -DDYNAMIC_OPENSTUDIO=ON -DCMAKE_BUILD_TYPE=Release -DCPACK_BINARY_DEB=ON -DCPACK_SOURCE_ZIP=OFF -DBUILD_PYTHON_BINDINGS=ON -DBUILD_PYTHON_PIP_PACKAGE=ON -DBUILD_TESTING=OFF -DBUILD_RUBY_BINDINGS=ON -DBUILD_CLI=ON ../.
#RUN cd /usr/local/src/openstudio/build && \
# ninja; exit 0 && \
# ninja; exit 0 && \
# ninja
#RUN cd /usr/local/src/openstudio/build && \
# ninja; exit 0
# ninja package && \
# ninja_python_package
CMD [ "/bin/bash" ]