38 lines
895 B
YAML
38 lines
895 B
YAML
|
---
|
||
|
apiVersion: batch/v1
|
||
|
kind: Job
|
||
|
metadata:
|
||
|
name: quay-dev-initdb
|
||
|
spec:
|
||
|
activeDeadlineSeconds: 600
|
||
|
template:
|
||
|
metadata:
|
||
|
name: quay-dev-initdb
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: quay
|
||
|
image: quay.io/quay/quay-ci:master
|
||
|
env:
|
||
|
- name: TEST_DATABASE_URI
|
||
|
value: "postgres://"
|
||
|
- name: SKIP_DB_SCHEMA
|
||
|
value: "true"
|
||
|
command:
|
||
|
- venv/bin/python
|
||
|
- initdb.py
|
||
|
volumeMounts:
|
||
|
- name: configvolume
|
||
|
readOnly: false
|
||
|
mountPath: /conf/stack
|
||
|
resources:
|
||
|
limits:
|
||
|
cpu: 500m
|
||
|
memory: 500Mi
|
||
|
imagePullSecrets:
|
||
|
- name: coreos-pull-secret
|
||
|
volumes:
|
||
|
- name: configvolume
|
||
|
secret:
|
||
|
secretName: quay-enterprise-config-secret
|
||
|
restartPolicy: Never
|