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

Missing for Series / Operations inside sql backup (for first deployement) #165

Open
NicoLaval opened this issue May 23, 2023 · 3 comments
Open
Assignees
Labels

Comments

@NicoLaval
Copy link
Contributor

Default sql backup seems to contain series & operations but deployed instance thanks to Bowie do not contain fields in dropdowns.
Do we have to provide an other property to value them ? (it's actually impossible to create a new questionnaire without these informations)

@laurentC35 laurentC35 assigned laurentC35 and BulotF and unassigned ORogel Sep 1, 2023
@laurentC35 laurentC35 changed the title Series / Operations Missing for Series / Operations inside sql backup (for first deployement) Sep 1, 2023
@laurentC35 laurentC35 added the bug label Sep 1, 2023
@BulotF
Copy link
Contributor

BulotF commented Sep 1, 2023

The script that initializes pogues bdd...
https://github.com/InseeFr/Bowie/blob/main/deploiement/Pogues/pogues-bdd-backup.sql

@nsenave
Copy link
Contributor

nsenave commented Sep 1, 2023

When deploying Pogues from Bowie's helm chart, we currently use an Postgres dump file in the values as such:

pogues:
  ui:
    # ...
  api:
    # ...
  postgresql:
    # ...
    primary:
      initContainers:
        - name: import-dump
          image: busybox
          command:
            [
              "wget",
              "https://raw.githubusercontent.com/InseeFr/Bowie/main/deploiement/Pogues/pogues-bdd-backup.sql",
              "--output-document=/import/backup.sql",
            ]
          volumeMounts:
            - mountPath: /import
              name: import-volume
      extraVolumes:
        - name: import-volume
          emptyDir: {}
      extraVolumeMounts:
        - name: import-volume
          mountPath: "/docker-entrypoint-initdb.d"

➡️ We could store these values in the values file provided in the repo.

Any cleaner/better idea?

@laurentC35
Copy link
Contributor

We will create a better mock soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants