Skip to content

Commit 8717461

Browse files
authored
Merge pull request #1 from trz42/create_nessi_cfg_packages
prepare cfg for NESSI
2 parents 3101cd6 + 76a3e75 commit 8717461

File tree

7 files changed

+122
-114
lines changed

7 files changed

+122
-114
lines changed

.github/workflows/build-test-release-client-packages.yml

Lines changed: 31 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ jobs:
1818
build-linux-packages:
1919
runs-on: ubuntu-latest
2020
steps:
21+
- name: Install Ansible
22+
run: |
23+
sudo apt update --yes
24+
sudo apt install --yes software-properties-common
25+
sudo add-apt-repository --yes --update ppa:ansible/ansible
26+
sudo apt install --yes ansible
27+
2128
- name: Checkout
2229
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
2330

@@ -36,11 +43,13 @@ jobs:
3643
- name: Make symlink to group_vars
3744
run: ln -s inventory/group_vars
3845

46+
# uses: roles-ansible/check-ansible-debian-stable-action@bc4b37806481d66df213c1a8d5c59495ed7801f0
3947
- name: Prepare package source
40-
uses: roles-ansible/check-ansible-debian-stable-action@bc4b37806481d66df213c1a8d5c59495ed7801f0
48+
uses: dawidd6/action-ansible-playbook@5d970176ea4bfd99a3f5004d48e293fe0994eda1 # v2.6.1
4149
with:
42-
targets: "./prepare-client-packages.yml"
43-
hosts: "localhost"
50+
playbook: "./prepare-client-packages.yml"
51+
# options: |
52+
# --inventory "localhost"
4453

4554
# We probably should loop over the set {rpm,deb,osxpkg} to create packages, but
4655
# it will make debugging more annoying.
@@ -49,25 +58,25 @@ jobs:
4958
uses: bpicode/github-action-fpm@e76c0e2166030f4691d641a700b16958c7d12f5d # v0.9.2
5059
with:
5160
fpm_args: "etc"
52-
fpm_opts: "--debug -n cvmfs-config-eessi -v ${{ steps.get_version.outputs.version }} -t rpm -a all -s dir -C ./package --description 'CVMFS configuration package for EESSI.'"
61+
fpm_opts: "--debug -n cvmfs-config-nessi -v ${{ steps.get_version.outputs.version }} -t rpm -a all -s dir -C ./package --description 'CVMFS configuration package for NESSI.'"
5362

5463
- name: Build Deb package
5564
uses: bpicode/github-action-fpm@e76c0e2166030f4691d641a700b16958c7d12f5d # v0.9.2
5665
with:
5766
fpm_args: "etc"
58-
fpm_opts: "--debug -n cvmfs-config-eessi -v ${{ steps.get_version.outputs.version }} -t deb -a all -s dir -C ./package --description 'CVMFS configuration package for EESSI.'"
67+
fpm_opts: "--debug -n cvmfs-config-nessi -v ${{ steps.get_version.outputs.version }} -t deb -a all -s dir -C ./package --description 'CVMFS configuration package for NESSI.'"
5968

6069
- name: Build tar package
6170
uses: bpicode/github-action-fpm@e76c0e2166030f4691d641a700b16958c7d12f5d # v0.9.2
6271
with:
6372
fpm_args: "etc"
64-
fpm_opts: "--debug -n cvmfs-config-eessi-${{ steps.get_version.outputs.version }} -t tar -a all -s dir -C ./package --description 'CVMFS configuration package for EESSI.'"
73+
fpm_opts: "--debug -n cvmfs-config-nessi-${{ steps.get_version.outputs.version }} -t tar -a all -s dir -C ./package --description 'CVMFS configuration package for NESSI.'"
6574

6675
- name: Upload packages as build artifacts
6776
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
6877
with:
6978
name: linux_packages
70-
path: cvmfs-config-eessi*
79+
path: cvmfs-config-nessi*
7180

7281
# build-macos-package:
7382
# runs-on: macos-latest
@@ -131,7 +140,7 @@ jobs:
131140
- name: Install CVMFS client
132141
run: sudo apt-get update && sudo apt-get install cvmfs
133142

134-
- name: Download cvmfs-config-eessi package
143+
- name: Download cvmfs-config-nessi package
135144
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # v3.0.1
136145
with:
137146
name: linux_packages
@@ -140,7 +149,7 @@ jobs:
140149
id: find_filename
141150
shell: bash
142151
run: |
143-
debfile="$(find . -name cvmfs-config-eessi*.deb)"
152+
debfile="$(find . -name cvmfs-config-nessi*.deb)"
144153
echo ::set-output name=debfile::${debfile}
145154
146155
- name: Install package
@@ -153,7 +162,7 @@ jobs:
153162
run: sudo cvmfs_config setup
154163

155164
- name: Test repository access
156-
run: ls /cvmfs/pilot.eessi-hpc.org/
165+
run: ls /cvmfs/pilot.nessi.no/
157166

158167
test-rpm-package:
159168
needs: build-linux-packages
@@ -169,7 +178,7 @@ jobs:
169178
- name: Install CVMFS client
170179
run: yum install -y cvmfs
171180

172-
- name: Download cvmfs-config-eessi package
181+
- name: Download cvmfs-config-nessi package
173182
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # v3.0.1
174183
with:
175184
name: linux_packages
@@ -178,7 +187,7 @@ jobs:
178187
id: find_filename
179188
shell: bash
180189
run: |
181-
rpmfile="$(find . -name cvmfs-config-eessi*.rpm)"
190+
rpmfile="$(find . -name cvmfs-config-nessi*.rpm)"
182191
echo ::set-output name=rpmfile::${rpmfile}
183192
184193
- name: Install package
@@ -189,10 +198,10 @@ jobs:
189198

190199
- name: Mount the repositories
191200
#run: cvmfs_config setup
192-
run: mkdir -p /cvmfs/pilot.eessi-hpc.org && mount -t cvmfs pilot.eessi-hpc.org /cvmfs/pilot.eessi-hpc.org
201+
run: mkdir -p /cvmfs/pilot.nessi.no && mount -t cvmfs pilot.nessi.no /cvmfs/pilot.nessi.no
193202

194203
- name: Test repository access
195-
run: ls /cvmfs/pilot.eessi-hpc.org/
204+
run: ls /cvmfs/pilot.nessi.no/
196205

197206
test-tar-package:
198207
needs: build-linux-packages
@@ -207,7 +216,7 @@ jobs:
207216
- name: Install CVMFS client
208217
run: sudo apt-get update && sudo apt-get install cvmfs
209218

210-
- name: Download cvmfs-config-eessi package
219+
- name: Download cvmfs-config-nessi package
211220
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # v3.0.1
212221
with:
213222
name: linux_packages
@@ -216,7 +225,7 @@ jobs:
216225
id: find_filename
217226
shell: bash
218227
run: |
219-
tarfile="$(find . -name cvmfs-config-eessi*.tar)"
228+
tarfile="$(find . -name cvmfs-config-nessi*.tar)"
220229
echo ::set-output name=tarfile::${tarfile}
221230
222231
- name: Install package
@@ -229,7 +238,7 @@ jobs:
229238
run: sudo cvmfs_config setup
230239

231240
- name: Test repository access
232-
run: ls /cvmfs/pilot.eessi-hpc.org/
241+
run: ls /cvmfs/pilot.nessi.no/
233242

234243
# test-macos-package:
235244
# needs: build-macos-package
@@ -267,6 +276,7 @@ jobs:
267276

