Open Abuelodelanada opened 1 year ago
Observed same issue with traefik-rock.
it's because of
stage:
- bin/alertmanager
- bin/amtool
this is filtering the part for only those two filepaths.
@Abuelodelanada I found this while I was troubleshooting an issue with Traefik container. It seems that you also need to stage /etc/ssl/certs/
. Otherwise, the soft links that the package creates are gone inside the container.
root@752f8cedaa20:/# apt install -y openssl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
ca-certificates
The following NEW packages will be installed:
openssl
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
...
Setting up openssl (3.0.2-0ubuntu1.14) ...
root@752f8cedaa20:/# ll /etc/ssl/certs/
total 8
drwxr-xr-x 2 root root 4096 May 18 2023 ./
drwxr-xr-x 1 root root 4096 Feb 15 16:21 ../
root@752f8cedaa20:/# apt install ca-certificates
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
ca-certificates
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 155 kB of archives.
After this operation, 399 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 ca-certificates all 20230311ubuntu0.22.04.1 [155 kB]
Fetched 155 kB in 1s (132 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package ca-certificates.
(Reading database ... 4696 files and directories currently installed.)
Preparing to unpack .../ca-certificates_20230311ubuntu0.22.04.1_all.deb ...
Unpacking ca-certificates (20230311ubuntu0.22.04.1) ...
Setting up ca-certificates (20230311ubuntu0.22.04.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line
78.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-li
nux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x8
6_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Updating certificates in /etc/ssl/certs...
137 added, 0 removed; done.
Processing triggers for ca-certificates (20230311ubuntu0.22.04.1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
root@752f8cedaa20:/# ll /etc/ssl/certs/
total 612
drwxr-xr-x 1 root root 20480 Feb 15 16:22 ./
drwxr-xr-x 1 root root 4096 Feb 15 16:21 ../
lrwxrwxrwx 1 root root 23 Feb 15 16:21 002c0b4f.0 -> GlobalSign_Root_R46.pem
...
Thank you for reporting us your feedback!
The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-2498.
This message was autogenerated
Thanks for the feedback @skatsaounis !
Bug Description
apt package is not installed in the image.
To Reproduce
Pack the following rockcraft.yaml:
Copy the oci-image to docker:
Run the container:
Verify that the command
update-ca-certificates
, that it is installed with the packageca-certificates
in thestage-packages
section, is not present in the container:But, with this modification in
rockcraft.yaml
:The package is installed in the container:
Environment
Rockcraft:
skopeo:
OS:
Docker:
rockcraft.yaml
Relevant log output