Skip to content

Commit

Permalink
Upgrade to zookeeper 3.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
amuraru committed May 13, 2022
1 parent e5e080c commit 7e363bd
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 24 deletions.
31 changes: 17 additions & 14 deletions .github/workflows/build-push-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,37 +17,40 @@ jobs:
ref="${ref////-}"
echo $ref
echo ::set-output name=tag::$ref
- name: Build and push zookeeper-operator image
uses: docker/build-push-action@v1
with:
dockerfile: Dockerfile
build_args: VERSION=${{ steps.vars.outputs.tag }},GIT_SHA=${{ github.sha }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: adobe/zookeeper-operator
tag_with_ref: true
add_git_labels: true
always_pull: true
push: ${{ startsWith(github.ref, 'refs/tags/') && !startsWith(github.ref, 'refs/tags/zk') }}
- name: Build and push zookeeper Apache image
uses: docker/build-push-action@v1
if: ${{ startsWith(github.ref, 'refs/tags/zk') }}
with:
path: docker/zookeeper-image
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: adobe/zookeeper
tags: 3.6.3-apache-${{ steps.vars.outputs.tag }}
tags: 3.7.1-apache-${{ steps.vars.outputs.tag }}
add_git_labels: true
always_pull: true
push: ${{ startsWith(github.ref, 'refs/tags/zk') }}
- name: Build and push zookeeper image
if: ${{ !startsWith(github.ref, 'refs/tags/zk') }}
uses: docker/build-push-action@v1
with:
path: docker
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: adobe/zookeeper
tags: 3.6.3-${{ steps.vars.outputs.tag }}
tags: 3.7.1-${{ steps.vars.outputs.tag }}
add_git_labels: true
always_pull: true
push: ${{ startsWith(github.ref, 'refs/tags/') && !startsWith(github.ref, 'refs/tags/zk') }}
- name: Build and push zookeeper-operator image
if: ${{ !startsWith(github.ref, 'refs/tags/zk') }}
uses: docker/build-push-action@v1
with:
dockerfile: Dockerfile
build_args: VERSION=${{ steps.vars.outputs.tag }},GIT_SHA=${{ github.sha }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: adobe/zookeeper-operator
tag_with_ref: true
add_git_labels: true
always_pull: true
push: ${{ startsWith(github.ref, 'refs/tags/') && !startsWith(github.ref, 'refs/tags/zk') }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The project is currently alpha. While no breaking API changes are currently plan

### Overview

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

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

Expand Down
2 changes: 1 addition & 1 deletion charts/zookeeper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ replicas: 3

image:
repository: adobe/zookeeper
tag: 3.6.3-0.2.11-adobe-20210610rc1
tag: 3.7.1-0.2.13-adobe-20220513
pullPolicy: IfNotPresent

triggerRollingRestart: false
Expand Down
8 changes: 4 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
# http://www.apache.org/licenses/LICENSE-2.0
#

FROM mcr.microsoft.com/openjdk/jdk:11-ubuntu
FROM openjdk:17-jdk-slim-bullseye
RUN mkdir /zu
COPY zu /zu
WORKDIR /zu
RUN ./gradlew --console=verbose --info shadowJar
RUN ./gradlew shadowJar

# use forked base zookeeper 3.6.3 docker image
# use forked base zookeeper 3.7.1 docker image
# that runs on openjdk-17
FROM adobe/zookeeper:3.6.3-apache-zk-20211008
FROM adobe/zookeeper:3.7.1-apache-zk-20220513
COPY bin /usr/local/bin
RUN chmod +x /usr/local/bin/*
COPY --from=0 /zu/build/libs/zu.jar /opt/libs/
Expand Down
6 changes: 3 additions & 3 deletions docker/zookeeper-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM eclipse-temurin:17-jdk-focal
FROM openjdk:17-jdk-slim-bullseye


ENV ZOO_CONF_DIR=/conf \
Expand Down Expand Up @@ -36,8 +36,8 @@ RUN set -eux; \
# Verify that gosu binary works
gosu nobody true

ARG SHORT_DISTRO_NAME=zookeeper-3.6.3
ARG DISTRO_NAME=apache-zookeeper-3.6.3-bin
ARG SHORT_DISTRO_NAME=zookeeper-3.7.1
ARG DISTRO_NAME=apache-zookeeper-3.7.1-bin

# Download Apache Zookeeper, verify its PGP signature, untar and clean up
RUN set -eux; \
Expand Down
2 changes: 1 addition & 1 deletion docker/zu/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repositories {

dependencies {
implementation(kotlin("stdlib"))
implementation("org.apache.zookeeper:zookeeper:3.6.3")
implementation("org.apache.zookeeper:zookeeper:3.7.1")
}

tasks.withType<ShadowJar>() {
Expand Down

0 comments on commit 7e363bd

Please sign in to comment.