268277
release:
269278
#needs: [build-linux-packages, build-macos-package, test-deb-package, test-rpm-package, test-macos-package, test-tar-package]
279+
#needs: [build-linux-packages, test-deb-package, test-tar-package]
270280
needs: [build-linux-packages, test-deb-package, test-rpm-package, test-tar-package]
271281
if: startsWith(github.ref, 'refs/tags/')
272282
runs-on: ubuntu-latest
@@ -290,7 +300,7 @@ jobs:
290300
shell: bash
291301
run: |
292302
ls -1 -R .
293-
echo ::set-output name=package_filenames::$(find ./build_artifacts -name cvmfs-config-eessi*)
303+
echo ::set-output name=package_filenames::$(find ./build_artifacts -name cvmfs-config-nessi*)
294304
295305
- uses: meeDamian/github-release@7ae19492500104f636b3fee4d8103af0fed36c8e # v2.0.3
296306
with:
@@ -326,9 +336,9 @@ jobs:
326336
shell: bash
327337
run: |
328338
sudo apt-get install rename
329-
rename "s/([0-9]+.[0-9]+.[0-9]+)(-[0-9]+)?/latest/g" $(find ./build_artifacts -name cvmfs-config-eessi*)
339+
rename "s/([0-9]+.[0-9]+.[0-9]+)(-[0-9]+)?/latest/g" $(find ./build_artifacts -name cvmfs-config-nessi*)
330340
ls -1 -R ./build_artifacts
331-
echo ::set-output name=package_filenames::$(find ./build_artifacts -name cvmfs-config-eessi*latest*)
341+
echo ::set-output name=package_filenames::$(find ./build_artifacts -name cvmfs-config-nessi*latest*)
332342
333343
- name: Delete any previous tag/release named "latest"
334344
uses: dev-drprasad/delete-tag-and-release@085c6969f18bad0de1b9f3fe6692a3cd01f64fe5 # v0.2.0
@@ -346,6 +356,6 @@ jobs:
346356
body: |
347357
Filesystem Layer release ${{ steps.find_version.outputs.version }} (see: https://github.com/${{github.repository}}/releases/tag/${{ steps.find_version.outputs.version }})
348358
349-
This `latest` tag is a moving tag that is updated automatically for each release, and provides easy access to the latest `cvmfs-config-eessi` packages.
359+
This `latest` tag is a moving tag that is updated automatically for each release, and provides easy access to the latest `cvmfs-config-nessi` packages.
350360
files: ${{ steps.find_filenames.outputs.package_filenames }}
351361
gzip: false

.github/workflows/check-stratum-servers.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ jobs:
3232
echo 'EOF' >> $GITHUB_ENV
3333
exit $EC
3434
35-
- name: send Slack message if there was an error
36-
uses: rtCamp/action-slack-notify@12e36fc18b0689399306c2e0b3e0f2978b7f1ee7 # v2.2.0
37-
if: steps.check.outcome != 'success' && github.event_name != 'pull_request'
38-
env:
39-
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
40-
SLACK_MESSAGE: ${{ env.STRATUM_ERRORS }}
41-
SLACK_COLOR: 'danger'
42-
SLACK_FOOTER:
35+
# - name: send Slack message if there was an error
36+
# uses: rtCamp/action-slack-notify@12e36fc18b0689399306c2e0b3e0f2978b7f1ee7 # v2.2.0
37+
# if: steps.check.outcome != 'success' && github.event_name != 'pull_request'
38+
# env:
39+
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
40+
# SLACK_MESSAGE: ${{ env.STRATUM_ERRORS }}
41+
# SLACK_COLOR: 'danger'
42+
# SLACK_FOOTER:

containers/Dockerfile.EESSI-build-node-debian11

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,14 @@ RUN echo 'CVMFS_QUOTA_LIMIT=10000' > /etc/cvmfs/default.local \
3232
&& echo 'CVMFS_CLIENT_PROFILE="single"' >> /etc/cvmfs/default.local \
3333
&& echo 'CVMFS_HIDE_MAGIC_XATTRS=yes' >> /etc/cvmfs/default.local
3434

35-
RUN mkdir -p /cvmfs/pilot.eessi-hpc.org
35+
RUN mkdir -p /cvmfs/pilot.nessi.no
3636

3737
RUN useradd -ms /bin/bash eessi
3838

3939
# stick to awscli v1.x, 2.x is not available through PyPI (see https://github.com/aws/aws-cli/issues/4947)
4040
RUN pip3 install archspec awscli==${awscliversion}
4141

42-
RUN curl -OL https://github.com/raw/EESSI/infrastructure/main/eessi-upload-to-staging \
42+
RUN curl -OL
43+
https://github.com/raw/NorESSI/eessi-bot-software-layer/main/scripts/eessi-upload-to-staging \
4344
&& mv eessi-upload-to-staging /usr/bin \
4445
&& chmod a+x /usr/bin/eessi-upload-to-staging

containers/Dockerfile.EESSI-client-pilot-centos7

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ RUN yum install -y sudo vim openssh-clients lsof
2828
RUN yum install -y /root/rpmbuild/RPMS/$(uname -m)/cvmfs-${cvmfsversion}-1.el7.$(uname -m).rpm \
2929
/root/rpmbuild/RPMS/$(uname -m)/cvmfs-fuse3-${cvmfsversion}-1.el7.$(uname -m).rpm \
3030
http://ecsft.cern.ch/dist/cvmfs/cvmfs-config/cvmfs-config-default-latest.noarch.rpm
31-
RUN yum install -y https://github.com/EESSI/filesystem-layer/releases/download/latest/cvmfs-config-eessi-latest.noarch.rpm
31+
RUN yum install -y https://github.com/NorESSI/filesystem-layer/releases/download/latest/cvmfs-config-eessi-latest.noarch.rpm
3232

3333
# download binary for specific version of fuse-overlayfs
3434
#RUN curl -L -o /usr/local/bin/fuse-overlayfs https://github.com/containers/fuse-overlayfs/releases/download/v${fuseoverlayfsversion}/fuse-overlayfs-$(uname -m) \
@@ -38,6 +38,6 @@ RUN echo 'CVMFS_QUOTA_LIMIT=10000' > /etc/cvmfs/default.local \
3838
&& echo 'CVMFS_CLIENT_PROFILE="single"' >> /etc/cvmfs/default.local \
3939
&& echo 'CVMFS_HIDE_MAGIC_XATTRS=yes' >> /etc/cvmfs/default.local
4040

41-
RUN mkdir -p /cvmfs/pilot.eessi-hpc.org
41+
RUN mkdir -p /cvmfs/pilot.nessi.no
4242

4343
RUN useradd -ms /bin/bash eessi

containers/build-or-download-cvmfs-debs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ fi
2727

2828
cd /root/deb
2929
wget https://ecsft.cern.ch/dist/cvmfs/cvmfs-config/cvmfs-config-default_latest_all.deb
30-
wget https://github.com/EESSI/filesystem-layer/releases/download/latest/cvmfs-config-eessi_latest_all.deb
30+
wget https://github.com/NorESSI/filesystem-layer/releases/download/latest/cvmfs-config-eessi_latest_all.deb

0 commit comments

Comments
 (0)