Skip to content

Commit

Permalink
Reorganize VOLUME declarations to overcome a possible bug in Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
fnaranjo-vmw committed Oct 4, 2022
1 parent c0494b1 commit 1fcfe44
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/actions/run-golang-system-tests/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ ENV MYSQL_USERNAME= \
MYSQL_CLIENT_KEY_PATH=

VOLUME /goproject
VOLUME /mysql-certs

RUN mkdir -p /mysql-certs && chmod -R 777 /mysql-certs
VOLUME /mysql-certs

RUN go install github.com/onsi/ginkgo/ginkgo@latest

Expand Down
2 changes: 1 addition & 1 deletion .github/actions/run-golang-system-tests/mysql/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ARG MYSQL_VERSION
FROM mysql:$MYSQL_VERSION

VOLUME /mysql-certs
RUN mkdir -p /mysql-certs && chmod -R 777 /mysql-certs
VOLUME /mysql-certs

RUN mkdir -p /etc/mysql/mysql.conf.d/ && chown mysql: /etc/mysql/mysql.conf.d/
ADD enable_mysql_tls.sh /docker-entrypoint-initdb.d/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/database-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ jobs:
run: |
MYSQL_VERSION="${{ matrix.mysql-version }}" \
MYSQL_PASSWORD="$(head /dev/urandom | md5sum | cut -f1 -d" ")" \
docker-compose -f repo/docker-compose.yml run system-mysql || (docker-compose -f repo/docker-compose.yml logs system-mysql-backing-db && exit 1)
docker-compose -f repo/docker-compose.yml run system-mysql

0 comments on commit 1fcfe44

Please sign in to comment.