Skip to content
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

add container level test and refine document #72

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

SamYuan1990
Copy link
Contributor

@SamYuan1990 SamYuan1990 commented Apr 4, 2024

add container test for container runtime install, as GHA locks down gnupg keys and container runtime for ubi.

@SamYuan1990 SamYuan1990 marked this pull request as ready for review April 4, 2024 02:49
@SamYuan1990 SamYuan1990 changed the title add container level test add container level test and refine document Apr 4, 2024
@SamYuan1990 SamYuan1990 requested a review from rootfs April 4, 2024 02:50
@SamYuan1990 SamYuan1990 marked this pull request as draft April 4, 2024 03:10
@SamYuan1990
Copy link
Contributor Author

@rootfs , I tested with fedora image at local, fails at

yum install -y yum-utils
...
Error Summary
-------------
Disk Requirements:
   At least 6MB more space needed on the / filesystem.

could you please advise as how to install docker https://docs.docker.com/engine/install/fedora/ ?

@SamYuan1990 SamYuan1990 marked this pull request as ready for review April 4, 2024 03:37
@SamYuan1990 SamYuan1990 marked this pull request as draft April 4, 2024 04:12
@SamYuan1990
Copy link
Contributor Author

[root@82a7c25391e1 /]# ./main.sh 
start install container runtime as docker
install yum utils
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Red Hat Universal Base Image 9 (RPMs) - BaseOS                                  368 kB/s | 515 kB     00:01    
Red Hat Universal Base Image 9 (RPMs) - AppStream                               678 kB/s | 1.8 MB     00:02    
Red Hat Universal Base Image 9 (RPMs) - CodeReady Builder                       304 kB/s | 192 kB     00:00    
Dependencies resolved.
================================================================================================================
 Package                      Architecture       Version                    Repository                     Size
================================================================================================================
Installing:
 yum-utils                    noarch             4.3.0-11.el9_3             ubi-9-baseos-rpms              45 k
Installing dependencies:
 dnf-plugins-core             noarch             4.3.0-11.el9_3             ubi-9-baseos-rpms              42 k

Transaction Summary
================================================================================================================
Install  2 Packages

Total download size: 87 k
Installed size: 45 k
Downloading Packages:
(1/2): dnf-plugins-core-4.3.0-11.el9_3.noarch.rpm                                32 kB/s |  42 kB     00:01    
(2/2): yum-utils-4.3.0-11.el9_3.noarch.rpm                                      9.8 kB/s |  45 kB     00:04    
----------------------------------------------------------------------------------------------------------------
Total                                                                            19 kB/s |  87 kB     00:04     
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: Transaction test error:
  installing package dnf-plugins-core-4.3.0-11.el9_3.noarch needs 148KB more space on the / filesystem
  installing package yum-utils-4.3.0-11.el9_3.noarch needs 388KB more space on the / filesystem

Error Summary
-------------
Disk Requirements:
   At least 1MB more space needed on the / filesystem.

config yum repo
./main.sh: line 24: yum-config-manager: command not found
install docker
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 0:00:06 ago on Thu Apr  4 04:25:07 2024.
No match for argument: docker-ce
No match for argument: docker-ce-cli
No match for argument: containerd.io
No match for argument: docker-buildx-plugin
No match for argument: docker-compose-plugin
Error: Unable to find a match: docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
[root@82a7c25391e1 /]# 

test with ubi locally...confusing...

@SamYuan1990
Copy link
Contributor Author

use UBI image instead... and use file existing instead check from etc/os-release.

@SamYuan1990 SamYuan1990 marked this pull request as ready for review April 4, 2024 04:58
@SamYuan1990
Copy link
Contributor Author

fix #69

@SamYuan1990
Copy link
Contributor Author

a part of #65

@SamYuan1990 SamYuan1990 marked this pull request as ready for review April 4, 2024 08:46
@rootfs rootfs merged commit 7dafcda into sustainable-computing-io:main Apr 4, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants