forked from AI-Planning/planutils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
65 lines (52 loc) · 1.68 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
62
63
64
65
FROM ubuntu:18.04
#maintainer information
LABEL maintainer="Christian Muise ([email protected])"
# update the apt package manager
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN apt-get update && apt-get -y install locales
# Install required packages
RUN apt-get update && apt-get install --no-install-recommends -y \
build-essential \
libssl-dev \
uuid-dev \
libgpgme11-dev \
squashfs-tools \
libseccomp-dev \
ca-certificates \
pkg-config \
curl \
scons \
gcc-multilib \
flex \
bison \
vim \
git \
cmake \
unzip \
g++-multilib \
wget \
cryptsetup
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
# install python and related
RUN apt-get install -y python3 python3-dev python3-pip python3-venv
RUN pip3 install --upgrade pip
# get a recent version of singularity
RUN export VERSION=1.13 OS=linux ARCH=amd64 && \
wget https://dl.google.com/go/go$VERSION.$OS-$ARCH.tar.gz && \
tar -C /usr/local -xzvf go$VERSION.$OS-$ARCH.tar.gz && \
rm go$VERSION.$OS-$ARCH.tar.gz
ENV GOPATH="${HOME}/go"
ENV PATH="/usr/local/go/bin:${PATH}:${GOPATH}/bin"
RUN export VERSION=3.5.0 && \
wget https://github.com/sylabs/singularity/releases/download/v${VERSION}/singularity-${VERSION}.tar.gz && \
tar -xzf singularity-${VERSION}.tar.gz
WORKDIR /singularity
RUN ./mconfig && make -C ./builddir && make -C ./builddir install
RUN echo '. /usr/local/etc/bash_completion.d/singularity' >> ~/.bashrc
# install & setup the planutils
RUN pip3 install planutils --trusted-host pypi.org --trusted-host files.pythonhosted.org
RUN planutils --setup
WORKDIR /root
# default command to execute when container starts
CMD /bin/bash