-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #132 from bedroge/riscv
Build containers for riscv64
- Loading branch information
Showing
5 changed files
with
103 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
ARG cvmfsversion=2.11.2 | ||
ARG archspecversion=0.2.2 | ||
ARG awscliversion=1.32.22 | ||
ARG fuseoverlayfsversion=1.10 | ||
|
||
FROM debian:sid-20240330-slim AS prepare-deb | ||
ARG cvmfsversion | ||
COPY ./containers/build-or-download-cvmfs-debs.sh /build-or-download-cvmfs-debs.sh | ||
RUN sh /build-or-download-cvmfs-debs.sh ${cvmfsversion} | ||
|
||
|
||
FROM debian:sid-20240330-slim | ||
ARG cvmfsversion | ||
ARG archspecversion | ||
ARG awscliversion | ||
ARG fuseoverlayfsversion | ||
|
||
COPY --from=prepare-deb /root/deb /root/deb | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y sudo vim openssh-client gawk autofs curl attr uuid fuse3 libfuse2 psmisc gdb uuid-dev lsof strace | ||
# python3 and jq are required for eessi-upload-to-staging script (next to awscli) | ||
RUN apt-get install -y python3-pip python3-venv jq | ||
RUN dpkg -i /root/deb/cvmfs_${cvmfsversion}~1+debian13_$(dpkg --print-architecture).deb \ | ||
/root/deb/cvmfs-fuse3_${cvmfsversion}~1+debian13_$(dpkg --print-architecture).deb \ | ||
/root/deb/cvmfs-libs_${cvmfsversion}~1+debian13_$(dpkg --print-architecture).deb \ | ||
/root/deb/cvmfs-config-default_latest_all.deb \ | ||
/root/deb/cvmfs-config-eessi_latest_all.deb | ||
|
||
# download binary for specific version of fuse-overlayfs | ||
RUN curl -L -o /usr/local/bin/fuse-overlayfs https://github.com/containers/fuse-overlayfs/releases/download/v${fuseoverlayfsversion}/fuse-overlayfs-$(uname -m) \ | ||
&& chmod +x /usr/local/bin/fuse-overlayfs | ||
|
||
RUN echo 'CVMFS_QUOTA_LIMIT=10000' > /etc/cvmfs/default.local \ | ||
&& echo 'CVMFS_CLIENT_PROFILE="single"' >> /etc/cvmfs/default.local \ | ||
&& echo 'CVMFS_HIDE_MAGIC_XATTRS=yes' >> /etc/cvmfs/default.local | ||
|
||
RUN mkdir -p /cvmfs/software.eessi.io | ||
|
||
RUN useradd -ms /bin/bash eessi | ||
|
||
RUN python3 -m venv /opt/archspec && . /opt/archspec/bin/activate && pip3 install archspec==${archspecversion} && deactivate && ln -s /opt/archspec/bin/archspec /usr/local/bin/archspec | ||
# stick to awscli v1.x, 2.x is not available through PyPI (see https://github.com/aws/aws-cli/issues/4947) | ||
RUN python3 -m venv /opt/awscli && . /opt/awscli/bin/activate && pip3 install awscli==${awscliversion} && deactivate && ln -s /opt/awscli/bin/aws /usr/local/bin/aws |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters