Skip to content

Commit

Permalink
fix azure pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlermitage committed Nov 22, 2024
1 parent 76a3e61 commit 16fb6dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
9 changes: 4 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,18 @@ steps:
- script: echo '##vso[task.setvariable variable=MANON_TEST_REDIS_PORT]6380'
- script: sudo /etc/init.d/mysql stop
- script: sudo netstat -antp
- script: docker-compose --version
- task: DockerCompose@0
- task: DockerCompose@1 # https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/docker-compose-v1?view=azure-pipelines
inputs:
containerregistrytype: 'Container Registry'
containerregistrytype: 'Azure Container Registry'
dockerComposeFile: './docker/docker-compose-test-azure.yml'
action: 'Run a Docker Compose command'
dockerComposeCommand: 'up -d'
projectName: 'manon_prj_for_azure'
- script: sleep 15
- script: sudo netstat -antp
- script: cd docker && docker-compose ps && cd ..
- script: mysql --user=root --password=woot --host=127.0.0.1 --port=3307 --execute="show databases;"
- script: mysql --user=root --password=woot --host=127.0.0.1 --port=3308 --execute="show databases;"
- task: Maven@3 # see help https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/build/maven?view=azure-devops
- task: Maven@4 # see help https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/build/maven?view=azure-devops
inputs:
mavenPomFile: 'pom.xml'
javaHomeOption: 'JDKVersion'
Expand Down
6 changes: 2 additions & 4 deletions docker/docker-compose-test-azure.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
version: '3.4'
# FIXME (specific to MS Azure pipeline) Can't connect to MariaDB 10.3.18, so I downgraded to 10.7.4. Still investigating this issue.
services:

maria-test:
container_name: maria-test
image: mariadb:10.10.2 # see https://hub.docker.com/_/mariadb/
image: mariadb:11.5.2 # see https://hub.docker.com/_/mariadb/
ports:
- "3307:3306"
environment:
Expand All @@ -13,7 +11,7 @@ services:

maria-batch-test:
container_name: maria-batch-test
image: mariadb:10.10.2 # see https://hub.docker.com/_/mariadb/
image: mariadb:11.5.2 # see https://hub.docker.com/_/mariadb/
ports:
- "3308:3306"
environment:
Expand Down

0 comments on commit 16fb6dc

Please sign in to comment.