mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
netcat tarnap
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
This commit is contained in:
parent
cf3089b480
commit
5f3b42cae1
9
netcat/Dockerfile
Normal file
9
netcat/Dockerfile
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
FROM debian:sid
|
||||||
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
netcat \
|
||||||
|
--no-install-recommends \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
ENTRYPOINT [ "netcat" ]
|
38
tarsnap/Dockerfile
Normal file
38
tarsnap/Dockerfile
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
FROM debian:sid
|
||||||
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
ca-certificates \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
ENV TARSNAP_VERSION 1.0.36.1
|
||||||
|
|
||||||
|
RUN buildDeps=' \
|
||||||
|
curl \
|
||||||
|
e2fslibs-dev \
|
||||||
|
gcc \
|
||||||
|
libc6-dev \
|
||||||
|
libdigest-sha-perl \
|
||||||
|
libssl-dev \
|
||||||
|
make \
|
||||||
|
zlib1g-dev \
|
||||||
|
' \
|
||||||
|
&& set -x \
|
||||||
|
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
|
&& curl -sSL "https://www.tarsnap.com/download/tarsnap-autoconf-${TARSNAP_VERSION}.tgz" -o /tmp/tarsnap.tgz \
|
||||||
|
&& curl -sSL "https://www.tarsnap.com/download/tarsnap-sigs-${TARSNAP_VERSION}.asc" -o /tmp/tarsnap.tgz.asc \
|
||||||
|
&& curl -sSL "https://www.tarsnap.com/tarsnap-signing-key-2015.asc" | gpg --import \
|
||||||
|
&& sha=$(gpg --decrypt /tmp/tarsnap.tgz.asc | awk '{ print $4 }') \
|
||||||
|
&& if [ "$sha" != "$(shasum -a 256 /tmp/tarsnap.tgz | awk '{ print $1 }')" ]; then exit 1; fi \
|
||||||
|
&& mkdir -p /usr/src/tarsnap \
|
||||||
|
&& tar -xzf /tmp/tarsnap.tgz -C /usr/src/tarsnap --strip-components 1 \
|
||||||
|
&& rm /tmp/tarsnap.tgz* \
|
||||||
|
&& cd /usr/src/tarsnap \
|
||||||
|
&& ./configure --prefix=/usr \
|
||||||
|
&& make \
|
||||||
|
&& make install \
|
||||||
|
&& rm -rf /usr/src/tarsnap \
|
||||||
|
&& apt-get purge -y --auto-remove $buildDeps
|
||||||
|
|
||||||
|
CMD [ "tarsnap", "--help" ]
|
Loading…
Reference in New Issue
Block a user