Skip to content

Commit 54a1d52

Browse files
committed
[FAB-1411] Pull the zookeeper tarball by curl
Pull the zookeeper tarball by using curl instead of wget, so it can understand the "socks*://" style proxy protocol prefixes, yet support wget's "http*://" scheme. Not exactly the FAB-1411 but closely relate to. Extract the archive using a pipeline, which avoid leaving the allocated space of the archive as dark matter in the image's layers (and reduce code length BTW). Change-Id: I2cf8f04f7ba98c99ceeb2befe8d92c78b8b9e332 Signed-off-by: Ray Chen <[email protected]>
1 parent 1558264 commit 54a1d52

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

images/zookeeper/Dockerfile.in

+2-4
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ ARG DISTRO_NAME=zookeeper-3.4.9
2929
# Download Apache Zookeeper, verify its PGP signature, untar and clean up
3030
RUN set -x \
3131
&& cd / \
32-
&& wget -q "http://www.apache.org/dist/zookeeper/$DISTRO_NAME/$DISTRO_NAME.tar.gz" \
33-
&& tar -xzf "$DISTRO_NAME.tar.gz" \
34-
&& mv "$DISTRO_NAME/conf/"* "$ZOO_CONF_DIR" \
35-
&& rm -r "$DISTRO_NAME.tar.gz"
32+
&& curl -fsSL "http://www.apache.org/dist/zookeeper/$DISTRO_NAME/$DISTRO_NAME.tar.gz" | tar -xz \
33+
&& mv "$DISTRO_NAME/conf/"* "$ZOO_CONF_DIR"
3634

3735
WORKDIR $DISTRO_NAME
3836
VOLUME ["$ZOO_DATA_DIR", "$ZOO_DATA_LOG_DIR"]

0 commit comments

Comments
 (0)