This is an automated email from the ASF dual-hosted git repository.
dixie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/develop by this push:
new db8f2e9 Automate build and publish of Native docker image
new bebeaea Merge pull request #4315 from
onichols-pivotal/GEODE-7440-automate-publishing-of-native-dockerimage
db8f2e9 is described below
commit db8f2e99f36a9c63e47b41a3aac66e4cac4a7ea0
Author: Owen Nichols <[email protected]>
AuthorDate: Mon Nov 11 16:47:02 2019 -0800
Automate build and publish of Native docker image
---
dev-tools/release/promote_rc.sh | 49 ++++++++++++++++++++++++++++++++++++++---
1 file changed, 46 insertions(+), 3 deletions(-)
diff --git a/dev-tools/release/promote_rc.sh b/dev-tools/release/promote_rc.sh
index d7fc8f1..c06bf42 100755
--- a/dev-tools/release/promote_rc.sh
+++ b/dev-tools/release/promote_rc.sh
@@ -161,7 +161,7 @@ set +x
echo ""
echo "============================================================"
-echo "Updating Dockerfile"
+echo "Updating Geode Dockerfile"
echo "============================================================"
set -x
cd ${GEODE}/docker
@@ -181,7 +181,27 @@ set +x
echo ""
echo "============================================================"
-echo "Building docker image"
+echo "Updating Native Dockerfile"
+echo "============================================================"
+set -x
+cd ${GEODE_NATIVE}/docker
+set +x
+sed -e
"/wget.*closer.*apache-geode-/s#http.*filename=geode#https://www.apache.org/dist/geode#"
\
+ -e
"/wget.*closer.*apache-rat-/s#http.*filename=creadur#https://archive.apache.org/dist/creadur#"
\
+ -e "s/^ENV GEODE_VERSION.*/ENV GEODE_VERSION ${VERSION}/" \
+ -i.bak Dockerfile
+rm Dockerfile.bak
+set -x
+git add Dockerfile
+git diff --staged
+git commit -m "apache-geode ${VERSION}"
+git push
+set +x
+
+
+echo ""
+echo "============================================================"
+echo "Building Geode docker image"
echo "============================================================"
set -x
cd ${GEODE}/docker
@@ -193,7 +213,19 @@ set +x
echo ""
echo "============================================================"
-echo "Publishing docker image"
+echo "Building Native docker image"
+echo "============================================================"
+set -x
+cd ${GEODE_NATIVE}/docker
+docker build .
+docker build -t apachegeode/geode-native-build:${VERSION} .
+docker build -t apachegeode/geode-native-build:latest .
+set +x
+
+
+echo ""
+echo "============================================================"
+echo "Publishing Geode docker image"
echo "============================================================"
set -x
cd ${GEODE}/docker
@@ -205,6 +237,17 @@ set +x
echo ""
echo "============================================================"
+echo "Publishing Native docker image"
+echo "============================================================"
+set -x
+cd ${GEODE_NATIVE}/docker
+docker push apachegeode/geode-native-build:${VERSION}
+docker push apachegeode/geode-native-build:latest
+set +x
+
+
+echo ""
+echo "============================================================"
echo "Done promoting release artifacts!"
echo "============================================================"
cd ${GEODE}/../..