Skip to content

Commit

Permalink
Fix mysqladmin bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jessedobbelaere committed Jun 24, 2022
1 parent b15cae7 commit e8fcfac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ RUN a2enmod rewrite

# Install mysql and mysqladmin binaries
RUN apt-get update && apt-get install -y --no-install-recommends mariadb-client
COPY --from=mariadb:10 /usr/bin/mysqladmin /usr/local/bin/mysqladmin

# Install GD2
RUN apt-get update && apt-get install -y --no-install-recommends --allow-downgrades \
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -Eeuo pipefail

while ! /usr/local/bin/mysqladmin ping --host "$DB_HOST" --port "$DB_PORT" --silent; do
while ! mysqladmin ping --host "$DB_HOST" --port "$DB_PORT" --silent; do
echo "Waiting for mysql db to be up and running..."
sleep 1
done
Expand Down

0 comments on commit e8fcfac

Please sign in to comment.