Skip to content

Commit

Permalink
Merge pull request #1242 from bcgov/dev-rook-RQ-FOIMOD-3551
Browse files Browse the repository at this point in the history
Added templates for openinfo publishing cronjobs
  • Loading branch information
richard-aot authored Dec 20, 2024
2 parents 9d8e73d + 33344ee commit a1d540e
Show file tree
Hide file tree
Showing 11 changed files with 63 additions and 228 deletions.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion computingservices/OpenInfoServices/Dockerfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ WORKDIR /app
COPY --from=builder /app/main .
COPY --from=builder /app/templates/ ./templates/.
ENTRYPOINT ["./main"]
CMD ["dequeue"]
14 changes: 0 additions & 14 deletions computingservices/OpenInfoServices/Dockerfile.sitemap.local

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: openinfo-publish-rook
spec:
schedule: "*/30 * * * *" # Runs every 30 minutes
timeZone: America/Vancouver
jobTemplate:
spec:
template:
spec:
containers:
- name: openinfo-publish-job-rook
image: d106d6-tools/reviewer-openinfoservice:dev-rook
args: ["enqueueforpublish"]
envFrom:
- secretRef:
name: openinfo-secret-rook # Reference to the secret containing env variables
imagePullPolicy: Always
restartPolicy: OnFailure
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: openinfo-sitemap-rook
spec:
schedule: "*/30 * * * *" # Runs every 30 minutes
timeZone: America/Vancouver
jobTemplate:
spec:
template:
spec:
containers:
- name: openinfo-sitemap-job-rook
image: d106d6-tools/reviewer-openinfoservice:dev-rook
args: ["sitemap"]
envFrom:
- secretRef:
name: openinfo-secret-rook # Reference to the secret containing env variables
imagePullPolicy: Always
restartPolicy: OnFailure
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: openinfo-unpublish-rook
spec:
schedule: "*/30 * * * *" # Runs every 30 minutes
timeZone: America/Vancouver
jobTemplate:
spec:
template:
spec:
containers:
- name: openinfo-unpublish-job-rook
image: d106d6-tools/reviewer-openinfoservice:dev-rook
args: ["enqueueforunpublish"]
envFrom:
- secretRef:
name: openinfo-secret-rook # Reference to the secret containing env variables
imagePullPolicy: Always
restartPolicy: OnFailure
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ objects:
- name: "${APP_NAME}"
image: "${APP_NAME}"
imagePullPolicy: Always
args: ["dequeue"]
env:
- name: FOI_DB_USER
valueFrom:
Expand Down Expand Up @@ -188,9 +189,9 @@ parameters:
displayName: Environment TAG name
description: The TAG name for this environment, e.g., dev, test, prod
required: true
value: dev
value: dev-rook
- name: SECRETS
displayName: OpenInfo Secrets
description: Name of secrets for all openinfoservice values
required: true
value: openinfoservice-secret
value: openinfo-secret-rook

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit a1d540e

Please sign in to comment.