-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (27 loc) · 1.1 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
FROM gcr.io/i-agility-205814/pyatmos@sha256:049d7e1a55d5834eaa806415ca5bcdc4097341c93a9d5bb69520b59ac1e645e8
#FROM gcr.io/i-agility-205814/pyatmos
MAINTAINER Will Fawcett <willfaw@gmail.com>
RUN apt-get update \
&& apt-get install -y vim \
&& apt-get install -y git \
&& apt-get install -y python3-pip python3-dev \
&& cd /usr/local/bin \
&& ln -s /usr/bin/python3 python \
&& pip3 install --upgrade pip
# Make sure we're in the top directory
RUN pwd && cd / && pwd
# Create directory structure
RUN mkdir -p /code/
RUN mkdir -p /results/
# Trick to make sure the latest version of the git repos are always checked out
#RUN /bin/true
# Checkout kuber-master and install packages
RUN cd /code/ && git clone https://gitlab.com/frontierdevelopmentlab/astrobiology/kuber-master.git
RUN cd /code/kuber-master && pip3 install -r requirements.txt
# Checkout pyatmos and install
RUN cd /code/ && git clone https://gitlab.com/frontierdevelopmentlab/astrobiology/pyatmos.git
RUN cd /code/pyatmos && pip3 install .
# Run the worker
CMD /code/kuber-master/run.sh
# make sure the docker image persists
#CMD sleep 35000d