remove fancy motd etc...
This commit is contained in:
parent
2bcdbc2046
commit
c7bf282a56
2 changed files with 1 additions and 18 deletions
18
Dockerfile
18
Dockerfile
|
@ -8,8 +8,6 @@ ENV PATH="$PATH:/home/ansible-dev/.local/bin"
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get -y --no-install-recommends install \
|
&& apt-get -y --no-install-recommends install \
|
||||||
vim \
|
vim \
|
||||||
figlet \
|
|
||||||
lolcat \
|
|
||||||
keychain \
|
keychain \
|
||||||
tmux \
|
tmux \
|
||||||
htop \
|
htop \
|
||||||
|
@ -45,8 +43,6 @@ USER ansible-dev
|
||||||
|
|
||||||
WORKDIR /home/ansible-dev/
|
WORKDIR /home/ansible-dev/
|
||||||
|
|
||||||
COPY --chown=ansible-dev:ansible-dev start_tmux.sh .
|
|
||||||
|
|
||||||
COPY --chown=ansible-dev:ansible-dev requirements.txt .
|
COPY --chown=ansible-dev:ansible-dev requirements.txt .
|
||||||
# hadolint ignore=DL3013
|
# hadolint ignore=DL3013
|
||||||
RUN python3 -m pip install --no-cache-dir --upgrade pip \
|
RUN python3 -m pip install --no-cache-dir --upgrade pip \
|
||||||
|
@ -69,17 +65,5 @@ 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
|
COPY --chown=ansible-dev:ansible-dev start_tmux.sh .
|
||||||
USER root
|
|
||||||
# hadolint ignore=DL3001,DL4006,SC2086
|
|
||||||
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
|
|
||||||
USER ansible-dev
|
|
||||||
|
|
||||||
ENTRYPOINT ["/home/ansible-dev/start_tmux.sh"]
|
ENTRYPOINT ["/home/ansible-dev/start_tmux.sh"]
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
tmux new-session -s ansible-devspace -d
|
tmux new-session -s ansible-devspace -d
|
||||||
tmux send-keys -t ansible-devspace "cat /etc/motd" Enter
|
|
||||||
tmux attach -t ansible-devspace
|
tmux attach -t ansible-devspace
|
||||||
|
|
Loading…
Reference in a new issue