add userswitch for adding motd
This commit is contained in:
parent
a739e46ec7
commit
2bcdbc2046
1 changed files with 2 additions and 0 deletions
|
@ -70,6 +70,7 @@ RUN git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.v
|
||||||
&& vim +PluginInstall +qall
|
&& vim +PluginInstall +qall
|
||||||
|
|
||||||
# setup motd
|
# setup motd
|
||||||
|
USER root
|
||||||
# hadolint ignore=DL3001,DL4006,SC2086
|
# hadolint ignore=DL3001,DL4006,SC2086
|
||||||
RUN vim --version | head -1 > /etc/motd \
|
RUN vim --version | head -1 > /etc/motd \
|
||||||
&& ansible --version | head -1 >> /etc/motd \
|
&& ansible --version | head -1 >> /etc/motd \
|
||||||
|
@ -79,5 +80,6 @@ RUN vim --version | head -1 > /etc/motd \
|
||||||
&& echo $CI_REPO_URL >> /etc/motd \
|
&& echo $CI_REPO_URL >> /etc/motd \
|
||||||
&& echo "" >> /etc/motd \
|
&& echo "" >> /etc/motd \
|
||||||
&& echo "ansible-devspace" | figlet -l -w 100 | /usr/games/lolcat >> /etc/motd
|
&& echo "ansible-devspace" | figlet -l -w 100 | /usr/games/lolcat >> /etc/motd
|
||||||
|
USER ansible-dev
|
||||||
|
|
||||||
ENTRYPOINT ["/home/ansible-dev/start_tmux.sh"]
|
ENTRYPOINT ["/home/ansible-dev/start_tmux.sh"]
|
||||||
|
|
Loading…
Reference in a new issue