this script sets up a project enviroment, clones repo, pulls db and media, and generates docker container for a holzmarkt web project.
- Shell 82.3%
- PHP 17.7%
| .src | ||
| .gitignore | ||
| composer.json | ||
| composer.lock | ||
| init | ||
| Public Website Themes.code-workspace | ||
| README.md | ||
| settings | ||
- needed parameters: repo name, url, ssh connection. if something is missing, it gets it from the .env file. arguments override .env file values.
- then it pulls the sql dump, repo and plugins. it also gets all media files hosted.
- after everything is ready, it generates a docker-compose.yml file and starts the container.
tested
with wordpress, no drupal yet. nur auf meinem computer bisher.
./init --repo wp-theme-katerblau --ssh root@web.holzmarkt-it.de --url katerblau.de
TODO
- teile des scripts könnten zum updaten der daten wiederverwendet werden?