Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Nothing4You committed Aug 26, 2022
1 parent 46376dc commit 2c255ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,10 @@ jobs:
# unfortunately we need this hacky workaround as GitHub Actions service containers can't reference data from our repo.
- name: Prepare mysql
run: |
# we need to ensure that the socket path is readable from haproxy and
# writable for the user running the DB process
sudo chmod 0777 /tmp/run-${{ join(matrix.db, '-') }}
# inject HAproxy configuration
docker container stop haproxy
Expand All @@ -597,9 +601,6 @@ jobs:
docker container cp "${{ github.workspace }}/tests/ssl_resources/tls.cnf" mysqld:/etc/mysql/conf.d/aiomysql-tls.cnf
# use custom socket path
# we need to ensure that the socket path is writable for the user running the DB process in the container
sudo chmod 0777 /tmp/run-${{ join(matrix.db, '-') }}
docker container cp "${{ github.workspace }}/tests/ssl_resources/socket.cnf" mysqld:/etc/mysql/conf.d/aiomysql-socket.cnf
docker container start mysqld
Expand Down
1 change: 1 addition & 0 deletions tests/ssl_resources/haproxy.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ global
defaults
mode tcp
log global
option tcplog
timeout connect 10s
timeout client 1m
timeout server 1m
Expand Down

0 comments on commit 2c255ca

Please sign in to comment.