Skip to content

Commit

Permalink
Create gef-scraper.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Wojdak authored Nov 1, 2024
1 parent ebd161b commit 8e275e4
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions deployment/gef-scraper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
apiVersion: batch/v1
kind: Job
metadata:
name: gef-scraper
spec:
template:
metadata:
labels:
name: gef-scraper
spec:
containers:
- name: gef-scraper
image: ghcr.io/wmgeolab/gef-portal-scraper:latest
imagePullPolicy: Always
volumeMounts:
- name: scopenfs-scopedata
mountPath: /app/data
resources:
limits:
memory: "2Gi"
cpu: "2"
env:
- name: OUTPUT_PATH
value: "/app/data/output"
- name: PROJECTS_JSON_PATTERN
value: "/app/data/project_ids*.json"
- name: DB_PATH
value: "data/gef_document_database.db"
- name: PROJECTS_CSV_PATH
value: "/app/data/projects.csv"
imagePullSecrets:
- name: github-registry-secret
volumes:
- name: scopenfs-scopedata
nfs:
server: 128.239.59.144
path: /sciclone/geograd/scope/scope-data/gef
restartPolicy: OnFailure

0 comments on commit 8e275e4

Please sign in to comment.