GNS3 Docker Images
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
974B

  1. #!/bin/sh
  2. # create a package list for every docker image in a "packages" directory
  3. mkdir -p packages
  4. # Debian based base images
  5. docker run --entrypoint "" --rm debian:buster-slim dpkg -l > packages/debian_buster
  6. docker run --entrypoint "" --rm ehlers/ipterm dpkg -l > packages/ipterm
  7. docker run --entrypoint "" --rm ehlers/webterm dpkg -l > packages/webterm
  8. docker run --entrypoint "" --rm ehlers/web_java dpkg -l > packages/web_java
  9. # Debian based images
  10. grep -ilE '^FROM .*\b(debian|ipterm|webterm)' */Dockerfile | while read -r dockerfile; do
  11. image=$(dirname "$dockerfile")
  12. docker run --entrypoint "" --rm $image dpkg -l > packages/$image
  13. done
  14. # Alpine base image
  15. docker run --entrypoint "" --rm alpine apk list -q -I | sort > packages/alpine
  16. # Alpine based images
  17. grep -il '^FROM alpine' */Dockerfile | while read -r dockerfile; do
  18. image=$(dirname "$dockerfile")
  19. docker run --entrypoint "" --rm $image apk list -q -I | sort > packages/$image
  20. done