Skip to content

Commit 1a286f1

Browse files
authored
fix: backport latest changes made in API Platform (#121)
1 parent 2e9d893 commit 1a286f1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,14 @@ RUN apk add --no-cache \
1717
file \
1818
gettext \
1919
git \
20+
gnu-libiconv \
2021
jq \
2122
;
2223

24+
# install gnu-libiconv and set LD_PRELOAD env to make iconv work fully on Alpine image.
25+
# see https://github.com/docker-library/php/issues/240#issuecomment-763112749
26+
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so
27+
2328
ARG APCU_VERSION=5.1.19
2429
RUN set -eux; \
2530
apk add --no-cache --virtual .build-deps \

docker/php/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if [ "$1" = 'php-fpm' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then
3232
if grep -q ^DATABASE_URL= .env; then
3333
echo "Waiting for db to be ready..."
3434
ATTEMPTS_LEFT_TO_REACH_DATABASE=60
35-
until [ $ATTEMPTS_LEFT_TO_REACH_DATABASE -eq 0 ] || DATABASE_ERROR=$(bin/console doctrine:query:sql "SELECT 1" 2>&1); do
35+
until [ $ATTEMPTS_LEFT_TO_REACH_DATABASE -eq 0 ] || DATABASE_ERROR=$(bin/console dbal:run-sql "SELECT 1" 2>&1); do
3636
if [ $? -eq 255 ]; then
3737
# If the Doctrine command exits with 255, an unrecoverable error occurred
3838
ATTEMPTS_LEFT_TO_REACH_DATABASE=0

0 commit comments

Comments
 (0)