Skip to content

Commit 1ee54b2

Browse files
committed
Upgrade to zookeeper 3.7.1
1 parent 8fc0ffd commit 1ee54b2

File tree

6 files changed

+33
-29
lines changed

6 files changed

+33
-29
lines changed

.github/workflows/build-push-docker.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,37 +17,40 @@ jobs:
1717
ref="${ref////-}"
1818
echo $ref
1919
echo ::set-output name=tag::$ref
20-
- name: Build and push zookeeper-operator image
21-
uses: docker/build-push-action@v1
22-
with:
23-
dockerfile: Dockerfile
24-
build_args: VERSION=${{ steps.vars.outputs.tag }},GIT_SHA=${{ github.sha }}
25-
username: ${{ secrets.DOCKER_USERNAME }}
26-
password: ${{ secrets.DOCKER_PASSWORD }}
27-
repository: adobe/zookeeper-operator
28-
tag_with_ref: true
29-
add_git_labels: true
30-
always_pull: true
31-
push: ${{ startsWith(github.ref, 'refs/tags/') && !startsWith(github.ref, 'refs/tags/zk') }}
3220
- name: Build and push zookeeper Apache image
3321
uses: docker/build-push-action@v1
22+
if: ${{ startsWith(github.ref, 'refs/tags/zk') }}
3423
with:
3524
path: docker/zookeeper-image
3625
username: ${{ secrets.DOCKER_USERNAME }}
3726
password: ${{ secrets.DOCKER_PASSWORD }}
3827
repository: adobe/zookeeper
39-
tags: 3.6.3-apache-${{ steps.vars.outputs.tag }}
28+
tags: 3.7.1-apache-${{ steps.vars.outputs.tag }}
4029
add_git_labels: true
4130
always_pull: true
4231
push: ${{ startsWith(github.ref, 'refs/tags/zk') }}
4332
- name: Build and push zookeeper image
33+
if: ${{ !startsWith(github.ref, 'refs/tags/zk') }}
4434
uses: docker/build-push-action@v1
4535
with:
4636
path: docker
4737
username: ${{ secrets.DOCKER_USERNAME }}
4838
password: ${{ secrets.DOCKER_PASSWORD }}
4939
repository: adobe/zookeeper
50-
tags: 3.6.3-${{ steps.vars.outputs.tag }}
40+
tags: 3.7.1-${{ steps.vars.outputs.tag }}
41+
add_git_labels: true
42+
always_pull: true
43+
push: ${{ startsWith(github.ref, 'refs/tags/') && !startsWith(github.ref, 'refs/tags/zk') }}
44+
- name: Build and push zookeeper-operator image
45+
if: ${{ !startsWith(github.ref, 'refs/tags/zk') }}
46+
uses: docker/build-push-action@v1
47+
with:
48+
dockerfile: Dockerfile
49+
build_args: VERSION=${{ steps.vars.outputs.tag }},GIT_SHA=${{ github.sha }}
50+
username: ${{ secrets.DOCKER_USERNAME }}
51+
password: ${{ secrets.DOCKER_PASSWORD }}
52+
repository: adobe/zookeeper-operator
53+
tag_with_ref: true
5154
add_git_labels: true
5255
always_pull: true
5356
push: ${{ startsWith(github.ref, 'refs/tags/') && !startsWith(github.ref, 'refs/tags/zk') }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The project is currently alpha. While no breaking API changes are currently plan
2828

2929
### Overview
3030

31-
This operator runs a Zookeeper 3.6.3 cluster, and uses Zookeeper dynamic reconfiguration to handle node membership.
31+
This operator runs a Zookeeper 3.7.1 cluster, and uses Zookeeper dynamic reconfiguration to handle node membership.
3232

3333
The operator itself is built with the [Operator framework](https://github.com/operator-framework/operator-sdk).
3434

charts/zookeeper/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ replicas: 3
22

33
image:
44
repository: adobe/zookeeper
5-
tag: 3.6.3-0.2.11-adobe-20210610rc1
5+
tag: 3.7.1-0.2.13-adobe-20211016
66
pullPolicy: IfNotPresent
77

88
triggerRollingRestart: false

docker/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ FROM mcr.microsoft.com/openjdk/jdk:11-ubuntu
1212
RUN mkdir /zu
1313
COPY zu /zu
1414
WORKDIR /zu
15-
RUN ./gradlew --console=verbose --info shadowJar
15+
RUN ./gradlew shadowJar
1616

17-
# use forked base zookeeper 3.6.3 docker image
17+
# use forked base zookeeper 3.7.1 docker image
1818
# that runs on openjdk-17
19-
FROM adobe/zookeeper:3.6.3-apache-zk-20211008
19+
FROM adobe/zookeeper:3.7.1-apache-zk-20211016
2020
COPY bin /usr/local/bin
2121
RUN chmod +x /usr/local/bin/*
2222
COPY --from=0 /zu/build/libs/zu.jar /opt/libs/

docker/zookeeper-image/Dockerfile

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ RUN set -eux; \
3636
# Verify that gosu binary works
3737
gosu nobody true
3838

39-
ARG SHORT_DISTRO_NAME=zookeeper-3.6.3
40-
ARG DISTRO_NAME=apache-zookeeper-3.6.3-bin
39+
ARG SHORT_DISTRO_NAME=zookeeper-3.7.1
40+
ARG DISTRO_NAME=apache-zookeeper-3.7.1-bin
4141

4242
# Download Apache Zookeeper, verify its PGP signature, untar and clean up
4343
RUN set -eux; \
@@ -51,6 +51,7 @@ RUN set -eux; \
5151
https://www-us.apache.org/dist/ \
5252
https://www.apache.org/dist/ \
5353
https://archive.apache.org/dist/ \
54+
https://github.com/adobe/zookeeper-operator/releases/download/0.2.13-adobe-20211008/ \
5455
; do \
5556
if wget -q -O "$f" "$distUrl$distFile" && [ -s "$f" ]; then \
5657
success=1; \
@@ -59,15 +60,15 @@ RUN set -eux; \
5960
done; \
6061
[ -n "$success" ]; \
6162
}; \
62-
ddist "$DISTRO_NAME.tar.gz" "zookeeper/$SHORT_DISTRO_NAME/$DISTRO_NAME.tar.gz"; \
63-
ddist "$DISTRO_NAME.tar.gz.asc" "zookeeper/$SHORT_DISTRO_NAME/$DISTRO_NAME.tar.gz.asc"; \
64-
ddist "KEYS" "zookeeper/KEYS"; \
65-
export GNUPGHOME="$(mktemp -d)"; \
66-
gpg --import KEYS; \
67-
gpg --batch --verify "$DISTRO_NAME.tar.gz.asc" "$DISTRO_NAME.tar.gz"; \
63+
ddist "$DISTRO_NAME.tar.gz" "$DISTRO_NAME.tar.gz"; \
64+
# ddist "$DISTRO_NAME.tar.gz.asc" "zookeeper/$SHORT_DISTRO_NAME/$DISTRO_NAME.tar.gz.asc"; \
65+
# ddist "KEYS" "zookeeper/KEYS"; \
66+
# export GNUPGHOME="$(mktemp -d)"; \
67+
# gpg --import KEYS; \
68+
# gpg --batch --verify "$DISTRO_NAME.tar.gz.asc" "$DISTRO_NAME.tar.gz"; \
6869
tar -zxf "$DISTRO_NAME.tar.gz"; \
6970
mv "$DISTRO_NAME/conf/"* "$ZOO_CONF_DIR"; \
70-
rm -rf "$GNUPGHOME" "KEYS" "$DISTRO_NAME.tar.gz" "$DISTRO_NAME.tar.gz.asc" "$DISTRO_NAME/docs"; \
71+
rm -rf "$DISTRO_NAME.tar.gz" "$DISTRO_NAME.tar.gz.asc" "$DISTRO_NAME/docs"; \
7172
chown -R zookeeper:zookeeper "/$DISTRO_NAME"
7273
COPY opt/zkEnv.sh $DISTRO_NAME/bin/zkEnv.sh
7374

docker/zu/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repositories {
1212

1313
dependencies {
1414
implementation(kotlin("stdlib"))
15-
implementation("org.apache.zookeeper:zookeeper:3.6.3")
15+
implementation("org.apache.zookeeper:zookeeper:3.7.0")
1616
}
1717

1818
tasks.withType<ShadowJar>() {

0 commit comments

Comments
 (0)