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 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Web browser plus Java
  2. FROM ehlers/webterm
  3. RUN set -e -x \
  4. #
  5. # install Java v8 and Java Web Start
  6. #
  7. && export DEBIAN_FRONTEND=noninteractive \
  8. && printf '\
  9. deb http://deb.debian.org/debian stretch main\n\
  10. deb http://security.debian.org/debian-security stretch/updates main\n' \
  11. > /etc/apt/sources.list.d/stretch.list \
  12. && apt-get update \
  13. && mkdir -p /usr/share/man/man1 \
  14. && apt-get -y --no-install-recommends install \
  15. icedtea-netx/stretch openjdk-8-jre/stretch java-common/stretch \
  16. fonts-dejavu-extra yad \
  17. && apt-mark hold icedtea-netx openjdk-8-jre java-common \
  18. && rm /etc/apt/sources.list.d/stretch.list \
  19. && rm -rf /var/lib/apt/lists/* \
  20. #
  21. # customize jwm menu
  22. #
  23. && printf '\
  24. ?package(icedtea-netx):\\\n\
  25. needs="x11"\\\n\
  26. section="Applications"\\\n\
  27. title="ASDM Launcher"\\\n\
  28. command="start-asdm"\n' \
  29. > /etc/menu/asdm \
  30. && update-menus \
  31. #
  32. # ASDM Launcher
  33. #
  34. && printf '\
  35. \043!/bin/sh\n\
  36. \n\
  37. asa_ip=$(yad --entry --title="ASDM Launcher" \\\n\
  38. --text="\\n Connects to ASAv by ASDM \\n" \\\n\
  39. --entry-text="IP")\n\
  40. [ $? -ne 0 ] && exit 1\n\
  41. [ -z "$asa_ip" ] || [ "$asa_ip" = "IP" ] && exit 1\n\
  42. \n\
  43. javaws "https://$asa_ip/admin/public/asdm.jnlp" < /dev/null\n' \
  44. > /usr/local/bin/start-asdm \
  45. && chmod +x /usr/local/bin/start-asdm \
  46. #
  47. # startup script
  48. #
  49. && sed -i '/firefox/d' /etc/init.sh
  50. VOLUME [ "/etc/java-8-openjdk" ]