-
Notifications
You must be signed in to change notification settings - Fork 16
Add build container based on Debian 12 #180
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
Open
bedroge
wants to merge
13
commits into
EESSI:main
Choose a base branch
from
bedroge:debian12_build_container
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
e252397
add Dockerfile for debian 12 build container
bedroge 5679f2d
add build-node:debian12
bedroge 79c310b
drop ppc64le support
bedroge c039d66
install archspec and awscli in virtual environment
bedroge 256d7ef
use '.' instead of 'source'
bedroge 141afc2
pin archspec version
bedroge 9a4bd68
Make sure Debian 12 is used throughout
ocaisa 68604ef
fix cvmfs package names for debian 12
bedroge ab317cf
Merge branch 'debian12_build_container' of github.com:bedroge/filesys…
bedroge 5ae6378
Revert hasty change
ocaisa ea11f25
Merge branch 'debian12_build_container' of github.com:bedroge/filesys…
bedroge 0e3d3de
dynamically determine os
bedroge 310b69d
use debian12 in package names
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,46 @@ | ||
ARG cvmfsversion=2.11.2 | ||
ARG awscliversion=1.32.22 | ||
ARG fuseoverlayfsversion=1.10 | ||
|
||
FROM debian:12.5 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:12.5 | ||
ARG cvmfsversion | ||
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+debian11_$(dpkg --print-architecture).deb \ | ||
/root/deb/cvmfs-fuse3_${cvmfsversion}~1+debian11_$(dpkg --print-architecture).deb \ | ||
/root/deb/cvmfs-libs_${cvmfsversion}~1+debian11_$(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 && source /opt/archspec/bin/activate && pip3 install archspec && 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 && source /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 |
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.