Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

templates: update apptainer to 1.1.0 #1076

Merged
merged 2 commits into from
Sep 29, 2022

Conversation

afbjorklund
Copy link
Member

Now has support for rootless containers (user namespaces)

https://github.com/apptainer/apptainer/releases/tag/v1.1.0

Add support for aarch64

Currently only from EPEL

@afbjorklund
Copy link
Member Author

The Rocky download is currently 2.5 GiB in size :-(

But it is from the same vendor, so seemed natural...

https://ciq.co/

Also, that problem is more for examples/rocky.yaml ?

@afbjorklund
Copy link
Member Author

afbjorklund commented Sep 29, 2022

Added dependencies. Think that the RPM method will not work...

Error: 
 Problem: conflicting requests
  - nothing provides fakeroot needed by apptainer-1.1.0-1.el8.aarch64
  - nothing provides squashfuse needed by apptainer-1.1.0-1.el8.aarch64

The package from the github has the same issue, so might as well use EPEL ?

# dnf install -y https://github.com/apptainer/apptainer/releases/download/v1.1.0/apptainer-1.1.0-1.x86_64.rpm
Rocky Linux 8 - AppStream                                                                                                  3.9 MB/s |  11 MB     00:02    
Rocky Linux 8 - BaseOS                                                                                                     2.5 MB/s | 7.9 MB     00:03    
Rocky Linux 8 - Extras                                                                                                      17 kB/s |  12 kB     00:00    
apptainer-1.1.0-1.x86_64.rpm                                                                                               5.4 MB/s |  34 MB     00:06    
Error: 
 Problem: conflicting requests
  - nothing provides fakeroot needed by apptainer-1.1.0-1.x86_64
  - nothing provides squashfuse needed by apptainer-1.1.0-1.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

@afbjorklund afbjorklund marked this pull request as draft September 29, 2022 18:29
@afbjorklund afbjorklund force-pushed the apptainer-1.1.0 branch 2 times, most recently from 3c96863 to 9a054af Compare September 29, 2022 19:33
@afbjorklund afbjorklund marked this pull request as ready for review September 29, 2022 19:34
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Not available from the project downloads,
so use the package from EPEL (Testing).

Once it is available, should probably use
--enablerepo=epel instead of epel-testing.

Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
@afbjorklund
Copy link
Member Author

afbjorklund commented Sep 29, 2022

The root (suid) components are now in a separate package, apptainer-suid

For 1.0, they were both in the main package. But for 1.1, it (suid) is optional

@afbjorklund
Copy link
Member Author

Seems to work OK. Also tested without suid, and that looks ok as well.

$ limactl shell apptainer apptainer run -u -B $HOME:$HOME docker://alpine
INFO:    Converting OCI blobs to SIF format
INFO:    Starting build...
Getting image source signatures
Copying blob 213ec9aee27d done  
Copying config 29f453b10b done  
Writing manifest to image destination
Storing signatures
2022/09/29 20:13:26  info unpack layer: sha256:213ec9aee27d8be045c6a92b7eac22c9a64b44558193775a1a7f626352392b49
INFO:    Creating SIF file...
Apptainer> more /etc/os-release 
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.16.2
PRETTY_NAME="Alpine Linux v3.16"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
Apptainer> exit
$ limactl shell apptainer apptainer --version
apptainer version 1.1.0-1.el8

Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@AkihiroSuda AkihiroSuda added platform/ARM guest/el8 Guest: CentOS 8 / Rocky Linux 8 / Alma Linux 8 labels Sep 29, 2022
@AkihiroSuda AkihiroSuda added this to the v1.0.0 milestone Sep 29, 2022
@AkihiroSuda AkihiroSuda merged commit b4cb081 into lima-vm:master Sep 29, 2022
@AkihiroSuda
Copy link
Member

Next time please consider squashing commits

@afbjorklund
Copy link
Member Author

afbjorklund commented Sep 30, 2022

I rebased and squashed the related commits (one version bump, one new arch)

They could be merged into one change, but that would also make it harder to follow ? Unless keeping the "this is a squashed commit of the following" comment.

@afbjorklund afbjorklund deleted the apptainer-1.1.0 branch September 30, 2022 06:12
@afbjorklund
Copy link
Member Author

This example will get replaced by the much simpler Fedora example:

It has the same software, but is smaller download and shorter yaml...

Currently at 1.0.3, but 1.1.0 is in testing: FEDORA-2022-038f1a2ce3

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
guest/el8 Guest: CentOS 8 / Rocky Linux 8 / Alma Linux 8 platform/ARM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants