diff --git a/.docker/Dockerfile b/.docker/Dockerfile index 5aad85a..b010cf3 100644 --- a/.docker/Dockerfile +++ b/.docker/Dockerfile @@ -29,8 +29,9 @@ RUN : \ vim \ wget \ zsh \ - && apk add --update --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \ + && apk add --update --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community/ \ helm \ + && apk add --update --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \ kubectl \ && mkdir -p /root/.wryn \ ; @@ -41,10 +42,10 @@ RUN : \ && /bin/zsh -c '/root/.wryn/setup/run --no-fluff --ci --force-root' \ && echo 'hostnamectl() { echo docker; }' > $HOME/.config/wryn/env.zsh \ && echo 'source /root/.wryn/config/dotwryn.env.zsh' >> $HOME/.config/wryn/env.zsh \ - && echo 'WELCOME() {}' >> $HOME/.config/wryn/env.zsh \ + && echo "WELCOME() {}" >> $HOME/.config/wryn/env.zsh \ && echo "PS1_INDICATOR_SYMBOL=''" >> $HOME/.config/wryn/env.zsh \ && echo "PS1_USER='root@debugger'" >> $HOME/.config/wryn/env.zsh \ && rm /root/dotwryn-install.log \ ; -CMD ["zsh"] +ENTRYPOINT ["/root/.wryn/.docker/entrypoint"] diff --git a/.docker/entrypoint b/.docker/entrypoint new file mode 100755 index 0000000..913125a --- /dev/null +++ b/.docker/entrypoint @@ -0,0 +1,19 @@ +#!/bin/zsh +##################################################################### +echo -e "\\033[1;31m=====================================================================\\033[0m + + \\033[1;32mWelcome to Debugger!\\033[0m + +You are now entering a root-privileged container with a variety of +powerful tools. Be sure to exercise appropriate caution for your +current use-case / environment! + + \\033[1;32mGLHF <3\\033[0m + +\\033[1;31m=====================================================================\\033[0m" +##################################################################### +zsh -l +##################################################################### +echo -e "\\033[1;31m=====================================================================\\033[0m +\\033[1;32mExiting Debugger; see you next time!\\033[0m +\\033[1;31m=====================================================================\\033[0m"