Skip to content

Commit 7e363bd

Browse files
committed
Upgrade to zookeeper 3.7.1
1 parent e5e080c commit 7e363bd

File tree

6 files changed

+27
-24
lines changed

6 files changed

+27
-24
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-20220513
66
pullPolicy: IfNotPresent
77

88
triggerRollingRestart: false

docker/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
# http://www.apache.org/licenses/LICENSE-2.0
99
#
1010

11-
FROM mcr.microsoft.com/openjdk/jdk:11-ubuntu
11+
FROM openjdk:17-jdk-slim-bullseye
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-20220513
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM eclipse-temurin:17-jdk-focal
1+
FROM openjdk:17-jdk-slim-bullseye
22

33

44
ENV ZOO_CONF_DIR=/conf \
@@ -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; \

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.1")
1616
}
1717

1818
tasks.withType<ShadowJar>() {

0 commit comments

Comments
 (0)