Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-rychlewski committed May 26, 2024
1 parent b528884 commit 52f7017
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,13 @@ integration-test-mysql:
--pull "mysql:$MYSQL" --platform linux/amd64
RUN set -e; \
timeout=$(expr $(date +%s) + 30); \
docker run --name mysql --network=host -d -e MYSQL_ROOT_PASSWORD=root "mysql:$MYSQL" --verbose \
docker run --name mysql --network=host -d -e MYSQL_ROOT_PASSWORD=root "mysql:$MYSQL" \
--sql_mode="ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,ANSI_QUOTES" \
--log-error-verbosity=3 \
# the default authentication plugin for MySQL 8 is sha 256 but it doesn't come with the docker image. falling back to the 5.7 way
--default-authentication-plugin=mysql_native_password; \
# wait for mysql to start

while ! mysqladmin ping --host=127.0.0.1 --port=3306 --protocol=TCP; do \
docker logs mysql; \
while ! mysqladmin ping --host=127.0.0.1 --port=3306 --protocol=TCP --silent; do \
test "$(date +%s)" -le "$timeout" || (echo "timed out waiting for mysql"; exit 1); \
echo "waiting for mysql"; \
sleep 1; \
Expand Down

0 comments on commit 52f7017

Please sign in to comment.