You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ho...@apache.org on 2022/08/16 02:02:49 UTC
[solr] branch branch_9x updated: SOLR-16338: Fix version label for local Docker image (#973)
This is an automated email from the ASF dual-hosted git repository.
houston pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new b7ae3dea6fa SOLR-16338: Fix version label for local Docker image (#973)
b7ae3dea6fa is described below
commit b7ae3dea6fa25de117361df52c5747b1477664ff
Author: Houston Putman <ho...@apache.org>
AuthorDate: Mon Aug 15 21:58:36 2022 -0400
SOLR-16338: Fix version label for local Docker image (#973)
(cherry picked from commit 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09)
---
solr/docker/build.gradle | 4 ++--
solr/docker/templates/Dockerfile.local.header.template | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/solr/docker/build.gradle b/solr/docker/build.gradle
index efcae7532eb..18927c36d9e 100644
--- a/solr/docker/build.gradle
+++ b/solr/docker/build.gradle
@@ -269,8 +269,7 @@ ext {
//
// Values identical in both Dockerfiles should use consistent names in both templates and
// be defined in the task creation
-
- 'SOLR_VERSION': version,
+
// NOTE: SHA is lazy computed...
'SOLR_TGZ_SHA': "${ -> checksum(configurations.solrTgz.singleFile) }",
'RELEASE_MANAGER_GPG_FINGERPRINT': "${releaseGpgFingerprint}"
@@ -296,6 +295,7 @@ The final Dockerfiles are merely the snippet headers combined with the snippet b
def props = [
// Values defined here should be common (and consistent) across both Dockerfiles
'BASE_IMAGE': baseDockerImage,
+ 'SOLR_VERSION': version,
* : details.props
]
tasks.create("createDockerfile${details.name}", Copy) {
diff --git a/solr/docker/templates/Dockerfile.local.header.template b/solr/docker/templates/Dockerfile.local.header.template
index 33225e0fb2e..6007ffd3389 100644
--- a/solr/docker/templates/Dockerfile.local.header.template
+++ b/solr/docker/templates/Dockerfile.local.header.template
@@ -42,3 +42,4 @@ FROM $BASE_IMAGE
COPY / /opt/
+ARG SOLR_VERSION="_REPLACE_SOLR_VERSION_"