fixed flink dockerfile
@@ -10,12 +10,14 @@ ENV FLINK_INSTALL_PATH /opt
ENV FLINK_HOME $FLINK_INSTALL_PATH/flink
ENV PATH $PATH:$FLINK_HOME/bin
-RUN apk --no-cache add curl
+RUN apk update && apk add curl
+RUN apk add wget
+
RUN set -x && \
mkdir -p ${FLINK_INSTALL_PATH} && \
#apk --update add --virtual curl && \
- curl -s https://archive.apache.org/dist/flink/flink-${FLINK_VERSION}/flink-${FLINK_VERSION}-bin-hadoop${HADOOP_VERSION}-scala_${SCALA_BINARY_VERSION}.tgz | \
- tar xz -C ${FLINK_INSTALL_PATH} && \
+ wget https://archive.apache.org/dist/flink/flink-${FLINK_VERSION}/flink-${FLINK_VERSION}-bin-hadoop${HADOOP_VERSION}-scala_${SCALA_BINARY_VERSION}.tgz && \
+ tar -xzf flink-${FLINK_VERSION}-bin-hadoop${HADOOP_VERSION}-scala_${SCALA_BINARY_VERSION}.tgz -C ${FLINK_INSTALL_PATH} && \
ln -s ${FLINK_INSTALL_PATH}/flink-${FLINK_VERSION} ${FLINK_HOME} && \
sed -i -e "s/echo \$mypid >> \$pid/echo \$mypid >> \$pid \&\& wait/g" ${FLINK_HOME}/bin/flink-daemon.sh && \
sed -i -e "s/ > \"\$out\" 2>&1 < \/dev\/null//g" ${FLINK_HOME}/bin/flink-daemon.sh && \
@@ -28,7 +30,7 @@ RUN apk update && apk add netcat-openbsd
WORKDIR ${FLINK_HOME}/lib
#include nd4j native libraries into flink image to avoid classloader issues
-RUN cd ${FLINK_HOME}/lib && curl -O -u external:streampipes2017 https://laus.fzi.de/nexus/content/repositories/snapshots/de/fzi/nd4j-platform-fatjar/1.0-SNAPSHOT/nd4j-platform-fatjar-1.0-20170411.204457-1.jar
+RUN cd ${FLINK_HOME}/lib && wget --http-user=external --http-password=streampipes2017 https://laus.fzi.de/nexus/content/repositories/snapshots/de/fzi/nd4j-platform-fatjar/1.0-SNAPSHOT/nd4j-platform-fatjar-1.0-20170815.192353-1.jar
ADD docker-entrypoint.sh ${FLINK_HOME}/bin/
# Additional output to console, allows gettings logs with 'docker-compose logs'
