Skip to content

Instantly share code, notes, and snippets.

@b10n1k
Created April 22, 2022 06:27
Show Gist options
  • Save b10n1k/04ba555b05f181e568eb72aa9180aeb8 to your computer and use it in GitHub Desktop.
Save b10n1k/04ba555b05f181e568eb72aa9180aeb8 to your computer and use it in GitHub Desktop.
❯ sudo docker build - < Dockerfile
Sending build context to Docker daemon 2.048kB
Step 1/3 : FROM registry.suse.com/bci/python:3.9
3.9: Pulling from bci/python
ec078285c1c2: Pull complete
d7c86fde778c: Pull complete
Digest: sha256:5a25df2bf3e83e4732d208e6f060973a5251d487742cc24df3650cfc8075ce4c
Status: Downloaded newer image for registry.suse.com/bci/python:3.9
---> 576a8d463474
Step 2/3 : RUN zypper -n in dirmngr
---> Running in c3474c771319
Refreshing service 'container-suseconnect-zypp'.
Warning: Skipping service 'container-suseconnect-zypp' because of the above error.
Problem retrieving the repository index file for service 'container-suseconnect-zypp':
[container-suseconnect-zypp|file:/usr/lib/zypp/plugins/services/container-suseconnect-zypp]
Building repository 'SLE_BCI' cache [....done]
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following 5 NEW packages are going to be installed:
dirmngr libgnutls30 libgnutls30-hmac libhogweed4 libnettle6
The following 5 packages are not supported by their vendor:
dirmngr libgnutls30 libgnutls30-hmac libhogweed4 libnettle6
5 new packages to install.
Overall download size: 1.5 MiB. Already cached: 0 B. After the operation, additional 3.5 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package libnettle6-3.4.1-4.18.1.x86_64 (1/5), 211.7 KiB (702.4 KiB unpacked)
Retrieving: libnettle6-3.4.1-4.18.1.x86_64.rpm [done]
Retrieving package libhogweed4-3.4.1-4.18.1.x86_64 (2/5), 152.1 KiB (223.9 KiB unpacked)
Retrieving: libhogweed4-3.4.1-4.18.1.x86_64.rpm [done]
Retrieving package libgnutls30-3.6.7-14.16.1.x86_64 (3/5), 714.2 KiB ( 1.7 MiB unpacked)
Retrieving: libgnutls30-3.6.7-14.16.1.x86_64.rpm [done]
Retrieving package libgnutls30-hmac-3.6.7-14.16.1.x86_64 (4/5), 78.1 KiB ( 65 B unpacked)
Retrieving: libgnutls30-hmac-3.6.7-14.16.1.x86_64.rpm [done]
Retrieving package dirmngr-2.2.27-1.2.x86_64 (5/5), 365.0 KiB (891.0 KiB unpacked)
Retrieving: dirmngr-2.2.27-1.2.x86_64.rpm [done]
Checking for file conflicts: [.......done]
(1/5) Installing: libnettle6-3.4.1-4.18.1.x86_64 [...........done]
(2/5) Installing: libhogweed4-3.4.1-4.18.1.x86_64 [..........done]
(3/5) Installing: libgnutls30-3.6.7-14.16.1.x86_64 [............done]
(4/5) Installing: libgnutls30-hmac-3.6.7-14.16.1.x86_64 [....done]
(5/5) Installing: dirmngr-2.2.27-1.2.x86_64 [............done]
Removing intermediate container c3474c771319
---> 572c90fe6fb3
Step 3/3 : RUN export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4
---> Running in 1444a632308e
gpg: keybox '/tmp/tmp.fgkT6hXod8/pubring.kbx' created
gpg: /tmp/tmp.fgkT6hXod8/trustdb.gpg: trustdb created
gpg: key 036A9C25BF357DD4: public key "Tianon Gravi <[email protected]>" imported
gpg: Total number processed: 1
gpg: imported: 1
Removing intermediate container 1444a632308e
---> d33f2ac44aaa
Successfully built d33f2ac44aaa
❯ cat Dockerfile
FROM registry.suse.com/bci/python:3.9
RUN zypper -n in dirmngr
RUN export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment