From 15b8c5a7e7f56aff97037831c7f9ceecd89edc7c Mon Sep 17 00:00:00 2001 From: Dwight Spencer Date: Wed, 13 Nov 2019 16:52:57 -0600 Subject: [PATCH 1/2] (improvement) Offsets healthcheck to T+1m (#397) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 06ad3018..bf4a8549 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,7 @@ RUN apk add --no-cache -U \ RUN pip install mcstatus yq -HEALTHCHECK CMD mcstatus localhost:$SERVER_PORT ping +HEALTHCHECK --start-period=1m CMD mcstatus localhost:$SERVER_PORT ping RUN addgroup -g 1000 minecraft \ && adduser -Ss /bin/false -u 1000 -G minecraft -h /home/minecraft minecraft \ From 135bafefeb2b79d650480b33d430f98e7c2bef0d Mon Sep 17 00:00:00 2001 From: Alexei Date: Sat, 16 Nov 2019 15:46:52 +0100 Subject: [PATCH 2/2] docker-versions-create init (#408) --- docker-versions-create.sh | 71 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100755 docker-versions-create.sh diff --git a/docker-versions-create.sh b/docker-versions-create.sh new file mode 100755 index 00000000..8337ea85 --- /dev/null +++ b/docker-versions-create.sh @@ -0,0 +1,71 @@ +#!/bin/bash +#set -x +# Use this variable to indicate a list of branches that docker hub is watching +branches_list=('openj9' 'openj9-nightly') + +function TrapExit { + echo "Checking out back in master" + git checkout master +} + +trap TrapExit EXIT SIGTERM + +test -d ./.git || { echo ".git folder was not found. Please start this script from root directory of the project!"; + exit 1; } + +# Making sure we are in master +git checkout master +git pull --all || { echo "Can't pull the repo!"; \ + exit 1; } + +git_branches=$(git branch -a) + +for branch in "${branches_list[@]}"; do + if [[ "$git_branches" != *"$branch"* ]]; then + echo "Can't update $branch because I can't find it in the list of branches." + exit 1 + else + echo "Branch $branch found. Working with it." + git checkout "$branch" || { echo "Can't checkout into the branch. Don't know the cause."; \ + exit 1; } + proceed='False' + while [[ "$proceed" == "False" ]]; do + if git merge master; then + proceed="True" + echo "Branch $branch updated to current master successfully" + # pushing changes to remote for this branch + git commit -m "Auto merge branch with master" -a + # push may fail if remote doesn't have this branch yet. In this case - sending branch + git push || git push -u origin "$branch" || { echo "Can't push changes to the origin."; exit 1; } + else + cat<