Browse Source

edit

master
zeus 3 years ago
parent
commit
579db2522f
  1. 69
      install/usr/share/swarmlab.io/sec/swarmlab-sec

69
install/usr/share/swarmlab.io/sec/swarmlab-sec

@ -170,40 +170,6 @@ if [ -d "$Wdir/project" ]; then
COPY .vimrc /home/docker COPY .vimrc /home/docker
# Upgrade installed packages
RUN rm -rf /etc/apt/sources.list.d/fcwu-tw-ubuntu-apps-bionic.list* \
&& sed -i 's/tw.//g' /etc/apt/sources.list \
&& apt-get update -qq \
&& apt-get install -y --no-install-recommends -qq apt-utils \
&& apt-get purge -y -qq fonts-wqy-zenhei \
&& apt-get autoremove -y -qq \
&& apt-get upgrade -y -qq
# Install required packages
RUN apt-get install -y --no-install-recommends -qq software-properties-common locales \
&& add-apt-repository -y ppa:papirus/papirus \
&& add-apt-repository -y ppa:apt-fast/stable \
&& curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg \
&& install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/ \
&& sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list' \
&& rm -f microsoft.gpg \
&& apt-get update -qq
RUN apt-get install -y --no-install-recommends -qq \
nano bash-completion wget code lxtask openssh-server git xdotool filezilla putty dnsutils apt-fast \
papirus-icon-theme fonts-noto-cjk fonts-noto-cjk-extra obconf lxappearance-obconf \
&& apt-get clean
# Configure vscode extension --DISABLED: error on root
#RUN code --install-extension mhutchie.git-graph \
# && code --install-extension eamodio.gitlens
# Customizations : remove unused, change settings, copy conf files
RUN rm /usr/local/share/doro-lxde-wallpapers/bg[2-4].jpg \
&& sed -i "s/UI.initSetting('resize', 'off');/UI.initSetting('resize', 'scale');/g" /usr/local/lib/web/frontend/static/novnc/app/ui.js
COPY files /
# SSHD run bugfix
RUN mkdir -p /run/sshd
EXPOSE 80 EXPOSE 80
EOF EOF
@ -285,41 +251,6 @@ if [ "$Wdir" == "$HOME" ]; then
COPY .vimrc /home/docker COPY .vimrc /home/docker
# Upgrade installed packages
RUN rm -rf /etc/apt/sources.list.d/fcwu-tw-ubuntu-apps-bionic.list* \
&& sed -i 's/tw.//g' /etc/apt/sources.list \
&& apt-get update -qq \
&& apt-get install -y --no-install-recommends -qq apt-utils \
&& apt-get purge -y -qq fonts-wqy-zenhei \
&& apt-get autoremove -y -qq \
&& apt-get upgrade -y -qq
# Install required packages
RUN apt-get install -y --no-install-recommends -qq software-properties-common locales \
&& add-apt-repository -y ppa:papirus/papirus \
&& add-apt-repository -y ppa:apt-fast/stable \
&& curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg \
&& install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/ \
&& sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list' \
&& rm -f microsoft.gpg \
&& apt-get update -qq
RUN apt-get install -y --no-install-recommends -qq \
nano bash-completion wget code lxtask openssh-server git xdotool filezilla putty dnsutils apt-fast \
papirus-icon-theme fonts-noto-cjk fonts-noto-cjk-extra obconf lxappearance-obconf \
&& apt-get clean
# Configure vscode extension --DISABLED: error on root
#RUN code --install-extension mhutchie.git-graph \
# && code --install-extension eamodio.gitlens
# Customizations : remove unused, change settings, copy conf files
RUN rm /usr/local/share/doro-lxde-wallpapers/bg[2-4].jpg \
&& sed -i "s/UI.initSetting('resize', 'off');/UI.initSetting('resize', 'scale');/g" /usr/local/lib/web/frontend/static/novnc/app/ui.js
COPY files /
# SSHD run bugfix
RUN mkdir -p /run/sshd
EXPOSE 80 EXPOSE 80
EOF EOF

Loading…
Cancel
Save