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.
 
 
 
 

53 lines
1.4 KiB

# Web browser plus Java
FROM ehlers/webterm
RUN set -e -x \
#
# install Java v8 and Java Web Start
#
&& export DEBIAN_FRONTEND=noninteractive \
&& printf '\
deb http://deb.debian.org/debian stretch main\n\
deb http://security.debian.org/debian-security stretch/updates main\n' \
> /etc/apt/sources.list.d/stretch.list \
&& apt-get update \
&& mkdir -p /usr/share/man/man1 \
&& apt-get -y --no-install-recommends install \
icedtea-netx/stretch openjdk-8-jre/stretch java-common/stretch \
fonts-dejavu-extra yad \
&& apt-mark hold icedtea-netx openjdk-8-jre java-common \
&& rm /etc/apt/sources.list.d/stretch.list \
&& rm -rf /var/lib/apt/lists/* \
#
# customize jwm menu
#
&& printf '\
?package(icedtea-netx):\\\n\
needs="x11"\\\n\
section="Applications"\\\n\
title="ASDM Launcher"\\\n\
command="start-asdm"\n' \
> /etc/menu/asdm \
&& update-menus \
#
# ASDM Launcher
#
&& printf '\
\043!/bin/sh\n\
\n\
asa_ip=$(yad --entry --title="ASDM Launcher" \\\n\
--text="\\n Connects to ASAv by ASDM \\n" \\\n\
--entry-text="IP")\n\
[ $? -ne 0 ] && exit 1\n\
[ -z "$asa_ip" ] || [ "$asa_ip" = "IP" ] && exit 1\n\
\n\
javaws "https://$asa_ip/admin/public/asdm.jnlp" < /dev/null\n' \
> /usr/local/bin/start-asdm \
&& chmod +x /usr/local/bin/start-asdm \
#
# startup script
#
&& sed -i '/firefox/d' /etc/init.sh
VOLUME [ "/etc/java-8-openjdk" ]