Skip to content

Commit f8ee1cf

Browse files
authored
Merge pull request #125 from bedroge/update_cvmfs_build_container
Hide magic attributes in CVMFS configuration of EESSI containers + update to CernVM-FS 2.9.4
2 parents afb4895 + db19231 commit f8ee1cf

4 files changed

+17
-8
lines changed

containers/Dockerfile.EESSI-build-node-debian10

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG cvmfsversion=2.9.0
1+
ARG cvmfsversion=2.9.4
22
ARG awscliversion=1.22.33
33

44
FROM debian:10.11 AS prepare-deb
@@ -30,7 +30,8 @@ RUN dpkg -i /root/deb/cvmfs_${cvmfsversion}~1+debian10_$(dpkg --print-architectu
3030
RUN apt-get install -y fuse-overlayfs
3131

3232
RUN echo 'CVMFS_QUOTA_LIMIT=10000' > /etc/cvmfs/default.local \
33-
&& echo 'CVMFS_CLIENT_PROFILE="single"' >> /etc/cvmfs/default.local
33+
&& echo 'CVMFS_CLIENT_PROFILE="single"' >> /etc/cvmfs/default.local \
34+
&& echo 'CVMFS_HIDE_MAGIC_XATTRS=yes' >> /etc/cvmfs/default.local
3435

3536
RUN mkdir -p /cvmfs/pilot.eessi-hpc.org
3637

containers/Dockerfile.EESSI-client-pilot-centos7

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG cvmfsversion=2.9.0
1+
ARG cvmfsversion=2.9.4
22
# Stick to old version of fuse-overlayfs due to issues with newer versions
33
# (cfr. https://github.com/containers/fuse-overlayfs/issues/232)
44
ARG fuseoverlayfsversion=0.3
@@ -31,11 +31,12 @@ RUN yum install -y /root/rpmbuild/RPMS/$(uname -m)/cvmfs-${cvmfsversion}-1.el7.$
3131
RUN yum install -y https://github.com/EESSI/filesystem-layer/releases/download/latest/cvmfs-config-eessi-latest.noarch.rpm
3232

3333
# download binary for specific version of fuse-overlayfs
34-
RUN curl -L -o /usr/local/bin/fuse-overlayfs https://github.com/containers/fuse-overlayfs/releases/download/v${fuseoverlayfsversion}/fuse-overlayfs-$(uname -m) \
35-
&& chmod +x /usr/local/bin/fuse-overlayfs
34+
#RUN curl -L -o /usr/local/bin/fuse-overlayfs https://github.com/containers/fuse-overlayfs/releases/download/v${fuseoverlayfsversion}/fuse-overlayfs-$(uname -m) \
35+
# && chmod +x /usr/local/bin/fuse-overlayfs
3636

3737
RUN echo 'CVMFS_QUOTA_LIMIT=10000' > /etc/cvmfs/default.local \
38-
&& echo 'CVMFS_CLIENT_PROFILE="single"' >> /etc/cvmfs/default.local
38+
&& echo 'CVMFS_CLIENT_PROFILE="single"' >> /etc/cvmfs/default.local \
39+
&& echo 'CVMFS_HIDE_MAGIC_XATTRS=yes' >> /etc/cvmfs/default.local
3940

4041
RUN mkdir -p /cvmfs/pilot.eessi-hpc.org
4142

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ apt-get update
55
apt-get install -y wget
66
if [ "$arch" = "ppc64el" ] || [ "$arch" = "arm64" ]
77
then
8-
apt-get install -y devscripts libfuse3-dev cmake cpio libcap-dev libssl-dev libfuse-dev pkg-config libattr1-dev python-dev python-setuptools python3-setuptools uuid-dev valgrind libz-dev lsb-release
8+
apt-get install -y devscripts libfuse3-dev cmake cpio libcap-dev libssl-dev libfuse-dev pkg-config libattr1-dev python-dev python-setuptools python3-dev python3-setuptools uuid-dev valgrind libz-dev lsb-release
9+
# Set Python 2 as default Python
10+
update-alternatives --install /usr/bin/python python /usr/bin/python2 1
11+
update-alternatives --install /usr/bin/python python /usr/bin/python3 2
912
cd /tmp
1013
wget https://github.com/cvmfs/cvmfs/archive/refs/tags/cvmfs-${cvmfsversion}.tar.gz
1114
tar xzf cvmfs-${cvmfsversion}.tar.gz

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ yum install -y wget
55
if [ "$arch" = "ppc64le" ]
66
then
77
yum install -y epel-release
8-
yum install -y rpm-build checkpolicy cmake fuse-devel fuse3-devel gcc gcc-c++ golang libattr-devel libcap-devel libuuid-devel openssl-devel python2-devel python2-setuptools selinux-policy-devel valgrind-devel hardlink selinux-policy-targeted
8+
yum install -y rpm-build checkpolicy cmake fuse-devel fuse3-devel gcc gcc-c++ golang libattr-devel libcap-devel libuuid-devel openssl-devel python-devel python-setuptools python3-devel python3-setuptools selinux-policy-devel valgrind-devel hardlink selinux-policy-targeted
9+
# Set Python 2 as default Python
10+
update-alternatives --install /usr/bin/python python /usr/bin/python3 1
11+
update-alternatives --install /usr/bin/python python /usr/bin/python2 2
12+
update-alternatives --set python /usr/bin/python2
913
wget https://ecsft.cern.ch/dist/cvmfs/cvmfs-${cvmfsversion}/cvmfs-${cvmfsversion}-1.el7.src.rpm && rpmbuild --rebuild cvmfs-${cvmfsversion}-1.el7.src.rpm
1014
else
1115
mkdir -p /root/rpmbuild/RPMS/${arch}

0 commit comments

Comments
 (0)