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.1KB

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