2023-01-24 06:37:28 +00:00
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
LABEL maintainer="Mark Young <miyoung999@hotmail.com>"
|
|
|
|
|
|
|
|
ENV DISPLAY :99
|
|
|
|
ENV RESOLUTION 1920x1080x24
|
|
|
|
|
|
|
|
|
|
|
|
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories \
|
|
|
|
&& echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
|
|
|
|
&& echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
|
|
|
&& apk add --no-cache \
|
|
|
|
libprotobuf \
|
|
|
|
tshark \
|
|
|
|
wireshark \
|
|
|
|
ostinato \
|
|
|
|
ostinato-drone \
|
|
|
|
ostinato-gui \
|
|
|
|
xterm wget \
|
|
|
|
font-adobe-100dpi \
|
|
|
|
mesa-dri-swrast \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
openssl \
|
|
|
|
sudo \
|
|
|
|
xvfb \
|
|
|
|
x11vnc \
|
|
|
|
xfce4 \
|
|
|
|
faenza-icon-theme \
|
|
|
|
bash \
|
|
|
|
&& addgroup gns3 \
|
2023-01-24 06:56:00 +00:00
|
|
|
&& adduser -h /home/gns3 -s /bin/bash -S -D -G gns3 gns3 \
|
2023-01-24 06:37:28 +00:00
|
|
|
&& 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 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" ]
|