forked from GoogleCloudPlatform/cloud-builders-community
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (32 loc) · 1.01 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
FROM centos
ARG VERSION=v3.1.1
ENV GOPATH=/go
ENV PATH=${PATH}:/usr/local/go/bin:/go/bin
# https://www.sylabs.io/guides/3.0/user-guide/installation.html
RUN \
yum update -y && \
yum groupinstall -y 'Development Tools' && \
yum install -y \
openssl-devel \
libuuid-devel \
libseccomp-devel \
wget \
git \
squashfs-tools
RUN \
mkdir ${GOPATH} && \
wget https://dl.google.com/go/go1.11.linux-amd64.tar.gz && \
tar -C /usr/local -xzvf go1.11.linux-amd64.tar.gz && \
rm go1.11.linux-amd64.tar.gz && \
/usr/local/go/bin/go get -u github.com/golang/dep/cmd/dep
RUN \
export GOPATH=/go && \
mkdir -p $GOPATH/src/github.com/sylabs/singularity && \
git clone https://github.com/sylabs/singularity ${GOPATH}/src/github.com/sylabs/singularity && \
cd $GOPATH/src/github.com/sylabs/singularity && \
git fetch && \
git checkout $VERSION && \
./mconfig && \
make -C ./builddir && \
make -C ./builddir install
ENTRYPOINT ["/usr/local/bin/singularity"]