-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
213 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
- vagrant destroy && rm -Rf .vagrant | ||
|
||
- Récupération des parametres Vagrantfile vers le .manala.yaml | ||
- app.name -> system.hostname + ".vm" | ||
- app.box_version 3.* -> system.version 8 | ||
app.box_version 4.* -> system.version 9 | ||
- app.box_memory -> system.memory *si* différent de 1024 ou 2048 | ||
- Suppression du fichier Vagrantfile | ||
|
||
- Nettoyage du/des Makefile | ||
- Suppression des `.PHONY: build test` | ||
- Suppression des `## Colors` | ||
- Suppression des `## Help` | ||
- `-include .manala/make/Makefile` -> `-include .manala/Makefile` | ||
- Suppression des "HOSTNAME", "APP_HOSTNAME" et "_check_*" | ||
- Déplacement de target setup vers define setup | ||
``` | ||
if [ -d "./var/cache" ]; then rm -rf ./var/cache; fi; define setup | ||
if [ -d "./var/log" ]; then rm -rf ./var/log; fi; -> $(VAGRANT_MAKE) install build | ||
vagrant up --no-provision endef | ||
vagrant provision | ||
vagrant ssh -- "cd /srv/app && make install && make build" | ||
``` | ||
- Suppression de la partie "Environment" | ||
- Remplacement des `make -C` par des `$(MAKE) --directory ` | ||
- Custom -> App | ||
- | ||
``` | ||
########## ######### | ||
# Build # -> # Build # | ||
########## ######### | ||
``` | ||
- Un petit tour dans le readme, notament: | ||
- Requirements | ||
``` | ||
* Make | ||
* Vagrant 2.2.10+ | ||
* Landrush 1.3.2+ | ||
* VirtualBox 6.1.12+ | ||
* Docker Desktop 2.2.0+ | ||
``` | ||
- Usage: vagrant -> make | ||
- Remplacement des credentials db dans .env/.env.test` | ||
``` | ||
DATABASE_URL=mysql://app@127.0.0.1:3306/* -> DATABASE_URL=mysql://root@127.0.0.1:3306/* | ||
``` | ||
ou dans config/paramaters.yml[.dist] | ||
``` | ||
database_user: app -> database_user: root | ||
``` | ||
- Nettoyage du fichier .gitignore à la racine | ||
``` | ||
# Vagrant | ||
.vagrant/ | ||
|
||
# Ansible | ||
ansible/*.retry | ||
ansible/group_vars/*_local.yml | ||
/ansible/roles/ | ||
build/ | ||
.manala.local.yaml | ||
``` | ||
- .manala.yaml | ||
- suppression de l'entrée system.symfony | ||
- Modification de l'entrée system.ssh.config | ||
``` | ||
ssh: ssh: | ||
config: | client: | ||
Host previ-*.elao.prod.elao.run -> config: | ||
User app - Host *.elao.run: | ||
ForwardAgent yes - User: app | ||
- ForwardAgent: true | ||
``` | ||
- suppression dans les tâches d'integration | ||
``` | ||
env: | ||
DATABASE_URL: mysql://root@127.0.0.1:3306/app | ||
``` | ||
ou | ||
``` | ||
env: | ||
APP_DATABASE_HOST: 127.0.0.1 | ||
APP_DATABASE_NAME: api | ||
APP_DATABASE_USER: root | ||
``` | ||
- Bascule de `ansible/group_vars/app.yml` vers `.manala.yaml` | ||
- timezone si différente de "Etc/UTC" | ||
- Files | ||
avant: | ||
``` | ||
files_attributes: | ||
- path: "{{ app.dir }}{{ app.dir_release }}/var/log" | ||
src: "{{ app.log_dir }}" | ||
state: link_directory | ||
- path: "{{ app.dir }}{{ app.dir_release }}/var/cache" | ||
src: "{{ app.cache_dir }}" | ||
state: link_directory | ||
``` | ||
après: | ||
``` | ||
files: | ||
- path: /srv/app/var/log | ||
src: /srv/log | ||
state: link_directory | ||
force: true | ||
- path: /srv/app/var/cache | ||
src: /srv/cache | ||
state: link_directory | ||
force: true | ||
``` | ||
- Penser à rajouter l'extention php `mysql` si necessaire | ||
- apt -> supprimer package "pv" au besoin, il est maintenant intégré de base dans la vm | ||
- cron -> ne plus préciser le user, il est posé par défaut à vagrant dans system.yaml | ||
- Suppression du repertoire ansible |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
- deprecation des templates packer | ||
- déprécation du role zsh (il ne fait rien d'autre que d'installer) au profit d'un simple apt zsh | ||
OU déplacement de la gestion des env DANS le role zsh | ||
- deprecation du role make ??? | ||
- deprecation du role npm ? | ||
- état des lieux pour ntp, envisager deprecation | ||
- templates j2 dans les roles | ||
- deprecation role/package opcache-dashboard | ||
- deprecation du role/package phpmyadmin | ||
- deprecation du role/package phpredisadmin | ||
- `manala.update: true` en dev, ou pas ??? | ||
- deprecation de role/package phantomjs | ||
- penser coté jenkins à supprimer le check sur .manala/jenkins/Jenkinsfile ET à repercuter cogé config sur kubernetes | ||
- zut, et quid du app_local.yml ??? | ||
- pour le local, ca pourrait se limiter aux variables d'env | ||
cf. https://blackfire.io/docs/configuration/agent#configuring-the-agent-via-environment-variables | ||
et pour le xdebug | ||
- motd dynamique |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env sh | ||
|
||
docker run \ | ||
--rm \ | ||
--user 1000 \ | ||
--volume /srv:/srv \ | ||
elao/audiowaveform:{{ item.version|mandatory }} \ | ||
"$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters