aboutsummaryrefslogtreecommitdiffstats
path: root/packages/docker/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/docker/src')
-rw-r--r--packages/docker/src/main/docker/Dockerfile5
-rw-r--r--packages/docker/src/main/docker/wait-for-port.sh2
2 files changed, 4 insertions, 3 deletions
diff --git a/packages/docker/src/main/docker/Dockerfile b/packages/docker/src/main/docker/Dockerfile
index dd30a9576..60704431a 100644
--- a/packages/docker/src/main/docker/Dockerfile
+++ b/packages/docker/src/main/docker/Dockerfile
@@ -12,8 +12,9 @@ ENV POLICY_LOGS ${POLICY_LOGS}
ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk
RUN apk --update add --no-cache busybox-extras \
- bash zip unzip curl \
- wget openssh maven jq \
+ bash coreutils grep findutils \
+ zip unzip curl \
+ wget openssh maven jq \
httpie py-pip openjdk8
RUN adduser -S policy -s /bin/bash
diff --git a/packages/docker/src/main/docker/wait-for-port.sh b/packages/docker/src/main/docker/wait-for-port.sh
index 7b6e85262..befebf208 100644
--- a/packages/docker/src/main/docker/wait-for-port.sh
+++ b/packages/docker/src/main/docker/wait-for-port.sh
@@ -29,7 +29,7 @@ host=$1
port=$2
echo "Waiting for $host port $port open"
-until telnet $host $port </dev/null 2>/dev/null | grep -q '^Connected'; do
+until nc -vz $host $port 2> /dev/null; do
sleep 1
done