Skip to content

Please adapt Readme: Remove section about usage of credentials on non SLE distros #56

@uemitarslan

Description

@uemitarslan

This section in the README is misleading as you can access the BCI Repo without any credentials:

Building images on non SLE distributions

It is possible to build SLE based docker images on other distributions as well. For that the following two files from a base SLE system are needed:

/etc/SUSEConnect for the API access point
/etc/zypp/credentials.d/SCCcredentials for providing the user credentials
These files can be copied from a SLE machine that has been successfully registered at the SUSE Customer Center, RMT or SMT.

With Ubuntu 20.04 I was able to build it without any restrictions:

root@ubuntu:~# cat docker_test

syntax=docker/dockerfile:1.0.0-experimental

FROM registry.suse.com/suse/sle15:latest

ARG ADDITIONAL_MODULES
RUN zypper -n --gpg-auto-import-keys in go postfix

root@ubuntu:~# docker build -t mysle15sp3:v1 --progress=plain -f docker_test .
Sending build context to Docker daemon 288.3kB
Step 1/3 : FROM registry.suse.com/suse/sle15:latest
latest: Pulling from suse/sle15
a8e7a8d5a3ff: Pull complete
Digest: sha256:52a828600279746ef669cf02a599660cd53faf4b2430a6b211d593c3add047f5
Status: Downloaded newer image for registry.suse.com/suse/sle15:latest
---> d2fc302527bc
Step 2/3 : ARG ADDITIONAL_MODULES
---> Running in 22be69133481
Removing intermediate container 22be69133481
---> 3481210baa95
Step 3/3 : RUN zypper -n --gpg-auto-import-keys in go postfix
---> Running in 6b88908db7f6
Refreshing service 'container-suseconnect-zypp'.
Problem retrieving the repository index file for service 'container-suseconnect-zypp':
[container-suseconnect-zypp|file:/usr/lib/zypp/plugins/services/container-suseconnect-zypp]
Warning: Skipping service 'container-suseconnect-zypp' because of the above error.
Building repository 'SLE_BCI' cache [....done]
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 37 NEW packages are going to be installed:
binutils cpp cpp7 gcc gcc7 glibc-devel go go1.17 iproute2 libasan4 libatomic1 libcilkrts5 libctf-nobfd0 libctf0 libgomp1 libicu-suse65_1 libicu65_1-ledata libisl15 libitm1 liblmdb-0_9_17 liblsan0 libmnl0 libmpc3 libmpfr6 libmpx2 libmpxwrappers2 libtsan0 libubsan0 libxcrypt-devel libxtables12 linux-glibc-devel pkg-config postfix system-user-mail system-user-nobody timezone update-alternatives
.......

root@ubuntu:~# docker image list
REPOSITORY TAG IMAGE ID CREATED SIZE
mysle15sp3 v1 d26c5594432d 17 minutes ago 1GB
registry.suse.com/suse/sle15 latest d2fc302527bc 29 hours ago 116MB

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions