1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Add auto update to support.sh

Before running the support script
try to fetch the latest version

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
This commit is contained in:
Flavio Crisciani 2018-06-20 15:29:45 -07:00
parent 9dbf55097a
commit 5de876c7ae
2 changed files with 20 additions and 36 deletions

View file

@ -2,48 +2,18 @@ FROM docker:18-dind
RUN set -ex \ RUN set -ex \
&& echo "http://nl.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories \ && echo "http://nl.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories \
&& echo "http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \ && echo "http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
&& apk update \ RUN apk add --no-cache \
&& apk add --no-cache \
tcpdump \
bridge-utils \
netcat-openbsd \
util-linux \ util-linux \
bridge-utils \
iptables \ iptables \
iputils \ iputils \
iproute2 \ iproute2 \
iftop \
drill \
apache2-utils \
strace \
curl \
ethtool \
ipvsadm \ ipvsadm \
ngrep \
iperf \
nmap \
nmap-nping \
conntrack-tools \ conntrack-tools \
socat \ bash
busybox-extras \
tcptraceroute \
mtr \
fping \
liboping \
iptraf-ng \
dhcping \
nmap-nping \
net-snmp-tools \
python2 \
py2-virtualenv \
py-crypto \
scapy \
vim \
bird \
bash \
bind-tools
WORKDIR /bin WORKDIR /bin
COPY support.sh . COPY *.sh /bin/
CMD /bin/support.sh CMD /bin/run.sh

14
libnetwork/support/run.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
# try to fetch the latest version from github
wget -O support.sh.new https://raw.githubusercontent.com/docker/libnetwork/master/support/support.sh
if [ "$?" -eq "0" ]; then
mv support.sh.new support.sh
chmod +x support.sh
else
echo "issue fetching the latest support.sh, will use the container version"
fi
echo "run the support script"
./support.sh