forked from IBM/java-iceberg-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (24 loc) · 931 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM registry.access.redhat.com/ubi7/ubi
# Build Dependencies
RUN yum install -y wget
# Install Java
RUN mkdir -p /opt/java \
&& cd /opt/java \
&& wget https://download.oracle.com/java/17/archive/jdk-17.0.5_linux-x64_bin.tar.gz \
&& tar xvzf jdk-17.0.5_linux-x64_bin.tar.gz \
&& ln -s /opt/java/jdk-17.0.5/bin/java /usr/bin/java \
&& rm -f jdk-17.0.5_linux-x64_bin.tar.gz
# Install Maven
RUN mkdir -p /opt/maven \
&& cd /opt/maven \
&& wget https://dlcdn.apache.org/maven/maven-3/3.9.4/binaries/apache-maven-3.9.4-bin.tar.gz \
&& tar xvzf apache-maven-3.9.4-bin.tar.gz \
&& ln -s /opt/maven/apache-maven-3.9.4/bin/mvn /usr/bin/mvn \
&& rm -f apache-maven-3.9.4-bin.tar.gz
# Install java-iceberg-cli
COPY tools/java-iceberg-cli /home/java-iceberg-cli
RUN cd /home/java-iceberg-cli \
&& mvn package -DskipTests=true
# Clean up
RUN rm -rf /tmp/*
ENTRYPOINT ["tail", "-f", "/dev/null"]