Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM boxfuse/flyway
- ADD ./flyway /flyway
- #TODO: pass the username/password in from kubernetes
- CMD ["-X", "-url=jdbc:mysql://db-service", "-schemas=myapp", "-user=root", "-password=P@ssw0rd", "migrate"]
- docker build -t flyway-migrate:3 .
- apiVersion: batch/v1
- kind: Job
- metadata:
- name: flyway-job
- spec:
- template:
- metadata:
- labels:
- app: java-app
- tier: flyway
- track: stable
- spec:
- containers:
- - name: flyway
- image: "flyway-migrate:3"
- imagePullPolicy: IfNotPresent
- restartPolicy: Never
Add Comment
Please, Sign In to add comment