Browse Source

finished without user buttons; added .sh; not deployed yet;

master
Spencer Flagg 3 years ago
parent
commit
2f6b7dfab9
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      run.sh

+ 16
- 0
run.sh View File

@ -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

Loading…
Cancel
Save