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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 mousepad \
  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. && printf '\
  35. ?package(mousepad):\\\n\
  36. needs="x11"\\\n\
  37. section="Applications/TextEditor"\\\n\
  38. title="Mousepad"\\\n\
  39. command="mousepad"\n' \
  40. > /etc/menu/mousepad \
  41. && echo "postrun=\"sed -i '/^ </ d' debian-menu\"" >> /etc/menu-methods/jwm \
  42. && sed -i 's/\(Desktops width\)="[0-9]*"/\1="2"/' /etc/jwm/system.jwmrc \
  43. && sed -i 's/xterm/x-terminal-emulator/g' /etc/jwm/system.jwmrc \
  44. && update-menus \
  45. #
  46. # set lxterminal defaults
  47. #
  48. && mkdir -p /root/.config/lxterminal \
  49. && printf '\
  50. [general]\n\
  51. scrollback=1000\n\
  52. fgcolor=#ffffff\n' \
  53. > /root/.config/lxterminal/lxterminal.conf \
  54. #
  55. # startup script
  56. #
  57. && printf '\
  58. \043!/bin/sh\n\
  59. [ $$ -eq 1 ] && exec dumb-init -- "$0" "$@"\n\
  60. \n\
  61. \043 workaround: sometimes the first start of an X application fails\n\
  62. lxterminal -e true 2> /dev/null\n\
  63. \n\
  64. cd\n\
  65. export SHELL=/bin/bash\n\
  66. start-firefox &\n\
  67. jwm\n' \
  68. > /etc/init.sh && chmod +x /etc/init.sh
  69. VOLUME [ "/root" ]
  70. CMD [ "/etc/init.sh" ]