Skip to content

Commit

Permalink
Add alembic
Browse files Browse the repository at this point in the history
  • Loading branch information
k-burt-uch committed Nov 22, 2024
1 parent 4812dae commit 01b8ea5
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,22 @@ spec:
limits:
cpu: 2
memory: 2048Mi
initContainers:
- name: gen3-user-data-library-db-migrate
GEN3_GEN3-USER-DATA-LIBRARY_IMAGE
imagePullPolicy: Always
volumeMounts:
- name: gen3-user-data-library-g3auto-volume
readOnly: true
mountPath: /gen3userdatalibrary/.env
subPath: gen3-user-data-library.env
resources:
limits:
cpu: 0.8
memory: 512Mi
command: [ "/bin/sh" ]
args:
- "-c"
- |
# Managing virtual environments via poetry instead of python since the AL base image update, but retaining backwards compatibility
poetry run alembic upgrade head || /env/bin/alembic upgrade head

0 comments on commit 01b8ea5

Please sign in to comment.