Skip to content

Commit a258950

Browse files
committed
Add Cassandra 4.0.1 and updated docs
1 parent 5a13ce6 commit a258950

File tree

3 files changed

+36
-11
lines changed

3 files changed

+36
-11
lines changed

.github/workflows/docker-release.yaml

+26-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
4242
tags: '${{ env.RELEASE_VERSION }}'
4343
dockerfile: Dockerfile-dse-68
44-
build-oss-4_0:
44+
build-oss-4_0_1:
4545
runs-on: ubuntu-latest
4646
steps:
4747
- uses: actions/checkout@master
@@ -54,11 +54,34 @@ jobs:
5454
version: latest
5555
- name: Login to Docker Hub
5656
run: echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin
57-
- name: Publish 3.11.7 to Registry
57+
- name: Publish 4.0.1 to Registry
58+
run: |
59+
RELEASE_VERSION="${GITHUB_REF##*/}"
60+
docker buildx build --push \
61+
--build-arg CASSANDRA_VERSION=4.0.1 \
62+
--tag k8ssandra/cass-management-api:4.0.1 \
63+
--tag k8ssandra/cass-management-api:4.0.1-$RELEASE_VERSION \
64+
--file Dockerfile-4_0 \
65+
--target oss40 \
66+
--platform linux/amd64,linux/arm64 .
67+
build-oss-4_0_0:
68+
runs-on: ubuntu-latest
69+
steps:
70+
- uses: actions/checkout@master
71+
- name: Set up QEMU
72+
uses: docker/setup-qemu-action@v1
73+
- name: Setup Buildx
74+
id: buildx
75+
uses: docker/setup-buildx-action@v1
76+
with:
77+
version: latest
78+
- name: Login to Docker Hub
79+
run: echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin
80+
- name: Publish 4.0.0 to Registry
5881
run: |
5982
RELEASE_VERSION="${GITHUB_REF##*/}"
6083
docker buildx build --push \
61-
--build-arg CASSANDRA_VERSION=4.0 \
84+
--build-arg CASSANDRA_VERSION=4.0.0 \
6285
--tag k8ssandra/cass-management-api:4.0.0 \
6386
--tag k8ssandra/cass-management-api:4.0.0-$RELEASE_VERSION \
6487
--file Dockerfile-4_0 \

Dockerfile-4_0

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG CASSANDRA_VERSION=4.0
1+
ARG CASSANDRA_VERSION=4.0.1
22

33
FROM --platform=$BUILDPLATFORM maven:3.6.3-jdk-8-slim as builder
44

README.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ First you need to build the Management API base image
6262

6363
Then you need to build the image based on the actual Cassandra version, either the 3.11 or 4.0:
6464

65-
**NOTE:** For building 3.11 images, you will need to have the [Docker buildx plugin](https://docs.docker.com/buildx/working-with-buildx/) installed.
65+
**NOTE:** For building 3.11 and 4.0 images, you will need to have the [Docker buildx plugin](https://docs.docker.com/buildx/working-with-buildx/) installed.
6666

67-
#Create a docker image with management api and C* 3.11 (version 3.11.7 and newer are supported, replace `3.11.10` with the version you want below)
68-
docker buildx build --load --build-arg CASSANDRA_VERSION=3.11.10 --tag mgmtapi-3_11 --file Dockerfile-oss --target oss311 --platform linux/amd64 .
67+
#Create a docker image with management api and C* 3.11 (version 3.11.7 and newer are supported, replace `3.11.11` with the version you want below)
68+
docker buildx build --load --build-arg CASSANDRA_VERSION=3.11.11 --tag mgmtapi-3_11 --file Dockerfile-oss --target oss311 --platform linux/amd64 .
6969

70-
#Create a docker image with management api and C* 4.0
71-
docker build -t mgmtapi-4_0 -f Dockerfile-4_0 .
70+
#Create a docker image with management api and C* 4.0 (version 4.0.0 and 4.0.1 are supported)
71+
docker buildx build --load --build-arg CASSANDRA_VERSION=4.0.1 --tag mgmtapi-4_0 --file Dockerfile-4_0 --target oss40 --platform linux/amd64 .
7272

7373
You can also build an image based on Datastax Astra Cassandra 4.0 sources. First checkout [sources](https://github.com/datastax/cassandra/tree/astra) and build a tgz distribution:
7474

@@ -114,9 +114,11 @@ Finally build the Management API image:
114114

115115
k8ssandra/cass-management-api:3.11.7
116116
k8ssandra/cass-management-api:3.11.8
117-
k8ssandra/cass-management-api:3.11.9
118-
k8ssandra/cass-management-api:3.11.10
117+
k8ssandra/cass-management-api:3.11.9 (**Deprecated: last version is v0.1.27**)
118+
k8ssandra/cass-management-api:3.11.10 (**Deprecated: last version is v0.1.27**)
119+
k8ssandra/cass-management-api:3.11.11
119120
k8ssandra/cass-management-api:4.0.0
121+
k8ssandra/cass-management-api:4.0.1
120122

121123
Each of the above examples will always point to the **latest** Management API version for the associated Cassandra version. If you want a specific
122124
Management API version, you can append the desired version to the Cassandra version tag. For example, if you want v0.1.24 of Management API for Cassandra version 3.11.9:

0 commit comments

Comments
 (0)