Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(deployment): provision scaleway with tf #63

Merged
merged 135 commits into from
Oct 27, 2023

Conversation

vmttn
Copy link
Contributor

@vmttn vmttn commented Mar 13, 2023

relates to #41

But: amorcer le déploiement automatisable sur scaleway

Cette PR:

  • initialise le code terraform dans un nouveau dossier ./deployment
  • met en place le formattage automatique
  • met en place la documentation automatique du code terraform
  • configure le state backend pour utiliser s3 (qu'on hébergera sur scaleway)
  • configure le provider scaleway (pour créer des ressources chez scaleway)
  • configure un environnement "staging"
  • déclare le déploiement d'une VM avec un docker daemon sur scaleway (qui pourra être utilisé pour déployer un docker-compose)
  • documentation de l'usage

Cette PR pose les fondations pour automatiser et documenter le déploiement de la stack sur scaleway qui est mieux adapté à notre usage. Cette PR ne change pas le déploiement actuel, qui continue chez scalingo.

next steps

  • ajouter un docker-compose dédié (en se basant sur celui de dév à la racine du repo, en ajoutant nginx ou traefik)
  • ajouter la création d'un bucket s3 scaleway (notre datalake)
  • ajouter la création d'une instance postgresql managée scaleway (notre datawarehouse)
  • exécuter le déploiement via github actions pour les PRs et pour le main

@vmttn vmttn requested a review from ColinMaudry March 13, 2023 11:09
@vmttn vmttn force-pushed the vmttn/feat/provision-terraform-scaleway branch from 3f28998 to 4a0dfc3 Compare August 28, 2023 15:30
@vmttn vmttn temporarily deployed to staging August 28, 2023 15:40 — with GitHub Actions Inactive
@vmttn vmttn temporarily deployed to staging August 29, 2023 10:35 — with GitHub Actions Inactive
@vmttn vmttn temporarily deployed to staging August 29, 2023 14:14 — with GitHub Actions Inactive
@vmttn vmttn temporarily deployed to staging August 29, 2023 14:37 — with GitHub Actions Inactive
@vmttn vmttn temporarily deployed to staging August 29, 2023 14:46 — with GitHub Actions Inactive
@vmttn vmttn temporarily deployed to staging August 29, 2023 14:49 — with GitHub Actions Inactive
@vmttn vmttn temporarily deployed to staging August 29, 2023 15:00 — with GitHub Actions Inactive
@vmttn vmttn temporarily deployed to staging August 29, 2023 15:02 — with GitHub Actions Inactive
@jonathanperret jonathanperret force-pushed the vmttn/feat/provision-terraform-scaleway branch from dba29db to 1555393 Compare October 26, 2023 09:48
@jonathanperret jonathanperret temporarily deployed to staging October 26, 2023 09:55 — with GitHub Actions Inactive
Because docker-entrypoint-initdb.d/10_postgis.sh was marked as
executable, it was executed instead of sourced by docker-entrypoint.sh
causing the "${psql[@]}" syntax to fail. This also caused the processing
of the init scripts to be aborted, causing 10_unaccent.sh not to be
executed at all.

Note that this was not detected until one tried to use the expected
extensions (plpython3u, unaccent), since only the first launch of
the postgres container (where the DB was created) failed.
@jonathanperret jonathanperret temporarily deployed to staging October 26, 2023 14:31 — with GitHub Actions Inactive
The names of 10_plpython3u.sh and 10_postgis.sh were swapped.
@jonathanperret jonathanperret temporarily deployed to staging October 26, 2023 15:21 — with GitHub Actions Inactive
@vmttn vmttn merged commit ea4420a into main Oct 27, 2023
6 checks passed
@vperron vperron deleted the vmttn/feat/provision-terraform-scaleway branch November 15, 2023 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants