From 950649ca64606daf5c5b92ae7ae261026b11aacb Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 30 Jul 2024 20:18:41 +0200 Subject: [PATCH] test motd --- Dockerfile | 11 +++++++++++ start_tmux.sh | 2 +- version.sh | 9 --------- 3 files changed, 12 insertions(+), 10 deletions(-) delete mode 100755 version.sh diff --git a/Dockerfile b/Dockerfile index d6e0dee..13a2224 100644 --- a/Dockerfile +++ b/Dockerfile @@ -70,4 +70,15 @@ RUN git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.v && ln -s ~/dotfiles/.bash_extra ~/.bashrc \ && 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"] diff --git a/start_tmux.sh b/start_tmux.sh index 2dc145e..b7e2fb4 100755 --- a/start_tmux.sh +++ b/start_tmux.sh @@ -1,4 +1,4 @@ #!/bin/bash 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 diff --git a/version.sh b/version.sh deleted file mode 100755 index 7741f78..0000000 --- a/version.sh +++ /dev/null @@ -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