Unverified Commit 2b802a39 authored by ZackYoung's avatar ZackYoung Committed by GitHub

[Fix][docker] fix docker-image flink version (#1495)

* fix docker-image flink version * replace docker image jdk
parent fe2ae196
FROM ibmjava:8-sfj as build-stage
FROM openjdk:8u342-oracle as build-stage
ARG DINKY_VERSION
ENV DINKY_VERSION=${DINKY_VERSION}
......@@ -10,7 +10,7 @@ RUN mv /opt/dlink-release-${DINKY_VERSION} /opt/dinky/
RUN mkdir -p /opt/dinky/run && mkdir -p /opt/dinky/logs && touch /opt/dinky/logs/dlink.log
RUN chmod -R 777 /opt/dinky/
FROM ibmjava:8-sfj as production-stage
FROM openjdk:8u342-oracle as production-stage
COPY --from=build-stage /opt/dinky/ /opt/dinky/
WORKDIR /opt/dinky/
......
......@@ -5,7 +5,7 @@ FROM flink:${FLINK_VERSION} as reqired-stage
FROM ${DINKY_IMAGE} as build-stage
FROM ibmjava:8-sfj as production-stage
FROM openjdk:8u342-oracle as production-stage
USER root
ARG FLINK_BIG_VERSION
......@@ -18,4 +18,4 @@ WORKDIR /opt/dinky/
EXPOSE 8888
CMD ./auto.sh restart && tail -f /opt/dinky/logs/dlink.log
\ No newline at end of file
CMD ./auto.sh restart ${FLINK_BIG_VERSION} && tail -f /opt/dinky/logs/dlink.log
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment