forked from vmware-archive/bin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (26 loc) · 1.13 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
FROM golang:1.6
# install Go BOSH CLI
ADD https://s3.amazonaws.com/dk-shared-assets/cli-linux-feb11 /usr/local/bin/bosh
RUN chmod +x /usr/local/bin/bosh
# directory in which to place prebuilt assets vendored by the concourse binary
RUN mkdir /opt/static-assets
# pre-build `tar` so we don't have to every time
RUN cd /tmp && curl https://ftp.gnu.org/gnu/tar/tar-1.28.tar.gz | tar zxf - && \
cd tar-1.28 && \
FORCE_UNSAFE_CONFIGURE=1 ./configure && \
make LDFLAGS=-static && \
cp src/tar /opt/static-assets/tar && \
cd .. && \
rm -rf tar-1.28
# pre-build btrfs-progs
RUN apt-get update && \
apt-get -y install liblzo2-dev libblkid-dev e2fslibs-dev pkg-config libz-dev && \
cd /tmp && \
curl https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v4.4.tar.gz | tar zxf - && \
cd btrfs-progs-v4.4 && \
LDFLAGS=-static ./configure --disable-documentation && \
make && \
cp btrfs mkfs.btrfs /opt/static-assets && \
cd /tmp && \
rm -rf btrfs-progs-v4.4 && \
apt-get -y remove liblzo2-dev libblkid-dev e2fslibs-dev pkg-config libz-dev