Skip to content

Commit 438ce2e

Browse files
authored
Merge pull request #99 from HSLdevcom/fix-docker-logging
Use the same docker conventions as in OTP data
2 parents 4170c76 + bcdbe9a commit 438ce2e

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Dockerfile.pelias-data-container-builder

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,11 @@ RUN git clone --single-branch https://github.com/hsldevcom/pelias-fuzzy-tests \
1717
&& cd pelias-fuzzy-tests \
1818
&& npm install
1919

20-
CMD ( dockerd-entrypoint.sh & ) && sleep 40 && unset DOCKER_HOST && /bin/bash /mnt/build-data-container.sh
20+
CMD ( dockerd-entrypoint.sh --log-level=error > /dev/null 2>&1 & ) && \
21+
unset DOCKER_HOST && \
22+
until docker info > /dev/null 2>&1; do \
23+
echo "Waiting for Docker to start."; \
24+
sleep 1; \
25+
done && \
26+
echo "Docker is running!" && \
27+
/bin/bash /mnt/build-data-container.sh

0 commit comments

Comments
 (0)