-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from ExposuresProvider/add-kubernetes
This PR adds the Kubernetes CronJob file to the repository. It moves one of the steps from the Kubernetes file into the Makefile. It seems to be mostly working -- I've tested one of the files generated by this job and it produces a small number of errors on CAM-KP-API (#80, ExposuresProvider/cam-kp-api#613) -- and I'd rather not delay this any further so that I can move on to trying to upgrade cam-pipeline to Biolink 3.
- Loading branch information
Showing
2 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
name: build-cam-database | ||
labels: | ||
project: CAM-KP | ||
env: dev | ||
spec: | ||
schedule: "@weekly" | ||
concurrencyPolicy: Forbid | ||
jobTemplate: | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: pipeline-tools | ||
image: "renciorg/cam-pipeline-tools:v1.3" | ||
resources: | ||
limits: | ||
cpu: '8' | ||
memory: 150G | ||
command: ["sh", "-c", "cd /workspace; rm -rf current; mkdir current; cd current; git clone https://github.com/NCATS-Tangerine/cam-pipeline.git; cd cam-pipeline; git checkout master; make all; rm -rf /workspace/success; mv /workspace/current /workspace/success"] | ||
volumeMounts: | ||
- mountPath: "/workspace" | ||
name: storage | ||
restartPolicy: Never | ||
volumes: | ||
- name: storage | ||
persistentVolumeClaim: | ||
claimName: build-cam-database-storage | ||
backoffLimit: 0 | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: build-cam-database-storage | ||
labels: | ||
project: CAM-KP | ||
env: dev | ||
spec: | ||
accessModes: | ||
- ReadWriteMany | ||
resources: | ||
requests: | ||
storage: 1000G | ||
storageClassName: basic |