test motd
Some checks failed
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/push/build unknown status

This commit is contained in:
Michael Grote 2024-07-30 20:18:41 +02:00
parent 7a7e178a2a
commit 950649ca64
3 changed files with 12 additions and 10 deletions

View file

@ -70,4 +70,15 @@ RUN git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.v
&& ln -s ~/dotfiles/.bash_extra ~/.bashrc \ && ln -s ~/dotfiles/.bash_extra ~/.bashrc \
&& vim +PluginInstall +qall && vim +PluginInstall +qall
# setup motd
RUN vim --version | head -1 > /etc/motd \
&& ansible --version | head -1 >> /etc/motd \
&& git -v >> /etc/motd \
&& echo "" >> /etc/motd \
&& echo $CI_COMMIT_BRANCH >> /etc/motd \
&& echo $CI_REPO_URL >> /etc/motd \
&& echo "" >> /etc/motd \
&& echo "ansible-devspace" | figlet -l -w 100 | /usr/games/lolcat >> /etc/motd
ENTRYPOINT ["/home/ansible-dev/start_tmux.sh"] ENTRYPOINT ["/home/ansible-dev/start_tmux.sh"]

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
tmux new-session -s ansible-devspace -d tmux new-session -s ansible-devspace -d
tmux send-keys -t ansible-devspace "/home/ansible-dev/version.sh" Enter tmux send-keys -t ansible-devspace "cat /etc/motd" Enter
tmux attach -t ansible-devspace tmux attach -t ansible-devspace

View file

@ -1,9 +0,0 @@
#!/bin/bash
vim --version | head -1 >> /tmp/versions
ansible --version | head -1 >> /tmp/versions
git -v >> /tmp/versions
echo "" >> /tmp/versions
echo "ansible-devspace" | figlet -l -w 100 >> /tmp/versions
/usr/games/lolcat < /tmp/versions