From 2f6b7dfab92779b7dda4fecd6f827fbef8458978 Mon Sep 17 00:00:00 2001 From: Spencer Flagg Date: Sat, 23 Oct 2021 11:40:45 +0200 Subject: [PATCH] finished without user buttons; added .sh; not deployed yet; --- run.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 run.sh diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..bb66538 --- /dev/null +++ b/run.sh @@ -0,0 +1,16 @@ +echo -e "\r\n\r\n\e[44m *** Removing Code Directory *** \e[44m\r\n" +rm -r /usr/src/kekkon +echo "\r\n\r\n\e[44m *** Making Code Directory *** \e[44m\r\n" +mkdir -p /usr/src/kekkon +cd /usr/src +echo "\r\n\r\n\e[44m *** Getting Code from Gitea *** \e[44m\r\n" +git clone --depth 1 https://gitea.flylocal.us/spencer/kekkon.git +cd kekkon +echo "\r\n\r\n\e[44m *** Killing Docker Containers *** \e[44m\r\n" +sudo docker kill $(docker ps -q) +echo "\r\n\r\n\e[44m *** Pruning Old Docker Images *** \e[44m\r\n" +sudo docker system prune +echo "\r\n\r\n\e[44m *** Building New Docker Image *** \e[44m\r\n" +sudo docker build -t kekkon . +echo "\r\n\r\n\e[44m *** Running Docker Image *** \e[44m\r\n" +sudo docker run -it -p 3000:3000 kekkon \ No newline at end of file