Skip to content

Commit 90a67b4

Browse files
committed
Updated MooseFS client to version 4.58.0
1 parent af5f8c6 commit 90a67b4

File tree

5 files changed

+45
-102
lines changed

5 files changed

+45
-102
lines changed

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

Lines changed: 30 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -4,116 +4,58 @@ on:
44
push:
55
branches:
66
- master
7-
- dev
87

98
env:
109
REGISTRY_IMAGE: moosefs/moosefs-csi
11-
MFS_CLIENT: 4.57.7
10+
MFS_CLIENT: 4.58.0
1211
CSI_VERSION: 0.9.8
1312

1413
jobs:
15-
build:
14+
build-dockerhub:
1615
runs-on: ubuntu-latest
17-
strategy:
18-
fail-fast: false
19-
matrix:
20-
platform:
21-
- linux/amd64
22-
- linux/arm64
23-
- linux/arm/v7
2416
steps:
25-
- name: Prepare
26-
run: |
27-
platform=${{ matrix.platform }}
28-
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
29-
30-
- name: Docker meta
31-
id: meta
32-
uses: docker/metadata-action@v5
33-
with:
34-
images: ${{ env.REGISTRY_IMAGE }}
35-
tags: |
36-
type=ref,event=branch
37-
type=raw,value=${{ env.CSI_VERSION }}-${{ env.MFS_CLIENT }}
38-
type=raw,value=${{ env.CSI_VERSION }}-{{branch}}
39-
17+
- name: Checkout
18+
uses: actions/checkout@v4
4019
- name: Set up QEMU
4120
uses: docker/setup-qemu-action@v3
42-
4321
- name: Set up Docker Buildx
4422
uses: docker/setup-buildx-action@v3
45-
46-
- name: Login to GitHub Container Registry
23+
- name: Login to Docker Hub
4724
uses: docker/login-action@v3
4825
with:
49-
registry: ghcr.io
50-
username: ${{ github.actor }}
51-
password: ${{ secrets.GHCR_TOKEN }}
52-
53-
- name: Build and push by digest MooseFS Client v4
54-
id: build
55-
uses: docker/build-push-action@v6
56-
with:
57-
file: ./cmd/moosefs-csi-plugin/Dockerfile
58-
platforms: ${{ matrix.platform }}
59-
labels: ${{ steps.meta.outputs.labels }}
60-
outputs: type=image,name=ghcr.io/${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
61-
build-args: |
62-
MFS_TAG=v${{ env.MFS_CLIENT }}
63-
CSI_TAG=dev
64-
65-
- name: Export digest
66-
run: |
67-
mkdir -p /tmp/digests
68-
digest="${{ steps.build.outputs.digest }}"
69-
touch "/tmp/digests/${digest#sha256:}"
70-
71-
- name: Upload digest
72-
uses: actions/upload-artifact@v4
26+
username: ${{ secrets.DOCKERHUB_USERNAME }}
27+
password: ${{ secrets.DOCKERHUB_TOKEN }}
28+
- name: Build and push
29+
uses: docker/build-push-action@v5
7330
with:
74-
name: digests-${{ env.PLATFORM_PAIR }}
75-
path: /tmp/digests/*
76-
if-no-files-found: error
77-
retention-days: 1
78-
79-
merge:
31+
context: ./cmd/moosefs-csi-plugin
32+
platforms: linux/amd64,linux/arm64,linux/arm/v7
33+
push: true
34+
tags: |
35+
${{ env.REGISTRY_IMAGE }}:${{ env.CSI_VERSION }}-${{ env.MFS_CLIENT }}
36+
${{ env.REGISTRY_IMAGE }}:latest
37+
build-ghcr:
8038
runs-on: ubuntu-latest
81-
needs:
82-
- build
8339
steps:
84-
- name: Download digests
85-
uses: actions/download-artifact@v4
86-
with:
87-
path: /tmp/digests
88-
pattern: digests-*
89-
merge-multiple: true
90-
40+
- name: Checkout
41+
uses: actions/checkout@v4
42+
- name: Set up QEMU
43+
uses: docker/setup-qemu-action@v3
9144
- name: Set up Docker Buildx
9245
uses: docker/setup-buildx-action@v3
93-
94-
- name: Docker meta
95-
id: meta
96-
uses: docker/metadata-action@v5
97-
with:
98-
images: ghcr.io/${{ env.REGISTRY_IMAGE }}
99-
tags: |
100-
type=ref,event=branch
101-
type=raw,value=${{ env.CSI_VERSION }}-${{ env.MFS_CLIENT }}
102-
type=raw,value=${{ env.CSI_VERSION }}-{{branch}}
103-
10446
- name: Login to GitHub Container Registry
10547
uses: docker/login-action@v3
10648
with:
10749
registry: ghcr.io
10850
username: ${{ github.actor }}
10951
password: ${{ secrets.GHCR_TOKEN }}
110-
111-
- name: Create manifest list and push
112-
working-directory: /tmp/digests
113-
run: |
114-
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
115-
$(printf 'ghcr.io/${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
116-
117-
- name: Inspect image
118-
run: |
119-
docker buildx imagetools inspect ghcr.io/${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}
52+
- name: Build and push
53+
uses: docker/build-push-action@v5
54+
with:
55+
context: ./cmd/moosefs-csi-plugin
56+
platforms: linux/amd64,linux/arm64,linux/arm/v7
57+
push: true
58+
tags: |
59+
${{ env.REGISTRY_IMAGE }}:${{ env.CSI_VERSION }}-${{ env.MFS_CLIENT }}
60+
${{ env.REGISTRY_IMAGE }}:latest
61+

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
MFS_VERSION = "4.57.7"
15+
MFS_VERSION = "4.58.0"
1616
CSI_VERSION ?= "0.9.8"
1717

1818
MFS_TAG=$(CSI_VERSION)-$(MFS_VERSION)

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ MooseFS source code can be found [on GitHub](https://github.com/moosefs/moosefs)
1313
## Changelog
1414

1515
Driver verson 0.9.8
16-
* MooseFS client updated to version 4.57.6.
16+
* MooseFS client updated to version 4.58.0.
17+
* Image OS changed to Alpine Linux 3.22
1718
* The provisioner and registrar images entries have been updated.
1819
* Update the Dockerfile to build only mfsmount and mfscli.
1920

@@ -63,15 +64,15 @@ Driver verson 0.9.7
6364
* Locate image definition under the `csi-moosefs-plugin` plugin name(line 230 and line 329)
6465
`mage: ghcr.io/moosefs/moosefs-csi:dev`
6566
* Update the `image` version suffix in the plugin's section accordingly:
66-
* `0.9.8-4.57.6` – plugin version 0.9.7 and MooseFS CE 4.57.6
67-
* `0.9.7-4.57.5` – plugin version 0.9.7 and MooseFS CE 4.57.5
68-
* `0.9.7-4.56.6` – plugin version 0.9.7 and MooseFS CE 4.56.6
67+
* `0.9.8-4.58.0` – plugin version 0.9.8 and MooseFS CE 4.58.0
68+
* `0.9.8-4.57.7` – plugin version 0.9.8 and MooseFS CE 4.57.6
69+
* `0.9.7-4.57.6` – plugin version 0.9.7 and MooseFS CE 4.57.5
6970
7071
You can find a complete list of available images at: \
7172
https://github.com/moosefs/moosefs-csi/pkgs/container/moosefs-csi
7273
7374
Fot driver with MoosreFS client PRO version: https://registry.moosefs.com/v2/moosefs-csi-plugin/tags/list.
74-
* `0.9.7-4.56.6-pro` – plugin version 0.9.7 and MooseFS PRO 4.56.6
75+
* `0.9.8-4.58.0-pro` – plugin version 0.9.8 and MooseFS PRO 4.58.0
7576
7677
7778
**Note there are two occurrences of `csi-moosefs-plugin` in `csi-moosefs.yaml` file and it is necessary to update the image version in both places of the file.**

cmd/moosefs-csi-plugin/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313
# limitations under the License.
1414

1515
ARG CSI_TAG="v0.9.8"
16-
ARG MFS_TAG="v4.57.7"
16+
ARG MFS_TAG="v4.58.0"
1717

1818
#Build MooseFS CSI driver from source
19-
FROM golang:1.23-bookworm AS csibuilder
19+
FROM golang:1.25-alpine3.22 AS csibuilder
2020
WORKDIR /build
2121
ARG CSI_TAG
22+
RUN apk add --update git
2223
RUN git clone --depth 1 --branch ${CSI_TAG} https://github.com/moosefs/moosefs-csi.git
2324
RUN cd moosefs-csi && CGO_ENABLED=0 GOCACHE=/tmp/go-cache GOOS=linux go build -a -o /build/moosefs-csi-plugin cmd/moosefs-csi-plugin/main.go
2425

25-
#Build MooseFS Client from source Debian 12 Bookworm
2626
# MooseFS client is required for the CSI driver to mount volumes
27-
FROM ghcr.io/moosefs/mfsbuilder:latest AS mfsbuilder
27+
FROM moosefs/mfsbuilder:alpine3.22 AS mfsbuilder
2828
WORKDIR /moosefs
2929
ARG MFS_TAG
3030
RUN git clone --depth 1 --branch ${MFS_TAG} https://github.com/moosefs/moosefs.git /moosefs
@@ -33,8 +33,8 @@ RUN ./configure --prefix=/usr --mandir=/share/man --sysconfdir=/etc --localstate
3333
RUN cd /moosefs/mfsclient && make DESTDIR=/tmp/ install
3434

3535
#Build CSI plugin container
36-
FROM debian:bookworm
37-
RUN apt update && apt install -y libfuse3-3
36+
FROM alpine:3.22
37+
RUN apk add --update fuse3-libs findmnt
3838
COPY --from=csibuilder /build/moosefs-csi-plugin /bin/moosefs-csi-plugin
3939
COPY --from=mfsbuilder /tmp/usr/bin /usr/bin
4040
RUN ["ln", "-s", "/usr/bin/mfsmount", "/usr/sbin/mount.moosefs"]

deploy/csi-moosefs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ spec:
227227
capabilities:
228228
add: ["SYS_ADMIN"]
229229
allowPrivilegeEscalation: true
230-
image: ghcr.io/moosefs/moosefs-csi:0.9.8-4.57.7
230+
image: ghcr.io/moosefs/moosefs-csi:0.9.8-4.58.0
231231
args:
232232
- "--mode=controller"
233233
- "--csi-endpoint=$(CSI_ENDPOINT)"
@@ -326,7 +326,7 @@ spec:
326326
capabilities:
327327
add: ["SYS_ADMIN"]
328328
allowPrivilegeEscalation: true
329-
image: ghcr.io/moosefs/moosefs-csi:0.9.8-4.57.7
329+
image: ghcr.io/moosefs/moosefs-csi:0.9.8-4.58.0
330330
args:
331331
- "--mode=node"
332332
- "--csi-endpoint=$(CSI_ENDPOINT)"

0 commit comments

Comments
 (0)