Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sahilm committed Jun 24, 2024
1 parent 788655a commit 8a5778e
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/mysql8.0.28-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: MySQL 8.0.28 (Aurora version) /w Docker
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Test
run: docker compose -f compose.yml -f compose-8.0.28.yml up --abort-on-container-exit
5 changes: 5 additions & 0 deletions compose-8.0.28.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
services:
mysql:
image: mysql:8.0.28
platform: linux/amd64
ports: [ '8028:3306' ]
4 changes: 4 additions & 0 deletions compose-8.0.33-rbr-minimal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
services:
mysql:
ports: [ '8333:3306' ]
command: --binlog-row-image=MINIMAL
24 changes: 24 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
services:
mysql:
image: mysql:8.0.33
ports: [ '8033:3306' ]
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: true
MYSQL_DATABASE: test
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u root
start_period: 1s
interval: 1s
timeout: 2s
retries: 60

test:
build:
context: .
dockerfile: Dockerfile.test
volumes:
- $PWD:/app
depends_on:
- mysql
environment:
MYSQL_DSN: root:@tcp(mysql)/test

0 comments on commit 8a5778e

Please sign in to comment.