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.

Dockerfile 822B

1234567891011121314151617181920212223242526272829303132333435
  1. # nicer alpine image
  2. FROM alpine
  3. RUN set -e -x -o pipefail \
  4. #
  5. # install busybox-extras, dumb-init and nodnsd
  6. #
  7. && apk --no-cache add busybox-extras dumb-init \
  8. && mkdir -p /usr/local/sbin \
  9. && wget -q -O /usr/local/sbin/nodnsd https://git.bernhard-ehlers.de/ehlers/nodnsd/releases/download/v0.1/nodnsd_linux_amd64.bin \
  10. && chmod 755 /usr/local/sbin/nodnsd \
  11. #
  12. # add gns3 user
  13. #
  14. && printf 'gns3\ngns3\n' | adduser gns3 \
  15. #
  16. # startup script
  17. #
  18. && printf '\
  19. \043!/bin/sh\n\
  20. [ $$ -eq 1 ] && exec dumb-init -r 15:1 -- "$0" "$@"\n\
  21. \n\
  22. nodnsd\n\
  23. [ -f /root/init.sh ] && [ -x /root/init.sh ] && /root/init.sh\n\
  24. \n\
  25. if [ $# -gt 0 ]; then\n\
  26. exec "$@"\n\
  27. else\n\
  28. cd; exec ash -i\n\
  29. fi\n' \
  30. > /etc/init.sh && chmod +x /etc/init.sh
  31. ENTRYPOINT [ "/etc/init.sh" ]
  32. VOLUME [ "/root", "/home/gns3" ]