diff --git a/Dockerfile b/Dockerfile index 41b9ede..3376ad1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,6 @@ ENV PATH="$PATH:/home/ansible-dev/.local/bin" RUN apt-get update \ && apt-get -y --no-install-recommends install \ vim \ - figlet \ - lolcat \ keychain \ tmux \ htop \ @@ -45,8 +43,6 @@ USER ansible-dev WORKDIR /home/ansible-dev/ -COPY --chown=ansible-dev:ansible-dev start_tmux.sh . - COPY --chown=ansible-dev:ansible-dev requirements.txt . # hadolint ignore=DL3013 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 \ && 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 \ - && 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 - +COPY --chown=ansible-dev:ansible-dev start_tmux.sh . ENTRYPOINT ["/home/ansible-dev/start_tmux.sh"] diff --git a/start_tmux.sh b/start_tmux.sh index b7e2fb4..eabaf1b 100755 --- a/start_tmux.sh +++ b/start_tmux.sh @@ -1,4 +1,3 @@ #!/bin/bash tmux new-session -s ansible-devspace -d -tmux send-keys -t ansible-devspace "cat /etc/motd" Enter tmux attach -t ansible-devspace