Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementNumericite committed Oct 31, 2024
2 parents 9db4027 + 01de955 commit 7e72a52
Show file tree
Hide file tree
Showing 4 changed files with 501 additions and 548 deletions.
50 changes: 1 addition & 49 deletions .kontinuous/env/dev/templates/obiz.cronjob.yaml
Original file line number Diff line number Diff line change
@@ -1,49 +1 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: obiz-integration-cron
spec:
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 3
failedJobsHistoryLimit: 3
schedule: "0 4 * * *"
timeZone: Europe/Paris
jobTemplate:
spec:
backoffLimit: 1
template:
spec:
restartPolicy: Never
containers:
- name: obiz-integration
image: "{{ or .Values.registry .Values.global.registry }}/{{ .Values.global.imageProject }}/{{ .Values.global.imageRepository }}/obiz:{{ .Values.global.imageTag }}"
command: ["python3", "importer.py"]
args: [
"--api-url", "$(APP_API_URL)",
"--api-key", "$(APP_API_KEY)",
"--sftp-host", "$(SFTP_HOST)",
"--sftp-username", "$(SFTP_USERNAME)",
"--sftp-password", "$(SFTP_PASSWORD)",
"--sftp-path", "$(SFTP_PATH)",
"--sftp-port", "$(SFTP_PORT)",
"--file-suffix", "fr.preprod"
]
env:
- name: APP_API_URL
value: "https://{{ $.Values.global.host }}/api"
envFrom:
- secretRef:
name: obiz-sealed-secret
resources:
requests:
cpu: 200m
memory: 2Gi
limits:
cpu: 200m
memory: 2Gi
volumeMounts:
- name: inputs
mountPath: /app/inputs
volumes:
- name: inputs
emptyDir: {}
../../preprod/templates/obiz.cronjob.yaml
4 changes: 2 additions & 2 deletions .kontinuous/env/preprod/templates/obiz.cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ spec:
]
env:
- name: APP_API_URL
value: "https://{{ $.Values.global.host }}/api"
value: "https://{{ $.Values.global.host }}/api/obizIntegration"
envFrom:
- secretRef:
name: obiz-sealed-secret
name: obiz-sealed-secret
resources:
requests:
cpu: 200m
Expand Down
3 changes: 2 additions & 1 deletion webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ USER 1000

EXPOSE 3000
ENV PORT 3000
CMD ["yarn", "start"]
# CMD ["yarn", "start"]
CMD ["sh", "-c", "yarn payload migrate && yarn start"]
Loading

0 comments on commit 7e72a52

Please sign in to comment.