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

1234567891011121314151617181920212223242526272829303132333435
  1. FROM alpine
  2. #
  3. # install iouyap, tini and (frozen) ioutools
  4. #
  5. RUN set -e -x -o pipefail \
  6. && printf '\0\0\0\0' > /etc/hostid \
  7. && apk --no-cache add iouyap tini \
  8. && apk --no-cache add --virtual build-deps python3-dev gcc musl-dev wget ca-certificates \
  9. && pip3 install --quiet --no-cache-dir cx_Freeze==5.0.2 \
  10. # install and freeze IOUtools
  11. && cd /tmp \
  12. && wget -q https://git.bernhard-ehlers.de/ehlers/IOUtools/raw/branch/master/iou_import \
  13. && wget -q https://git.bernhard-ehlers.de/ehlers/IOUtools/raw/branch/master/iou_export \
  14. && printf '\
  15. from cx_Freeze import setup, Executable\n\
  16. setup (\n\
  17. options = { "build_exe": { "build_exe": "/usr/local/bin", "silent": True, "zip_exclude_packages": None, "zip_include_packages": "*" } },\n\
  18. executables = [ Executable("iou_import"), Executable("iou_export") ]\n\
  19. )\n' \
  20. > setup.py \
  21. && ln -s "$(which ldd)" ldd \
  22. && python3 setup.py build \
  23. && rm /usr/local/bin/ldd \
  24. && rm iou_export iou_import setup.py ldd \
  25. && cd - \
  26. # cleanup
  27. && pip3 uninstall --quiet --yes cx_Freeze \
  28. && rm -rf /root/.cache \
  29. && apk del build-deps
  30. ADD libc-i386.tar.gz /
  31. ADD init.sh /etc/
  32. CMD [ "sh", "/etc/init.sh" ]