You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
756 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. echo -e "\r\n\r\n\e[44m *** Removing Code Directory *** \e[44m\r\n"
  2. rm -r /usr/src/flylocal-web
  3. echo "\r\n\r\n\e[44m *** Making Code Directory *** \e[44m\r\n"
  4. mkdir -p /usr/src/flylocal-web
  5. cd /usr/src
  6. echo "\r\n\r\n\e[44m *** Getting Code from Gitea *** \e[44m\r\n"
  7. git clone --depth 1 https://gitea.flylocal.us/spencer/flylocal-web.git
  8. cd flylocal-web
  9. echo "\r\n\r\n\e[44m *** Killing Docker Containers *** \e[44m\r\n"
  10. sudo docker kill $(docker ps -q)
  11. echo "\r\n\r\n\e[44m *** Pruning Old Docker Images *** \e[44m\r\n"
  12. sudo docker system prune
  13. echo "\r\n\r\n\e[44m *** Building New Docker Image *** \e[44m\r\n"
  14. sudo docker build -t flylocal-web .
  15. echo "\r\n\r\n\e[44m *** Running Docker Image *** \e[44m\r\n"
  16. sudo docker run -it -p 3000:3000 flylocal-web