From 59a63fd4642d8fc5f7887408ab762eda2dbf6224 Mon Sep 17 00:00:00 2001 From: slashtechno <77907286+slashtechno@users.noreply.github.com> Date: Wed, 7 Sep 2022 21:06:17 -0500 Subject: [PATCH] --- Dockerfile-devenv.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Dockerfile-devenv.txt diff --git a/Dockerfile-devenv.txt b/Dockerfile-devenv.txt new file mode 100644 index 0000000..b63c2fb --- /dev/null +++ b/Dockerfile-devenv.txt @@ -0,0 +1,29 @@ +# docker run -it --name devenv +FROM ubuntu:latest +WORKDIR /root + +RUN apt-get update +RUN apt-get upgrade -y +RUN apt-get install zsh git curl bash vim nano openssh-server shellinabox -y +RUN chsh -s $(which zsh) +RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended +RUN git clone https://github.com/zsh-users/zsh-autosuggestions.git /root/.oh-my-zsh/custom/plugins/zsh-autosuggestions +RUN git clone https://github.com/zsh-users/zsh-syntax-highlighting.git /root/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting + +RUN echo export ZSH=\"\$HOME/.oh-my-zsh\" > /root/.zshrc +RUN echo ZSH_THEME=\"robbyrussell\" >> /root/.zshrc +RUN echo plugins=\(git zsh-autosuggestions zsh-syntax-highlighting\) >> /root/.zshrc +RUN echo source \$ZSH/oh-my-zsh.sh >> /root/.zshrc +RUN echo service shellinabox start >> /root/.zshrc + + +RUN echo "root:password" | chpasswd +RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config +RUN sed -i 's/SHELLINABOX_ARGS="--no-beep"/SHELLINABOX_ARGS="--no-beep --disable-ssl"/g' /etc/default/shellinabox + + + +EXPOSE 4200 +# RUN echo "#!/bin/bash\nservice shellinabox start" > /entrypoint.sh +# RUN chmod +x /entrypoint.sh +# ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file