add startupscripts
Some checks failed
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
Michael Grote 2024-07-30 09:58:43 +02:00
parent 6dd4a82aae
commit 63046aae60
3 changed files with 14 additions and 1 deletions

View file

@ -5,6 +5,8 @@ ENV DEBIAN_FRONTEND=noninteractive
WORKDIR / WORKDIR /
COPY requirements.txt . COPY requirements.txt .
COPY requirements.yaml . COPY requirements.yaml .
COPY start_tmux.sh .
COPY version.sh .
# 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 \
@ -52,4 +54,4 @@ 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
ENTRYPOINT ["/bin/bash"] ENTRYPOINT ["/start_tmux.sh"]

2
start_tmux.sh Normal file
View file

@ -0,0 +1,2 @@
#!/bin/bash
tmux new-session -d -t ansible-devspace 'version.sh'

9
version.sh Normal file
View file

@ -0,0 +1,9 @@
#!/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