Skip to content

Commit eedd1dd

Browse files
committed
new version
1 parent f86b95d commit eedd1dd

10 files changed

Lines changed: 362 additions & 127 deletions

File tree

.docker/install-modest.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
echo 'Downloading Modest (targetplatform = ${TARGETPLATFORM})';
2+
mkdir tmp; cd tmp;
3+
wget https://www.modestchecker.net/Downloads/Modest-umb-all.zip ;
4+
unzip Modest-umb-all.zip ;
5+
rm Modest-umb-all.zip ;
6+
ls
7+
if [ "${TARGETPLATFORM}" = "linux/x64" ] ; then
8+
echo 'Installing Modest for linux/x64';
9+
tar xvf Modest-linux-x64.tar.xz;
10+
else
11+
echo 'Installing Modest for linux/arm64';
12+
tar xvf Modest-linux-arm64.tar.xz ;
13+
fi
14+
mv Modest /opt/Modest
15+
cd .. ;
16+
rm -rf tmp ;

.docker/tools.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@
33
storm = "/opt/storm/build/bin/storm"
44
# For prism, we ask the location of the directory.
55
prism = "/opt/prism/"
6+
modest = "/opt/Modest/"
7+
8+
["byproducts"]
9+
tmpfolder = "/tmp"
10+
cleanup = 0

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
./docker
2+
./git
3+
./github
4+
./ipynb_checkpoints
5+
./tmp
6+
*.egg_info

Dockerfile

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
1-
# Dockerfile for Storm
2-
######################
3-
# The Docker image can be built by executing:
4-
# docker build -t yourusername/storm .
5-
# A different base image can be set from the commandline with:
6-
# --build-arg BASE_IMAGE=<new_base_image>
7-
# Dockerfile installing all dependencies for Storm
8-
##################################################
9-
# The Docker image can be built by executing:
10-
# docker build -t yourusername/storm-dependencies .
11-
# A different base image can be set from the commandline with:
12-
# --build-arg BASE_IMAGE=<new_base_image>
1+
# Dockerfile for UMB Obervatory
2+
# Based on the Storm docker files.
133

144
# Set base image
5+
# We use the storm depencies as a basis as it already includes various necessary packages.
156
ARG BASE_IMAGE=movesrwth/storm-dependencies:latest
16-
ARG TARGETPLATFORM
7+
178

189
######################################################################
1910
# The final JupyterHub image, platform specific
20-
FROM $BASE_IMAGE AS umbihub
21-
LABEL org.opencontainers.image.authors="dev@stormchecker.org"
11+
FROM $BASE_IMAGE AS umbiobservatory
12+
LABEL org.opencontainers.image.authors="pmctools"
2213

14+
ARG TARGETPLATFORM
2315
EXPOSE 8000
2416

17+
# Install dependencies
18+
# For storm: libarchive-dev and ninja-build
19+
# For prism: default-jdk
20+
# For mdoest xz-utils
2521
RUN apt-get update -qq \
2622
&& apt-get install -yqq --no-install-recommends \
2723
python-is-python3 \
2824
python3-pip \
29-
python3-venv
25+
python3-venv \
26+
unzip \
27+
&& apt-get install -yqq --no-install-recommends \
28+
libarchive-dev ninja-build libboost-iostreams-dev \
29+
default-jdk \
30+
xz-utils
3031

3132
ENV VIRTUAL_ENV=/opt/venv
3233
RUN python3 -m venv $VIRTUAL_ENV
@@ -39,37 +40,40 @@ RUN python3 -m pip install --no-cache-dir jupyter matplotlib scipy pytest blac
3940
ARG storm_build_type=Release
4041
# Specify number of threads to use for parallel compilation
4142
ARG no_threads=1
42-
#
43-
# For storm: libarchive-dev and ninja-build
44-
# For prism: default-jdk
45-
RUN apt-get update -qq \
46-
&& apt-get install -yqq --no-install-recommends \
47-
libarchive-dev ninja-build libboost-iostreams-dev \
48-
default-jdk
43+
ARG storm_repo=https://github.com/tquatmann/storm.git
44+
ARG storm_branch=io/binaryformat
45+
ARG prism_repo=https://github.com/davexparker/prism.git
46+
ARG prism_branch=umb
4947

5048
# Build Storm
5149
#############
5250
WORKDIR /opt/
5351

54-
RUN git clone -b io/binaryformat https://github.com/tquatmann/storm.git
52+
RUN git clone -b $storm_branch $storm_repo
5553

5654
# Switch to build directory
5755
RUN mkdir -p /opt/storm/build
5856
WORKDIR /opt/storm/build
59-
6057
# Configure Storm
6158
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=$storm_build_type \
6259
-DSTORM_PORTABLE=ON \
6360
-DSTORM_USE_LTO=OFF \
6461
..
6562
RUN ninja storm-cli -j 4
6663

64+
# Build Prism
65+
#############
6766
WORKDIR /opt/
68-
69-
RUN git clone -b umb https://github.com/davexparker/prism.git
67+
RUN git clone -b $prism_branch $prism_repo
7068
WORKDIR /opt/prism/prism
7169
RUN make
7270

71+
# Download Modest
72+
#################
73+
WORKDIR /opt/
74+
COPY .docker/install-modest.sh install-modest.sh
75+
RUN bash install-modest.sh
76+
7377
#### Install UMB
7478
RUN python3 -m pip install --no-cache-dir umbi
7579

0 commit comments

Comments
 (0)