add userswitch for adding motd
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Michael Grote 2024-07-30 20:25:30 +02:00
parent a739e46ec7
commit 2bcdbc2046

View file

@ -70,6 +70,7 @@ RUN git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.v
&& vim +PluginInstall +qall
# setup motd
USER root
# hadolint ignore=DL3001,DL4006,SC2086
RUN vim --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 "" >> /etc/motd \
&& echo "ansible-devspace" | figlet -l -w 100 | /usr/games/lolcat >> /etc/motd
USER ansible-dev
ENTRYPOINT ["/home/ansible-dev/start_tmux.sh"]