test motd
This commit is contained in:
parent
7a7e178a2a
commit
950649ca64
3 changed files with 12 additions and 10 deletions
11
Dockerfile
11
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 \
|
&& 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"]
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
|
Loading…
Reference in a new issue