From d88ff2a8c4adc69058d8747a972d98e5a6130c38 Mon Sep 17 00:00:00 2001 From: Dennis Date: Wed, 12 Jun 2024 13:40:15 +0900 Subject: [PATCH] [Feature][Dockerfile] add Dockerfile for nep-spark-app build (#8) --- Dockerfile | 10 ++++++++++ make-seatunnel-pre-installed-image.sh | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 Dockerfile create mode 100644 make-seatunnel-pre-installed-image.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000000..10befef0023 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM openjdk:8-slim-buster AS build +RUN apt update -y && dpkg --purge --force-depends ca-certificates-java +RUN apt install -y ca-certificates-java +RUN apt install -y maven +RUN apt install -y liblzo2-dev + +RUN mkdir /seatunnel +COPY . /seatunnel/ +WORKDIR /seatunnel +RUN ./mvnw install -Dmaven.test.skip -Drevision=2.3.3 diff --git a/make-seatunnel-pre-installed-image.sh b/make-seatunnel-pre-installed-image.sh new file mode 100644 index 00000000000..2d0d89d95eb --- /dev/null +++ b/make-seatunnel-pre-installed-image.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +docker build -t harbor.nexr.kr/nep/seatunnel-pre-installed:2.3.3 . +docker push harbor.nexr.kr/nep/seatunnel-pre-installed:2.3.3