Skip to content

Commit f759e65

Browse files
authored
Merge of #209
2 parents 53799e0 + d72eb7f commit f759e65

File tree

3 files changed

+41
-6
lines changed

3 files changed

+41
-6
lines changed

.github/workflows/container-image.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ jobs:
5656
- package_source: devbuilds
5757
os: centos
5858
arch: amd64
59+
- package_source: ceph20
60+
os: centos
61+
arch: amd64
5962
runs-on: ubuntu-latest
6063
env:
6164
BUILDAH_FORMAT: oci
@@ -174,6 +177,9 @@ jobs:
174177
- package_source: devbuilds
175178
os: centos
176179
arch: amd64
180+
- package_source: ceph20
181+
os: centos
182+
arch: amd64
177183
needs: build-server
178184
runs-on: ubuntu-latest
179185
env:
@@ -286,6 +292,11 @@ jobs:
286292
with:
287293
image: "samba-server:devbuilds-centos-amd64"
288294
container_engine: ${{ env.CONTAINER_CMD }}
295+
- name: Fetch server ceph20-centos-amd64
296+
uses: ishworkh/[email protected]
297+
with:
298+
image: "samba-server:ceph20-centos-amd64"
299+
container_engine: ${{ env.CONTAINER_CMD }}
289300
# (ad server images)
290301
- name: Fetch ad-server default-fedora-amd64
291302
uses: ishworkh/[email protected]
@@ -349,6 +360,7 @@ jobs:
349360
-i samba-server:nightly-fedora-arm64
350361
-i samba-server:nightly-centos-amd64
351362
-i samba-server:devbuilds-centos-amd64
363+
-i samba-server:ceph20-centos-amd64
352364
-i samba-ad-server:default-fedora-amd64
353365
-i samba-ad-server:default-fedora-arm64
354366
-i samba-ad-server:default-opensuse-arm64
@@ -372,6 +384,7 @@ jobs:
372384
-i ${REPO_BASE}/samba-server:nightly-fedora-amd64
373385
-i ${REPO_BASE}/samba-server:nightly-centos-amd64
374386
-i ${REPO_BASE}/samba-server:devbuilds-centos-amd64
387+
-i ${REPO_BASE}/samba-server:ceph20-centos-amd64
375388
-i ${REPO_BASE}/samba-ad-server:default-fedora-amd64
376389
-i ${REPO_BASE}/samba-ad-server:default-fedora-arm64
377390
-i ${REPO_BASE}/samba-ad-server:default-opensuse-arm64

hack/build-image

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,15 @@ DEFAULT = "default"
102102
NIGHTLY = "nightly"
103103
DEVBUILDS = "devbuilds"
104104
CUSTOM = "custom"
105-
PACKAGE_SOURCES = [DEFAULT, NIGHTLY, DEVBUILDS, CUSTOM]
105+
CEPH20 = "ceph20"
106+
PACKAGE_SOURCES = [DEFAULT, NIGHTLY, DEVBUILDS, CUSTOM, CEPH20]
106107

107108
PACKAGES_FROM = {
108109
DEFAULT: "",
109110
NIGHTLY: "samba-nightly",
110111
DEVBUILDS: "devbuilds",
111112
CUSTOM: "custom-repos",
113+
CEPH20: "ceph20",
112114
}
113115

114116
# SOURCE_DIRS - image source paths

images/server/install-packages.sh

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,26 @@ get_samba_nightly_repo() {
6464

6565
get_sig_samba_repo() {
6666
if [[ "${OS_BASE}" = centos ]]; then
67-
dnf install --setopt=install_weak_deps=False -y \
68-
centos-release-samba
67+
if [[ -z $1 ]]; then
68+
dnf install --setopt=install_weak_deps=False -y \
69+
centos-release-samba
70+
else
71+
dnf install --setopt=install_weak_deps=False -y \
72+
centos-release-samba"${1//.}"
73+
fi
6974
fi
7075
}
7176

77+
# shellcheck disable=SC2120
7278
get_distro_ceph_repo() {
7379
if [[ "${OS_BASE}" = centos ]]; then
74-
dnf install --setopt=install_weak_deps=False -y \
75-
centos-release-ceph
80+
if [[ -z $1 ]]; then
81+
dnf install --setopt=install_weak_deps=False -y \
82+
centos-release-ceph
83+
else
84+
dnf install --setopt=install_weak_deps=False -y \
85+
centos-release-ceph-"${1}"
86+
fi
7687
fi
7788
}
7889

@@ -148,6 +159,15 @@ case "${install_packages_from}" in
148159
get_ceph_shaman_repo
149160
package_selection=${package_selection:-custom-devbuilds}
150161
;;
162+
ceph20)
163+
get_sig_samba_repo "4.22"
164+
# Replace the following with 'get_distro_ceph_repo "tentacle"'
165+
# once tentacle builds are out and remove the shellcheck waiver
166+
# for get_distro_ceph_repo
167+
CEPH_REPO_REF=tentacle
168+
get_ceph_shaman_repo
169+
package_selection=${package_selection:-stable}
170+
;;
151171
*)
152172
get_sig_samba_repo
153173
get_distro_ceph_repo
@@ -183,7 +203,7 @@ case "${package_selection}-${OS_BASE}" in
183203
*-fedora|allvfs-*)
184204
samba_packages+=(samba-vfs-cephfs samba-vfs-glusterfs ctdb-ceph-mutex)
185205
;;
186-
*devbuilds-centos|forcedevbuilds-*)
206+
*devbuilds-centos|forcedevbuilds-*|stable-*)
187207
# Enable libcephfs proxy for dev builds
188208
support_packages+=(libcephfs-proxy2)
189209
# Fall through to next case

0 commit comments

Comments
 (0)