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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # docker image with basic networking tools and web browser
  2. FROM ehlers/ipterm-base
  3. RUN set -e -x \
  4. #
  5. # install web tools
  6. #
  7. && export DEBIAN_FRONTEND=noninteractive \
  8. && apt-get update \
  9. && apt-get -y --no-install-recommends install \
  10. firefox-esr lxterminal jwm menu leafpad \
  11. && rm -rf /var/lib/apt/lists/* \
  12. #
  13. # firefox start script
  14. #
  15. && printf '\
  16. \043!/bin/sh\n\
  17. \n\
  18. \043 use home page on first start\n\
  19. [ -e "$HOME/.mozilla" ] || start_url="about:home"\n\
  20. \n\
  21. \043 start firefox\n\
  22. firefox $start_url\n' \
  23. > /usr/local/bin/start-firefox && chmod +x /usr/local/bin/start-firefox \
  24. #
  25. # customize jwm menu
  26. #
  27. && printf '\
  28. ?package(firefox-esr):\\\n\
  29. needs="x11"\\\n\
  30. section="Applications"\\\n\
  31. title="Mozilla Firefox"\\\n\
  32. command="start-firefox"\n' \
  33. > /etc/menu/firefox \
  34. && echo "postrun=\"sed -i '/^ </ d' debian-menu\"" >> /etc/menu-methods/jwm \
  35. && sed -i 's/\(Desktops width\)="[0-9]*"/\1="2"/' /etc/jwm/system.jwmrc \
  36. && sed -i 's/xterm/x-terminal-emulator/g' /etc/jwm/system.jwmrc \
  37. && update-menus \
  38. #
  39. # set lxterminal defaults
  40. #
  41. && mkdir -p /root/.config/lxterminal \
  42. && printf '\
  43. [general]\n\
  44. scrollback=1000\n\
  45. fgcolor=#ffffff\n' \
  46. > /root/.config/lxterminal/lxterminal.conf \
  47. #
  48. # startup script
  49. #
  50. && printf '\
  51. \043!/bin/sh\n\
  52. [ $$ -eq 1 ] && exec dumb-init -- "$0" "$@"\n\
  53. \n\
  54. \043 workaround: sometimes the first start of an X application fails\n\
  55. lxterminal -e true 2> /dev/null\n\
  56. \n\
  57. cd\n\
  58. export SHELL=/bin/bash\n\
  59. start-firefox &\n\
  60. jwm\n' \
  61. > /etc/init.sh && chmod +x /etc/init.sh
  62. VOLUME [ "/root" ]
  63. CMD [ "/etc/init.sh" ]