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.

16 lines
827 B

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