-
Notifications
You must be signed in to change notification settings - Fork 17
Build containers for riscv64 #132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 14 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
13157e7
add risc64
bedroge 32fe776
add riscv64
bedroge 16cab69
add riscv64
bedroge 5bf780b
also rebuild when deb script is changed
bedroge 2a9a027
solve merge conflict, remove ppc64le, add riscv64
bedroge a0987ca
add Dockerfile for Debian sid
bedroge 84c808e
support multiple debian versions, add risc-v support
bedroge 7b492a7
add debian sid container
bedroge 628c7e0
for now, only build debian sid
bedroge 488d333
always build from source for debian13
bedroge fdd9d2c
fix release check
bedroge 8ef7050
single square brackets
bedroge fe704c0
use correct check for cvmfs distro version
bedroge 47b44ed
add -i to sed
bedroge 25022cd
make sure fuse is properly handled on trixie
bedroge 4063226
use different start dir, add patch from PR 3446 for RISC-V
bedroge 42aa1d6
use uname -m for cpu detection on risc-v
bedroge e0e8c59
build all images, only build for risc-v for debian sid images
bedroge 8da6758
remove eessi-upload-to-staging script from image
bedroge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,48 @@ | ||
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 | ||
|
||
RUN curl -OL https://raw.githubusercontent.com/EESSI/eessi-bot-software-layer/develop/scripts/eessi-upload-to-staging \ | ||
&& mv eessi-upload-to-staging /usr/bin \ | ||
&& chmod a+x /usr/bin/eessi-upload-to-staging | ||
bedroge marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.