Skip to content
Snippets Groups Projects
Commit 5de9a30d authored by Carl Mai's avatar Carl Mai
Browse files

better motd with a frog

parent 99ee4828
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ RUN apt-get update -y && apt-get install -y \ ...@@ -25,7 +25,7 @@ RUN apt-get update -y && apt-get install -y \
COPY trainbenchmark-reporting/install.R /trainbenchmark/trainbenchmark-reporting/install.R COPY trainbenchmark-reporting/install.R /trainbenchmark/trainbenchmark-reporting/install.R
RUN Rscript /trainbenchmark/trainbenchmark-reporting/install.R RUN Rscript /trainbenchmark/trainbenchmark-reporting/install.R
USER user #USER user
WORKDIR /trainbenchmark WORKDIR /trainbenchmark
COPY --chown=user:user . . COPY --chown=user:user . .
...@@ -41,3 +41,4 @@ RUN ./gradlew --no-daemon initScripts ...@@ -41,3 +41,4 @@ RUN ./gradlew --no-daemon initScripts
# RUN ./gradlew --no-daemon generate # RUN ./gradlew --no-daemon generate
# RUN ./gradlew --no-daemon individualInjectBenchmark # RUN ./gradlew --no-daemon individualInjectBenchmark
# RUN ./gradlew --no-daemon individualRepairBenchmark # RUN ./gradlew --no-daemon individualRepairBenchmark
ENTRYPOINT /bin/bash
source /etc/bashrc
function csv_viewer { function csv_viewer {
column -t -s, -n "$@" | less -F -S -X -K column -t -s, -n "$@" | less -F -S -X -K
} }
...@@ -7,7 +5,7 @@ alias doc_motd="bash /trainbenchmark/docs/motd" ...@@ -7,7 +5,7 @@ alias doc_motd="bash /trainbenchmark/docs/motd"
alias doc_basic="bash /trainbenchmark/docs/basic" alias doc_basic="bash /trainbenchmark/docs/basic"
alias doc_advanced="bash /trainbenchmark/docs/advanced" alias doc_advanced="bash /trainbenchmark/docs/advanced"
alias cowsay="cowsay -f /trainbenchmark/docker/frog.cow" alias frogsay="/usr/games/cowsay -f /trainbenchmark/docker/frog.cow"
alias cowsay_tip="shuf -n 1 /trainbenchmark/docker/tips | cowsay -f /trainbenchmark/docker/frog.cow" alias frogsay_tip="shuf -n 1 /trainbenchmark/docker/tips | frogsay"
doc_motd doc_motd
#!/bin/bash #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
# echo -e " " # echo -e " "
# echo -e " * ) ) ) ) " # echo -e " * ) ) ) ) "
# echo -e " ) /( ( ) ( ( /( ( ( /( ) ) ( ( /( " # echo -e " ) /( ( ) ( ( /( ( ( /( ) ) ( ( /( "
...@@ -9,8 +8,9 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" ...@@ -9,8 +8,9 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
# echo -e " | | | '_|/ _' | | || ' \))| '_ \/ -_)| ' \))/ _| | ' \ | ' \()/ _' || '_|| / / " # echo -e " | | | '_|/ _' | | || ' \))| '_ \/ -_)| ' \))/ _| | ' \ | ' \()/ _' || '_|| / / "
# echo -e " |_| |_| \__,_| |_||_||_| |_.__/\___||_||_| \__| |_||_||_|_|_| \__,_||_| |_\_\ " # echo -e " |_| |_| \__,_| |_||_||_| |_.__/\___||_||_| \__| |_||_||_|_|_| \__,_||_| |_\_\ "
# echo -e " " # echo -e " "
cowsay_tip echo "Welcome to the Trainbenchmark! I'll be your guide.. just type frogsay_tip" | /usr/games/cowsay -f /trainbenchmark/docker/frog.cow
bash $DIR/basic #DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
#bash $DIR/basic
echo -e "" echo -e ""
echo -e "\033[1;96mDocumentation" echo -e "\033[1;96mDocumentation"
echo -e "\033[0mRun the following commands" echo -e "\033[0mRun the following commands"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment