- update the Dockerfile to switch to the cli-variant (as it doesn't
require a docker daemon), and update to the latest v29 image
- update the script to not use the deprecated libnetwork repository
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -1,8 +1,7 @@ |
| 1 |
-FROM docker:18-dind |
|
| 1 |
+# syntax=docker/dockerfile:1 |
|
| 2 |
+ |
|
| 3 |
+FROM docker:29-cli |
|
| 2 | 4 |
|
| 3 |
-RUN set -ex \ |
|
| 4 |
- && echo "http://nl.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories \ |
|
| 5 |
- && echo "http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories |
|
| 6 | 5 |
RUN apk add --no-cache \ |
| 7 | 6 |
util-linux \ |
| 8 | 7 |
bridge-utils \ |
| ... | ... |
@@ -17,4 +16,4 @@ RUN apk add --no-cache \ |
| 17 | 17 |
WORKDIR /bin |
| 18 | 18 |
COPY *.sh /bin/ |
| 19 | 19 |
|
| 20 |
-CMD /bin/run.sh |
|
| 20 |
+CMD ["/bin/run.sh"] |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
#!/bin/sh |
| 2 | 2 |
|
| 3 | 3 |
# try to fetch the latest version from github |
| 4 |
-wget -O support.sh.new https://raw.githubusercontent.com/docker/libnetwork/master/support/support.sh |
|
| 4 |
+wget -O support.sh.new https://raw.githubusercontent.com/moby/moby/refs/heads/master/daemon/libnetwork/support/support.sh |
|
| 5 | 5 |
|
| 6 | 6 |
if [ "$?" -eq "0" ]; then |
| 7 | 7 |
mv support.sh.new support.sh |