Skip to content

Commit d9cd5bc

Browse files
committed
fmk - adding DockerfileQUO, used with DockerfileCommon in SimCenterCommon repo
1 parent 352bceb commit d9cd5bc

File tree

1 file changed

+4
-100
lines changed

1 file changed

+4
-100
lines changed

DockerfileWE

Lines changed: 4 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,9 @@
1-
FROM ubuntu:bionic
1+
FROM simcenter-common
22

33
SHELL ["/bin/bash", "-c"]
44

5-
ARG versionWEUQ=xxxxxx
6-
ARG versionSimCenterCommon=v23.09
7-
ARG versionSimCenterBackend=v23.09
8-
ARG versionOpenSees=v3.5.0
9-
105
WORKDIR /simcenter
116

12-
#
13-
# Install Qt
14-
# note: utilizes following for Qt: https://launchpad.net/~beineri/+archive/ubuntu/opt-qt-5.15.2-bionic
15-
#
16-
17-
RUN apt-get update \
18-
&& apt-get install -y sudo \
19-
&& sudo apt install -y software-properties-common cmake \
20-
&& sudo add-apt-repository -y ppa:beineri/opt-qt-5.15.2-bionic \
21-
&& sudo apt update \
22-
&& sudo apt-get install -y build-essential freeglut3-dev python3-pip git \
23-
&& sudo python3 -m pip install -U pip \
24-
&& pip3 install conan==1.60.1 \
25-
&& sudo apt-get install -y qt515base qt5153d qt515charts-no-lgpl qt515webengine
26-
277
#
288
# Install cmake needed for VTK
299
#
@@ -63,14 +43,14 @@ RUN wget https://www.vtk.org/files/release/9.2/VTK-9.2.6.tar.gz \
6343
# && git clone -b $versionEE --single-branch https://github.com/NHERI-SimCenter/WE-UQ.git \
6444

6545
RUN source /opt/qt515/bin/qt515-env.sh \
66-
&& git clone https://github.com/NHERI-SimCenter/SimCenterCommon.git \
67-
&& git clone https://github.com/NHERI-SimCenter/WE-UQ.git \
46+
&& git clone --depth 1 --branch master https://github.com/NHERI-SimCenter/SimCenterCommon.git \
47+
&& git clone --depth 1 --branch master https://github.com/NHERI-SimCenter/WE-UQ.git \
6848
&& cd WE-UQ \
6949
&& mkdir build \
7050
&& cd build \
7151
&& conan install .. --build missing \
7252
&& source /opt/qt515/bin/qt515-env.sh \
73-
&& qmake ../WE-UQ.pro \
53+
&& qmake "QMAKE_CXXFLAGS+=-D_SC_RELEASE" ../WE-UQ.pro \
7454
&& make \
7555
&& rm -fr .obj *.o *.cpp \
7656
&& rm -fr /simcenter/SimCenterCommon
@@ -87,82 +67,6 @@ RUN sudo sh -c "wget -O - https://dl.openfoam.org/gpg.key > /etc/apt/trusted.gp
8767
&& sudo apt-get update \
8868
&& sudo apt-get -y install openfoam10
8969

90-
#
91-
# Build OpenSees
92-
# note: some stuff in there to get latest cmake as 3.10 not doing it
93-
#
94-
95-
RUN sudo apt-get install -y cmake liblapack-dev libomp-dev libssl-dev apt-transport-https ca-certificates wget \
96-
&& wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null \
97-
&& sudo apt-add-repository "deb https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main" \
98-
&& sudo apt-get update \
99-
&& sudo apt-get install -y cmake gfortran gcc g++ \
100-
&& git clone -b $versionOpenSees --single-branch https://github.com/OpenSees/OpenSees.git \
101-
&& cd OpenSees \
102-
&& mkdir build; cd build \
103-
&& conan install .. --build missing \
104-
&& cmake .. \
105-
&& cmake --build . --config Release \
106-
&& cmake --install . \
107-
&& sudo mv ./lib/* /usr/local/lib \
108-
&& cd ../..; rm -fr OpenSees
109-
110-
#
111-
# Build Dakota
112-
# note: dakota also needed more upto date cmake
113-
114-
RUN wget https://github.com/snl-dakota/dakota/releases/download/v6.15.0/dakota-6.15.0-public-src-cli.tar.gz \
115-
&& sudo apt-get install -y libboost-dev libboost-all-dev libopenmpi-dev openmpi-bin xorg-dev libmotif-dev \
116-
&& tar zxBf dakota-6.15.0-public-src-cli.tar.gz \
117-
&& mv dakota-6.15.0-public-src-cli dakota-6.15.0 \
118-
&& cd dakota-6.15.0 \
119-
&& mkdir build; cd build \
120-
&& cmake .. \
121-
&& cmake --build . --config Release \
122-
&& cmake --install . \
123-
&& cd ../..; rm -fr dakot*
124-
125-
126-
#
127-
# Build SimCenter Backend Applications
128-
# note: need newer gcc, gcc-10 which necessitates removing old conan
129-
#
130-
131-
RUN git clone -b $versionSimCenterBackend https://github.com/NHERI-SimCenter/SimCenterBackendApplications.git \
132-
&& cp ./SimCenterBackendApplications/modules/performUQ/SimCenterUQ/nataf_gsa/CMakeLists.txt.UBUNTU ./SimCenterBackendApplications/modules/performUQ/SimCenterUQ/nataf_gsa/CMakeLists.txt \
133-
&& rm -fr ~/.conan \
134-
&& sudo apt-get install -y liblapack-dev libomp-dev libssl-dev apt-transport-https ca-certificates \
135-
&& sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test \
136-
&& sudo apt-get update \
137-
&& sudo apt-get install -y gcc-10 g++-10 gfortran-10 \
138-
&& export CC=gcc-10 \
139-
&& export CXX=g++-10 \
140-
&& export FC=gfortran-10 \
141-
&& conan remote add simcenter https://nherisimcenter.jfrog.io/artifactory/api/conan/simcenter \
142-
&& cd SimCenterBackendApplications \
143-
&& mkdir build \
144-
&& cd build \
145-
&& conan install .. --build missing \
146-
&& cmake .. \
147-
&& cmake --build . --config Release \
148-
&& cmake --install . \
149-
&& cd ../..
150-
151-
#
152-
# Install python3.9
153-
# note: need a later python3 for nheri-simcenter
154-
# which we have to build from source!!!
155-
#
156-
157-
RUN sudo apt-get install -y zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libreadline-dev libffi-dev libbz2-dev \
158-
&& wget https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz \
159-
&& tar -xf Python-3.9.6.tgz \
160-
&& cd Python-3.9.6 \
161-
&& ./configure --enable-optimizations \
162-
&& sudo make install \
163-
&& cd ..; rm -fr python* \
164-
&& pip3 install nheri-simcenter
165-
16670
#
16771
# Copy all files into correct locations for running & clean up
16872
#

0 commit comments

Comments
 (0)