flyway docker image for the azure pipeline
The easiest way to get started is simply to test the image by running
docker run --rm flyway [flyway cli arguments here]
The Azure Pipelines system requires a few things in
- Bash
- glibc-based
- Can run Node.js (which the agent provides)
- Does not define an ENTRYPOINT
- USER has access to groupadd and other privileges commands without sudo
- Ensure Docker is installed
- The agent must have permission to access the Docker daemon
- Add a Node LTS binary to your container.
- Set container label "com.azure.dev.pipelines.handler.node.path" to the Node.js binary
- Add requirements
RUN apk add bash sudo shadow
Refer to Define container jobs (YAML) for more information.
stages:
- stage: DeployDatabase
jobs:
- job: FlywayDocker
timeoutInMinutes: 10
pool:
vmImage: 'ubuntu-16.04'
container:
image: kulmam92/flyway-azure:6.2.3
steps:
- script: whoami
- script: pwd
- script: ls -la
- script: flyway -v