initial commit
This commit is contained in:
3
dev/tekton/examples/example-bank/data_model/drop-schema/Dockerfile
Executable file
3
dev/tekton/examples/example-bank/data_model/drop-schema/Dockerfile
Executable file
@@ -0,0 +1,3 @@
|
||||
FROM postgres
|
||||
COPY drop.sql /tmp
|
||||
CMD /usr/bin/psql postgres://$DB_USER:$DB_PASSWORD@$DB_SERVERNAME:$DB_PORTNUMBER -f /tmp/drop.sql
|
||||
2
dev/tekton/examples/example-bank/data_model/drop-schema/drop.sql
Executable file
2
dev/tekton/examples/example-bank/data_model/drop-schema/drop.sql
Executable file
@@ -0,0 +1,2 @@
|
||||
DROP EXTENSION "uuid-ossp";
|
||||
DROP DATABASE example;
|
||||
17
dev/tekton/examples/example-bank/data_model/drop-schema/job.yaml
Executable file
17
dev/tekton/examples/example-bank/data_model/drop-schema/job.yaml
Executable file
@@ -0,0 +1,17 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: cc-schema-unload
|
||||
labels:
|
||||
app: cc-schema-unload
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
restartPolicy: Never
|
||||
containers:
|
||||
- name: cc-schema-unload
|
||||
image: ykoyfman/drop-schema
|
||||
imagePullPolicy: Always
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: bank-db-secret
|
||||
Reference in New Issue
Block a user