Skip to content

Commit 0cdb471

Browse files
authored
DRILL-8505: Fix Docker Hub automated container image builds
1 parent 1b7569d commit 0cdb471

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525
# {docker|podman} build \
2626
# --build-arg BUILD_BASE_IMAGE=maven:3.8.2-openjdk-11 \
2727
# --build-arg BASE_IMAGE=openjdk:11 \
28-
# -t apache/drill-openjdk-11
28+
# -t apache/drill-openjdk-11
2929

30-
# Unless otherwise specified, the intermediate container image will be
30+
# Unless otherwise specified, the intermediate container image will be
3131
# based on the following default.
32-
ARG BUILD_BASE_IMAGE=maven:3.8.2-openjdk-8
32+
ARG BUILD_BASE_IMAGE=maven:3-openjdk-17
3333

3434
# Unless otherwise specified, the final container image will be based on
3535
# the following default.
36-
ARG BASE_IMAGE=openjdk:8
36+
ARG BASE_IMAGE=openjdk:17
3737

3838
# Uses intermediate image for building Drill to reduce target image size
3939
FROM $BUILD_BASE_IMAGE as build
@@ -44,7 +44,7 @@ WORKDIR /src
4444
COPY . .
4545

4646
# Builds Drill
47-
RUN mvn -Dmaven.artifact.threads=5 -T1C clean install -DskipTests
47+
RUN mvn clean install -DskipTests
4848

4949
# Get project version and copy built binaries into /opt/drill directory
5050
RUN VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec) \
@@ -54,7 +54,7 @@ RUN VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --n
5454

5555
# Target image
5656

57-
# Set the BASE_IMAGE build arg when you invoke docker build.
57+
# Set the BASE_IMAGE build arg when you invoke docker build.
5858
FROM $BASE_IMAGE
5959

6060
# Starts Drill in embedded mode and connects to Sqlline

hooks/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ docker build \
2121
--build-arg BUILD_BASE_IMAGE=maven:3-openjdk-8 \
2222
--build-arg BASE_IMAGE=openjdk:8 \
2323
-t apache/drill:$DOCKER_TAG-openjdk-8 \
24-
-t apache/drill:$DOCKER_TAG \
2524
.
2625

2726
docker build \
@@ -34,4 +33,5 @@ docker build \
3433
--build-arg BUILD_BASE_IMAGE=maven:3-openjdk-17 \
3534
--build-arg BASE_IMAGE=openjdk:17-slim-bullseye \
3635
-t apache/drill:$DOCKER_TAG-openjdk-17 \
36+
-t apache/drill:$DOCKER_TAG \
3737
.

0 commit comments

Comments
 (0)