Skip to content

Commit

Permalink
Merge pull request #67 from KIT-MRT/add_motd
Browse files Browse the repository at this point in the history
Add a lovely welcome message (motd style)
  • Loading branch information
orzechow authored Nov 5, 2024
2 parents 03e8f88 + c9f20ca commit b2a1f67
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
19 changes: 19 additions & 0 deletions demo/.motd
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
echo -e "
\033[1;31m================================================.\033[0m
\033[1;31m ┓ • • ┓ \033[1;31m|
\033[1;32m ┏┓┏┓┣┓┓╋┏┓┏┓╋┓┏┓┏┓ ┏┓┏┓┏┓┏┓┣┓┏ \033[1;31m|
\033[1;34m ┗┻┛ ┗┛┗┗┛ ┗┻┗┗┗┛┛┗ ┗┫┛ ┗┻┣┛┛┗┛ \033[1;31m|
\033[1;33m ┛ ┛ \033[1;31m|
\033[1;31m================================================.\033[0m
\033[38;5;202m .-. \033[38;5;202m .-. \033[1;93m .--. \033[0m \033[1;31m|
\033[38;5;202m | OO| \033[38;5;202m | OO| \033[1;93m / _.-° \033[0m.-. .-. .-. .°°. \033[1;31m|
\033[38;5;202m | | \033[38;5;202m | | \033[1;93m \ °-, \033[0m°-° °-° °-° °..° \033[1;31m|
\033[38;5;202m °^^^° \033[38;5;202m °^^^° \033[1;93m °--° \033[0m \033[1;31m|
\033[1;31m===============. .================. \033[0m .-. \033[1;31m|
\033[1;31m | | | \033[0m °-° \033[1;31m|
\033[1;31m | | | \033[0m \033[1;31m|
\033[1;31m | | | \033[0m .-. \033[1;31m|
\033[1;31ml42 | | | \033[0m °-° \033[1;31m|
\033[1;31m===============° °================° \033[0m \033[1;31m|
\033[0m"
4 changes: 3 additions & 1 deletion demo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ RUN git clone https://github.com/KIT-MRT/EnTT-Pacman.git --branch arbitration_gr
rm -rf /tmp/EnTT-Pacman

USER blinky
COPY --chown=blinky:blinky .motd /home/blinky/.motd
RUN echo "\n\nsource /home/blinky/.motd" >> /home/blinky/.bashrc

WORKDIR /home/blinky/demo

Expand All @@ -36,5 +38,5 @@ WORKDIR /home/blinky/demo/build
RUN cmake -DCMAKE_BUILD_TYPE=Release .. && \
cmake --build . -j8

CMD [ "/home/blinky/demo/build/arbitration_graphs_pacman_demo_exe" ]
CMD ["bash", "-c", "/home/blinky/.motd && /home/blinky/demo/build/arbitration_graphs_pacman_demo_exe"]

0 comments on commit b2a1f67

Please sign in to comment.