This message was deleted.
# elemental
a
This message was deleted.
c
Hello Harsha. What are you trying to achieve ? If you want to install packages using zypper you need to switch to a base image that is zypper capable
g
Hi @careful-piano-35019 thanks for the response i am trying to customize the elemental docker image with zypper install but the image provided in the documentation is registry.suse.com/rancher/elemental-teal/5.3:latest however if i tried to install zypper for opensuse it was not working soo.
s
@green-doctor-75427 out of curiosity which sort of packages are you tyring to install? Wondering if we are missing something relevant within the image. Regarding the customizationa build time this is possible, nothing prevents you adding extra repositories and packages at build time, however note that the images does not come with enabled repositories, hence you have to include them according to your needs. I just did a dummy trial with the following Dockerfile and it worked fine:
Copy code
FROM <http://registry.suse.com/rancher/elemental-teal/5.3:latest|registry.suse.com/rancher/elemental-teal/5.3:latest>

RUN rpm --import <https://download.opensuse.org/repositories/isv:/Rancher:/Elemental:/Dev/standard/repodata/repomd.xml.key> && \
    zypper addrepo --refresh <https://download.opensuse.org/repositories/isv:/Rancher:/Elemental:/Dev/standard/isv:Rancher:Elemental:Dev.repo> && \
    zypper install -y elemental-operator
Keep in mind that the repositories you add should also include any missing depenency. This dumb snipped works fine as the package elemental-operator does not require extra dependencies or they are all already preinstalled or available within the same repository. Otherwise I would have to include additional repositories.
AFAIK there is no SLE Micro community version (aka based on openSUSE or similar) then you need include the relative public repositories from openSUSE and your own. Alternatively one could try to setup access to SLE repositories from a registered host as documented in https://documentation.suse.com/container/all/single-html/Container-guide/index.html#sec-container-suseconnect
g
Hi @sticky-tailor-45974 thanks much i will give a try, i was getting more dependency issues and was unable to find those packages. i though the sle micro cannot use the opensuse packages may be a different repo.