Skip to content

Commit 5515af7

Browse files
committed
Use Hadoop native libraries
1 parent 5fe3deb commit 5515af7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ COPY ./src /code/src
2929

3030
RUN ./gradlew jar
3131

32-
FROM openjdk:8-jre-alpine
32+
FROM smizy/hadoop-base:3.0.3-alpine
3333

3434
MAINTAINER Joris Borgdorff <[email protected]>
3535

@@ -39,4 +39,6 @@ COPY --from=builder /code/build/third-party/* /usr/lib/
3939
COPY --from=builder /code/build/scripts/* /usr/bin/
4040
COPY --from=builder /code/build/libs/* /usr/lib/
4141

42+
ENV JAVA_OPTS -Djava.library.path=${HADOOP_HOME}/lib/native
43+
4244
ENTRYPOINT ["radar-hdfs-restructure"]

0 commit comments

Comments
 (0)