forked from cloudfoundry/bosh
/
Dockerfile
55 lines (47 loc) · 1.17 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
FROM ubuntu:xenial
RUN \
apt-get update && \
apt-get -y install \
apt-transport-https \
autoconf \
btrfs-tools \
ca-certificates \
curl \
dnsutils \
git \
iproute2 \
iptables \
lsb-release \
openssh-client \
pkg-config \
quota \
ruby \
software-properties-common \
sshpass \
sudo \
uidmap \
ulogd \
xfsprogs \
zip \
&& \
apt-get clean
# install libseccomp (needed for garden-runc)
RUN \
curl -LO https://github.com/seccomp/libseccomp/releases/download/v2.3.1/libseccomp-2.3.1.tar.gz && \
tar zxf libseccomp-2.3.1.tar.gz && \
cd libseccomp-2.3.1/ && \
./configure && \
make && \
make install
COPY --from=golang:1 /usr/local/go /usr/local/go
ENV GOROOT=/usr/local/go PATH=/usr/local/go/bin:$PATH
ADD ./install-garden.sh /tmp/install-garden.sh
RUN /tmp/install-garden.sh
RUN rm /tmp/install-garden.sh
COPY bosh /usr/local/bin/
RUN chmod +x /usr/local/bin/bosh
COPY bosh-deployment /usr/local/bosh-deployment/
COPY start-bosh.sh /usr/local/bin/start-bosh
RUN chmod +x /usr/local/bin/start-bosh
COPY start-garden.sh /usr/local/bin/start-garden
RUN chmod +x /usr/local/bin/start-garden