Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug][docker] fix scaleph-seatunnel image error #640

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 17 additions & 16 deletions tools/docker/build/scaleph-seatunnel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

ARG FLINK_VERSION=1.15
ARG BASE_RELEASE_IMAGE=flink:${FLINK_VERSION}
FROM maven:3.8-eclipse-temurin-11 as build
FROM $BASE_RELEASE_IMAGE as release

ARG SEATUNNEL_VERSION=2.3.3
ARG TAR_FILE=apache-seatunnel-${SEATUNNEL_VERSION}-bin.tar.gz
Expand All @@ -25,27 +25,28 @@ ENV SEATUNNEL_HOME=/opt/seatunnel
RUN mkdir -p $SEATUNNEL_HOME

RUN wget https://archive.apache.org/dist/seatunnel/${SEATUNNEL_VERSION}/$TAR_FILE ; \
tar -zxf $TAR_FILE --strip 1 -C $SEATUNNEL_HOME
tar -zxf $TAR_FILE --strip 1 -C $SEATUNNEL_HOME ; \
rm $TAR_FILE

# strange behavior: replace mvnw by mvn on install-plugin.sh, remove useless comment on plugin_config
RUN rm $SEATUNNEL_HOME/config/plugin_config
COPY tools/docker/build/scaleph-seatunnel/plugin_config $SEATUNNEL_HOME/config

RUN rm $SEATUNNEL_HOME/bin/install-plugin.sh
COPY tools/docker/build/scaleph-seatunnel/install-plugin.sh $SEATUNNEL_HOME/bin
#RUN rm $SEATUNNEL_HOME/bin/install-plugin.sh
#COPY tools/docker/build/scaleph-seatunnel/install-plugin.sh $SEATUNNEL_HOME/bin

RUN cd $SEATUNNEL_HOME ; \
sh -x bin/install-plugin.sh ${SEATUNNEL_VERSION}
#RUN cd $SEATUNNEL_HOME ; \
# sh -x bin/install-plugin.sh ${SEATUNNEL_VERSION}

#RUN cd ${SEATUNNEL_HOME}||sh bin/install-plugin.sh ${SEATUNNEL_VERSION}
RUN cd ${SEATUNNEL_HOME}||sh bin/install-plugin.sh ${SEATUNNEL_VERSION}

# BASE_RELEASE_IMAGE argument must be defined twice
ARG FLINK_VERSION=1.15
ARG BASE_RELEASE_IMAGE=flink:${FLINK_VERSION}
FROM $BASE_RELEASE_IMAGE as release

ENV SEATUNNEL_HOME=/opt/seatunnel

RUN mkdir -p $SEATUNNEL_HOME

COPY --from=build $SCALEPH_HOME $SCALEPH_HOME/
#ARG FLINK_VERSION=1.15
#ARG BASE_RELEASE_IMAGE=flink:${FLINK_VERSION}
#FROM $BASE_RELEASE_IMAGE as release
#
#ENV SEATUNNEL_HOME=/opt/seatunnel
#
#RUN mkdir -p $SEATUNNEL_HOME
#
#COPY --from=build $SCALEPH_HOME $SCALEPH_HOME/