mirror of
https://github.com/GNS3/gns3-registry.git
synced 2024-12-21 05:43:10 +00:00
54 lines
1.3 KiB
Docker
54 lines
1.3 KiB
Docker
FROM alpine:latest
|
|
|
|
LABEL maintainer="Mark Young <miyoung999@hotmail.com>"
|
|
|
|
ENV DISPLAY :99
|
|
ENV RESOLUTION 1920x1080x24
|
|
|
|
|
|
RUN apk add --no-cache \
|
|
libprotobuf \
|
|
tshark \
|
|
wireshark \
|
|
ostinato \
|
|
ostinato-drone \
|
|
ostinato-gui \
|
|
xterm wget \
|
|
font-adobe-100dpi \
|
|
mesa-dri-gallium \
|
|
ca-certificates \
|
|
curl \
|
|
openssl \
|
|
sudo \
|
|
xvfb \
|
|
x11vnc \
|
|
xfce4 \
|
|
faenza-icon-theme \
|
|
bash \
|
|
&& addgroup gns3 \
|
|
&& adduser -h /home/gns3 -s /bin/bash -S -D -G gns3 gns3 \
|
|
&& echo -e "gns3\ngns3" | passwd gns3 \
|
|
&& addgroup gns3 wireshark \
|
|
&& echo 'gns3 ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
|
|
|
USER gns3
|
|
WORKDIR /home/gns3
|
|
|
|
RUN mkdir -p /home/gns3/.vnc && x11vnc -storepasswd gns3 /home/gns3/.vnc/passwd
|
|
|
|
RUN mkdir -p /home/gns3/.config/autostart
|
|
COPY Ostinato.desktop /home/gns3/.config/autostart
|
|
COPY Ostinato.desktop /home/gns3/Desktop/Ostinato.desktop
|
|
COPY Wireshark.desktop /home/gns3/Desktop/Wireshark.desktop
|
|
RUN sudo chmod 775 /home/gns3/Desktop/Ostinato.desktop
|
|
RUN sudo chmod 775 /home/gns3/Desktop/Wireshark.desktop
|
|
RUN sudo chown gns3:gns3 /home/gns3/Desktop/
|
|
RUN sudo chown gns3:gns3 /home/gns3/Desktop/Ostinato.desktop
|
|
RUN sudo chown gns3:gns3 /home/gns3/.config/autostart
|
|
RUN sudo chown gns3:gns3 /home/gns3/Desktop/Wireshark.desktop
|
|
COPY ostinato.png /usr/share/pixmaps
|
|
|
|
COPY entry.sh /entry.sh
|
|
|
|
CMD [ "/bin/bash", "/entry.sh" ]
|