mirror of
https://github.com/GNS3/gns3-registry.git
synced 2025-01-15 01:09:52 +00:00
25 lines
443 B
Docker
25 lines
443 B
Docker
# docker image with basic networking tools
|
|
|
|
ARG DOCKER_REPOSITORY
|
|
FROM $DOCKER_REPOSITORY/ipterm-base
|
|
|
|
#
|
|
# startup script
|
|
#
|
|
RUN printf '\
|
|
\043!/bin/sh\n\
|
|
[ $$ -eq 1 ] && exec dumb-init -- "$0" "$@"\n\
|
|
\n\
|
|
[ -f /root/init.sh ] && [ -x /root/init.sh ] && /root/init.sh\n\
|
|
\n\
|
|
cd\n\
|
|
if [ $# -gt 0 ]; then\n\
|
|
"$@"\n\
|
|
else\n\
|
|
bash -i -l\n\
|
|
fi\n' \
|
|
> /etc/init.sh && chmod +x /etc/init.sh
|
|
|
|
ENTRYPOINT [ "/etc/init.sh" ]
|
|
VOLUME [ "/root" ]
|