Skip to content
Snippets Groups Projects
Commit 9233d486 authored by BITARD Michaël's avatar BITARD Michaël Committed by BITARD Michaël
Browse files

WIP build with args

parent 2dd048ee
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !1535. Comments created here will be created in the context of that merge request.
ARG BUILD_ENV
ENV BUILD_ENV=${BUILD_ENV}
FROM mcuadros/ofelia:0.3.13 FROM mcuadros/ofelia:0.3.13
RUN apk add -U curl restic postgresql16-client postgresql16-contrib docker-cli bash RUN apk add -U curl restic postgresql16-client postgresql16-contrib docker-cli bash
COPY restore-last-backup / COPY restore-last-backup /
COPY config.ini /etc/ofelia/config.ini COPY config-${BUILD_ENV}.ini /etc/ofelia/config.ini
...@@ -263,7 +263,11 @@ nginx-proxy/push: ...@@ -263,7 +263,11 @@ nginx-proxy/push:
docker push caminofr/camino-nginx-proxy:1.6.1 docker push caminofr/camino-nginx-proxy:1.6.1
cron/build: cron/build:
docker build -t caminofr/cron:1.0.0 -f Dockerfile.cron infra/ecocompose/crons/ docker build -t caminofr/cron:1.0.0-dev --build-arg ENV=dev -f Dockerfile.cron infra/ecocompose/crons/
docker build -t caminofr/cron:1.0.0-preprod --build-arg ENV=preprod -f Dockerfile.cron infra/ecocompose/crons/
docker build -t caminofr/cron:1.0.0-prod --build-arg ENV=prod -f Dockerfile.cron infra/ecocompose/crons/
cron/push: cron/push:
docker push caminofr/cron:1.0.0 docker push caminofr/cron:1.0.0-dev
docker push caminofr/cron:1.0.0-preprod
docker push caminofr/cron:1.0.0-prod
...@@ -69,7 +69,7 @@ services: ...@@ -69,7 +69,7 @@ services:
restart: unless-stopped restart: unless-stopped
cron: cron:
container_name: camino_cron container_name: camino_cron
image: caminofr/cron:1.0.0 image: caminofr/cron:1.0.0-${ENV}
environment: environment:
ENV: ${ENV} ENV: ${ENV}
TCHAP_HOOK: ${TCHAP_HOOK} TCHAP_HOOK: ${TCHAP_HOOK}
......
File moved
[job-exec "daily"]
schedule = 0 0 9 * * *
container = camino_api_app
command = make daily
tty = true
[job-exec "monthly"]
schedule = 0 0 10 * * *
container = camino_api_app
command = make monthly
tty = true
[job-exec "cleanup_downloads"]
schedule = 0 0 5 * * *
container = camino_api_app
command = rm -rf /project/packages/api/files/downloads/*
tty = true
[job-exec "cleanup_temp_files"]
schedule = 0 30 5 * * *
container = camino_api_app
command = find /project/packages/api/files/tmp/ -mtime +7 -type f -delete
tty = true
[job-local "restore_backup"]
schedule = 0 0 12 * * *
command = /restore-last-backup
[job-exec "daily"]
schedule = 0 0 9 * * *
container = camino_api_app
command = make daily
tty = true
[job-exec "monthly"]
schedule = 0 0 10 * * *
container = camino_api_app
command = make monthly
tty = true
[job-exec "cleanup_downloads"]
schedule = 0 0 5 * * *
container = camino_api_app
command = rm -rf /project/packages/api/files/downloads/*
tty = true
[job-exec "cleanup_temp_files"]
schedule = 0 30 5 * * *
container = camino_api_app
command = find /project/packages/api/files/tmp/ -mtime +7 -type f -delete
tty = true
[job-local "restore_backup"]
schedule = 0 0 12 * * *
command = /restore-last-backup
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment