Code Monkey home page Code Monkey logo

Comments (7)

HamaWhiteGG avatar HamaWhiteGG commented on July 18, 2024 1

good job, I hava two suggestions:

  1. use mvn clean package -Pdocker instead of mvn clean package -Pdocker
  2. dont't mkdir sbin dir, you can see this
COPY lineage-dist/dist/flink-sql-lineage-1.0.0.tgz /opt/workspace/

RUN cd /opt/workspace && \
    tar -xvzf flink-sql-lineage-1.0.0.tgz && \
    chmod +x flink-sql-lineage-1.0.0/sbin/*.sh

WORKDIR /opt/workspace/flink-sql-lineage-1.0.0

from flink-sql-lineage.

fenghaojiang avatar fenghaojiang commented on July 18, 2024 1

really appreciated for your guide and it works. Thanks a lot!

from flink-sql-lineage.

HamaWhiteGG avatar HamaWhiteGG commented on July 18, 2024

are you use JDK8?

from flink-sql-lineage.

fenghaojiang avatar fenghaojiang commented on July 18, 2024

Sry I misuse the version.

from flink-sql-lineage.

fenghaojiang avatar fenghaojiang commented on July 18, 2024

when I switch my java version use jenv. Same problem still occurs.

image

Looks like the tgz file is missing.

from flink-sql-lineage.

fenghaojiang avatar fenghaojiang commented on July 18, 2024

good job, I hava two suggestions:

  1. use mvn clean package -Pdocker instead of mvn clean package -Pdocker
  2. dont't mkdir sbin dir, you can see this
COPY lineage-dist/dist/flink-sql-lineage-1.0.0.tgz /opt/workspace/

RUN cd /opt/workspace && \
    tar -xvzf flink-sql-lineage-1.0.0.tgz && \
    chmod +x flink-sql-lineage-1.0.0/sbin/*.sh

WORKDIR /opt/workspace/flink-sql-lineage-1.0.0

I try but the duration seem unbearable... So forget it.

FROM maven:3.3.9-jdk-8-alpine as BUILDER

LABEL mentainer="[email protected]"

COPY . .

RUN mvn clean package -Pdocker

FROM openjdk:8-jre-alpine as runner

WORKDIR /opt/workspace/

RUN mkdir -p sbin

COPY --from=BUILDER lineage-dist/dist/flink-sql-lineage-1.0.0.tgz /opt/workspace/

RUN cd /opt/workspace && \
    tar -xvzf flink-sql-lineage-1.0.0.tgz && \
    chmod +x flink-sql-lineage-1.0.0/sbin/*.sh

WORKDIR /opt/workspace/flink-sql-lineage-1.0.0

EXPOSE 8194

# add `tail -f /dev/null` to keep the container from exiting
ENTRYPOINT ["/bin/sh", "-c", "sbin/start.sh && tail -f /dev/null"]

from flink-sql-lineage.

HamaWhiteGG avatar HamaWhiteGG commented on July 18, 2024

I think there is another way.

This project use JDK8, so you need to install it to develop.
Once it is installed, you can use the following command:

export JAVA_HOME=JDK8_INSTALL_HOME && sh sbin/start-docker-compose.sh

I tried this, and it works fine. (My computer default is JDK 17).
image

I have also updated the README, which you can refer to for more information.

finally, open the home page to view FlinkSQL lineage.
http://127.0.0.1:8194

image

from flink-sql-lineage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.