Skip to content

Commit d57f5d7

Browse files
committed
chore: hadolint fixes
1 parent 25741a9 commit d57f5d7

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

hadoop/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ USER ${STACKABLE_USER_UID}
7676
RUN <<EOF
7777
cd "$(/stackable/patchable --images-repo-root=src checkout hadoop ${PRODUCT})"
7878

79-
export ORIGINAL_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
80-
export NEW_VERSION="${PRODUCT}-stackable${RELEASE}"
79+
ORIGINAL_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
80+
NEW_VERSION=${PRODUCT}-stackable${RELEASE}
8181

82-
mvn versions:set -DnewVersion=$NEW_VERSION
82+
mvn versions:set -DnewVersion=${NEW_VERSION}
8383

8484
# Since we skip building the hadoop-pipes module, we need to set the version to the original version so it can be pulled from Maven Central
8585
sed -e '/<artifactId>hadoop-pipes<\/artifactId>/,/<\/dependency>/ { s/<version>.*<\/version>/<version>'"$ORIGINAL_VERSION"'<\/version>/ }' -i hadoop-tools/hadoop-tools-dist/pom.xml
@@ -93,7 +93,7 @@ mvn \
9393
clean package install \
9494
-Pdist,native \
9595
-pl '!hadoop-tools/hadoop-pipes' \
96-
-Dhadoop.version=$NEW_VERSION \
96+
-Dhadoop.version=${NEW_VERSION} \
9797
-Drequire.fuse=true \
9898
-DskipTests \
9999
-Dmaven.javadoc.skip=true

spark-k8s/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ COPY --chown=${STACKABLE_USER_UID}:0 spark-k8s/stackable/patches/${PRODUCT} /sta
2222
RUN <<EOF
2323
cd "$(/stackable/patchable --images-repo-root=src checkout spark-k8s ${PRODUCT})"
2424

25-
ORIGINAL_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
2625
NEW_VERSION="${PRODUCT}-stackable${RELEASE}"
2726

2827
mvn versions:set -DnewVersion=$NEW_VERSION
@@ -178,6 +177,7 @@ export MAVEN_OPTS="-Xss64m -Xmx2g -XX:ReservedCodeCacheSize=1g" \
178177
--batch-mode
179178
sed -i "s/${NEW_VERSION}/${ORIGINAL_VERSION}/g" assembly/target/bom.json
180179
EOF
180+
181181
# <<< Build spark
182182

183183

trino/trino/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ COPY --chown=${STACKABLE_USER_UID}:0 trino/trino/stackable/patches/${PRODUCT} /s
1616
RUN --mount=type=cache,id=maven-${PRODUCT},target=/root/.m2/repository <<EOF
1717
cd "$(/stackable/patchable --images-repo-root=src checkout trino/trino ${PRODUCT})"
1818

19-
ORIGINAL_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
2019
NEW_VERSION="${PRODUCT}-stackable${RELEASE}"
2120

2221
mvn versions:set -DnewVersion=$NEW_VERSION
@@ -74,4 +73,4 @@ ln -s /stackable/trino-server-${NEW_VERSION} /stackable/trino-server
7473

7574
# Set correct permissions
7675
chmod --recursive g=u /stackable
77-
EOF
76+
EOF

0 commit comments

Comments
 (0)