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

New env configuration for PRODuction #57

Closed
wants to merge 273 commits into from
Closed

Conversation

ajeanneney
Copy link
Collaborator

No description provided.

ilias-115 and others added 30 commits May 3, 2023 15:01
* Fix wording

* Fix doc
* Fix anonymizer

* Add replacementTerm module

* Fix anonymizer

* Add replacementTerm module
* Display checklist

* Fix

* Fixes

* Fixes

* Lint
* Adding status priority to cleanDuplicated (ex cleanDoubled)

* Updating test to assess priority in duplicates deletion

* Linting
* Fix priority by importer

* Add first mapCourtDecisionToDocument test
* Fixes & improve docs

* Fix docs
* Send ids to NLP API

* Key changes
axel-marbois-octo and others added 24 commits November 23, 2023 10:22
* use correct host

* change label to lbl

---------

Co-authored-by: Antoine Jeanneney <antoine.jeanneney@justice.fr>
* Fix loss (#1668)

* Fix loss

* Add test

* Add annotator stats panel (#1662)

* Add delete button & modify locked/rejected status (#1673)

* Fix #1671 (#1675)

* first commit for the cicd

* add deploy and dockerfile

* maj ci

* feat: ci try in re7 for label

* fix: remove comment to comply with gitlab-ci.yml syntax

* test: use echos for https proxy

* fix: remove backend and client from project name on push

* Ajout de l'étape de compilation du front

* Ajout proxy pour yarn

* Correction gitlab-ci.yml

* Correction gitlab-ci.yml

* Tentative build

* utilisation de node 14

* feat: try to emulate judilibre-ops process

* fix: add update in dind build

* fix: typo in node name

* fix: add yarn in addition of nodejs

* fix: add git to packages

* debug: ls content after compile

* fix: try changing build path

* fix: add login to registry + docker tag for runner

* feat: add services for label client and backend

* feat: add deploy namespace label

* fix: indent

* fix: change port for label client

* fix: service name errror

* fix: use "ugly workaround" to make build work

* feat: partially add env variables for label deploy

* feat: make backend work in local. TODO : rework prodEnvironment ugly mechanism

* feat: initiate mongo from env var instead of json

* feat: add jobs deployment

* fix: typo in gitlab-ci.yml

* fix: move comments for yaml syntax

* fix: yaml syntax

* fix: temporarily disable backend-client build and deploy

* fix: add env var and rules for jobs deploys

* test: force redeploy

* fix: try escaping job schedules

* fix: add quotes to avoid yaml treatment for sched

* fix: temporarily disable volume mount config on label

* fix: disable volume mounts pt2

* fix: add target for build

* fix: add shell tag for label backend

* feat: add yarn compile for backend

* fix: use docker for build label backend

* fix: try node options openssl

* fix: apk add npm

* fix: add CI false to test yarn build

* fix: put back fixed frontend build

* feat: add mongodb url in deploy

* fix: add quotes for deployment variables

* fix: try without curly brackets for mongodb var

* fix: try mongodb url withour quotees

* test: env var

* fix: put back mongodb url

* test: test variable on gitlab ci

* fix: put back mognodburl

* clean: clean code

* feat: add connection to nlp pseudonymisation service

* fix: use preprod url for label client

* fix: add root path in addition of public url

* feat: add root path and public url on deploy too

* Add summary (#6)

* trigger GitHub actions

* Add summary

* Fix rejected documents (#7)

* Remove monitoringEntries (#10)

* Fix admin view (#11)

* Improve docs (#15)

* Add assignation date (#16)

* Fix statistics box (#17)

* Add ellipsis lines (#19)

* Fix job export publishable (#21)

* Change route after annotation (#22)

* Add importer field (#20)

* Add importer field

* Add importer field

* Fix

* Improve personal stats (#23)

* Change manual import script (#24)

* Clean unused features, remove deprecated & improve docs (#25)

* Clean unused script

* Remove deprecated

* Improve docs & minor fixes

* Fix local script

* Remove couldBe feature

* Remove csvExtractor

* Fix INSTALL docs

* Fix additionnal annotations (#26)

* Fix loss (#28)

* first commit for the cicd

* add deploy and dockerfile

* maj ci

* feat: ci try in re7 for label

* fix: remove comment to comply with gitlab-ci.yml syntax

* test: use echos for https proxy

* fix: remove backend and client from project name on push

* Ajout de l'étape de compilation du front

* Ajout proxy pour yarn

* Correction gitlab-ci.yml

* Correction gitlab-ci.yml

* Tentative build

* utilisation de node 14

* feat: try to emulate judilibre-ops process

* fix: add update in dind build

* fix: typo in node name

* fix: add yarn in addition of nodejs

* fix: add git to packages

* debug: ls content after compile

* Add juritj (#29)

* Fix wording & doc (#18)

* Fix wording

* Fix doc

* Fix anonymizer (#27)

* Fix anonymizer

* Add replacementTerm module

* Fix anonymizer

* Add replacementTerm module

* Fix cron jobs (#30)

* Display checklist (#32)

* Display checklist

* Fix

* Fixes

* Fixes

* Lint

* Improve error page (#33)

* Adding priorities to statuses while deleting duplicated documents (#34)

* Adding status priority to cleanDuplicated (ex cleanDoubled)

* Updating test to assess priority in duplicates deletion

* Linting

* Fix priority by importer (#35)

* Fix priority by importer

* Add first mapCourtDecisionToDocument test

* Fixes & improve docs (#37)

* Fixes & improve docs

* Fix docs

* Send ids to NLP API (#38)

* Send ids to NLP API

* Key changes

* Remove non public or empty NACCode check (#39)

* fix: try changing build path

* fix: add login to registry + docker tag for runner

* feat: add services for label client and backend

* feat: add deploy namespace label

* fix: indent

* fix: change port for label client

* fix: service name errror

* fix: use "ugly workaround" to make build work

* feat: partially add env variables for label deploy

* feat: make backend work in local. TODO : rework prodEnvironment ugly mechanism

* feat: initiate mongo from env var instead of json

* feat: add jobs deployment

* fix: typo in gitlab-ci.yml

* fix: move comments for yaml syntax

* fix: yaml syntax

* fix: temporarily disable backend-client build and deploy

* fix: add env var and rules for jobs deploys

* test: force redeploy

* fix: try escaping job schedules

* fix: add quotes to avoid yaml treatment for sched

* fix: temporarily disable volume mount config on label

* fix: disable volume mounts pt2

* fix: add target for build

* fix: add shell tag for label backend

* feat: add yarn compile for backend

* fix: use docker for build label backend

* fix: try node options openssl

* fix: apk add npm

* fix: add CI false to test yarn build

* fix: put back fixed frontend build

* feat: add mongodb url in deploy

* fix: add quotes for deployment variables

* fix: try without curly brackets for mongodb var

* fix: try mongodb url withour quotees

* test: env var

* fix: put back mongodb url

* test: test variable on gitlab ci

* fix: put back mognodburl

* clean: clean code

* feat: add connection to nlp pseudonymisation service

* fix: use preprod url for label client

* fix: add root path in addition of public url

* feat: add root path and public url on deploy too

* feat: adapt ingresses

* feat: deploy via ansible part 1

* feat: use dictionnary for branches env link

* feat: add branch.env array in deploy

* fix: not use array for link definition

* fix: use full path for inventories

* fix: adapt rules for label client

* fix: typo in label playbook name

* init ansible vault for dev and preprod

* fix: deploy using inventories selected in case

* feat: add deploy files in ansible

* fix: yaml typo for disabling build

* add public vriables

* kube namespace variable to all

* add secret

* fix: put back build - hash commit image needed

* feat: add configmap for label backend

* feat: label client configmap init

* update secrets

* feat: add secrets for label back and client

* fix: escape yaml variable

* fix: nlp variable

* fix: ansible vault file + env branches mapping

* fix: typo

* add db secret

* complete sder database string

* fix: add pre hooks for managing rsa keys

* fix: update label kube namespace variable name

* fix: inject good image variables

* fix: nlp api url

* fix: nlp api url

* fix: string as number definition

* fix: solve sder db url syntax

* fix: try to suppress spaces in vault

* test: test with fake mongodb name

* fix: uniformize dev vault

* test: echo inventaire

* fix: use proper name for inventories

* fix: encode with b64 all variable

* fix: add ansible definition for deployments

* fix: typo triple dash

* fix: handle definition of ingresses and services

* fix typo triple dash in ingress.yml

* fix: triple dash in client ingress

* feat: put back builds

* feat: use jobs template + map secrets on containers

* feat: reconfigure jobs deployment

* fix: path for deployment jobs template

* fix: error in filename for deployment jobs template

* fix: use integers instead of strings for some values in job template

* debug: disable build and test with only one job

* fix: unquote integer values in jobs template

* fix: try to use int as value in defaults.yml

* fix: try with int

* fix: try another way of casting int

* fix: try without dictionary

* fix: try to use values set instead of dict

* fix: try to cast into int with the new way

* test templating

* mise à jour gitlab-ci

* Correction syntaxe ansible

* correction nom fichier

* ajout autres jobs

* correction gitlab-ci

* feat: activate full build and deploy

* fix: put good root pathes for label client

* fix: change ingressroute override cause name

* fix: update sder connection string

* fix: fix NLP api URL

* try to use correct URL for label in preprod (#52)

* use correct host

* change label to lbl

---------

Co-authored-by: Antoine Jeanneney <antoine.jeanneney@justice.fr>

---------

Co-authored-by: David Libeau <DavidLibeau@users.noreply.github.com>
Co-authored-by: Ilias Aaguida <ilias.aaguida@hotmail.fr>
Co-authored-by: Axel Marbois <axel.marbois@octo.com>
Co-authored-by: Benjamin PILIA <benjamin.pilia@octo.com>
Co-authored-by: Paul Déchorgnat <23296889+pauldechorgnat@users.noreply.github.com>
Co-authored-by: Antoine Jeanneney <antoine.jeanneney@justice.fr>
Co-authored-by: bepi-octo <71631957+bepi-octo@users.noreply.github.com>
@ajeanneney ajeanneney marked this pull request as ready for review December 1, 2023 14:47
@ajeanneney ajeanneney closed this Dec 6, 2023
@ajeanneney ajeanneney deleted the new_env_for_prod branch December 6, 2023 16:34
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.

None yet

7 participants