.gitpod.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. image:
  2. file: .gitpod.dockerfile
  3. ports:
  4. - port: 8001
  5. onOpen: ignore
  6. - port: 3306
  7. onOpen: ignore
  8. tasks:
  9. - name: Apache
  10. command: >
  11. mkdir /tmp/apache;
  12. touch /tmp/apache/error.log;
  13. touch /tmp/apache/access.log;
  14. export APACHE_PID_FILE="/tmp/apache/PID" APACHE_RUN_USER="gitpod" APACHE_RUN_GROUP="gitpod" APACHE_SERVER_NAME="localhost" APACHE_LOG_DIR="/tmp/apache";
  15. apache2;
  16. multitail /tmp/apache/error.log -I /tmp/apache/access.log;
  17. - name: Allerta
  18. init: >
  19. cd frontend;
  20. npm install;
  21. npm run build;
  22. cd ../backend;
  23. composer install;
  24. # command: >
  25. # cd server/install;
  26. # WEBSERVER_URL=$(gp url 8001 | sed -E s/\\/$//);
  27. # mysql -e "CREATE DATABASE IF NOT EXISTS allerta";
  28. # mysql -e "CREATE USER 'allerta'@'localhost' IDENTIFIED BY 'allerta_pwd';";
  29. # mysql -e "GRANT ALL PRIVILEGES ON * . * TO 'allerta'@'localhost';";
  30. # mysqladmin reload;
  31. # php install.php config -n "allerta" -u "allerta" -a "allerta_pwd" -o "127.0.0.1" -r "DEV_ENV";
  32. # php install.php populate -m "admin" -b -d -s "password" -w "owner" -e "mail@mailserver.local" -u "$WEBSERVER_URL/";
  33. # touch runInstall.php;
  34. # gp await-port 8001; gp preview "$(gp url 8001)";
  35. # cd ..;
  36. # wget https://github.com/vrana/adminer/releases/download/v4.8.0/adminer-4.8.0.php;
  37. # mv adminer-4.8.0.php adminer.php;
  38. # clear;
  39. # echo "$(tput setaf 2)Full webserver url$(tput sgr0) $(tput setaf 4)$WEBSERVER_URL$(tput sgr0)";
  40. # echo "$(tput setaf 2)Allerta username$(tput sgr0) $(tput setaf 4)admin$(tput sgr0)";
  41. # echo "$(tput setaf 2)Allerta password$(tput sgr0) $(tput setaf 4)password$(tput sgr0)";
  42. # echo "$(tput setaf 2)PHP Adminer$(tput sgr0) $(tput setaf 4)$WEBSERVER_URL/adminer.php$(tput sgr0)";
  43. # echo "$(tput setaf 2)DB user$(tput sgr0) $(tput setaf 4)allerta$(tput sgr0)";
  44. # echo "$(tput setaf 2)DB password$(tput sgr0) $(tput setaf 4)allerta_pwd$(tput sgr0)";
  45. # echo "$(tput setaf 2)DB name$(tput sgr0) $(tput setaf 4)allerta$(tput sgr0)";
  46. # printf "\n";
  47. # echo "Good luck. Happy coding and testing!"
  48. vscode:
  49. extensions:
  50. - gruntfuggly.todo-tree@0.0.205:sbsZJOTJzKZtMVHQuS2iPw==
  51. - shelex.vscode-cy-helper@1.1.0:U9ok2y1bSmqn17OMuRMOfw==