This message was deleted.
# general
a
This message was deleted.
b
I don't work with SUSE practically at all, but it seems that you need to concentrate on fact that combination of image leads to zypper terminating. It doesn't seem 'bci' images with SLES12 at all, maybe Dockerfile is written with assumption that you are running SLES15 with container-suseconnect working properly? https://documentation.suse.com/container/all/html/Container-guide/index.html
👍 1
w
Thank you all. I tried pulling those images . but failing to run zypper update/install> My Docker file looks
ARG OS_IMAGE=<http://registry.suse.com/suse/sles12sp5:latest|registry.suse.com/suse/sles12sp5:latest>
FROM $OS_IMAGE
LABEL maintainer="Chef Software, Inc. <<mailto:maintainers@chef.io|maintainers@chef.io>>"
RUN  zypper lr
RUN zypper update -y && \
zypper install -y \
autoconf \
bison \
flex \
gcc \
gcc-c++ \
make \
m4 \
wget \
cron \
sudo \
awk \
rpm-build \
insserv-compat \
automake \
hostname \
git
RUN useradd nobody
# enable ipv6
RUN echo net.ipv6.conf.all.disable_ipv6=0 >> /etc/sysctl.conf
RUN echo net.ipv6.conf.default.disable_ipv6=0 >> /etc/sysctl.conf
RUN echo net.ipv6.conf.lo.disable_ipv6=0 >> /etc/sysctl.conf
# need to run this to enable ipv6 when the container starts
ENTRYPOINT sysctl -p && /bin/bash
Error :
=> CACHED [1/7] FROM <http://registry.suse.com/suse/sles12sp5:latest@sha256:85bd363d352afaf464dec4ae|registry.suse.com/suse/sles12sp5:latest@sha256:85bd363d352afaf464dec4ae>  0.0s
=> ERROR [2/7] RUN  zypper lr                                                                 1.7s
------
> [2/7] RUN  zypper lr:
1.291 Refreshing service 'container-suseconnect-zypp'.
1.625 Warning: Skipping service 'container-suseconnect-zypp' because of the above error.
1.625 Problem retrieving the repository index file for service 'container-suseconnect-zypp':
1.625 [container-suseconnect-zypp|file:/usr/lib/zypp/plugins/services/container-suseconnect-zypp]
1.626 Warning: No repositories defined.
1.626 Use the 'zypper addrepo' command to add one or more repositories.
Tried adding the below lines
ADD <https://lxslsmt/smt.crt> /etc/pki/trust/anchors/smt.crt
RUN update-ca-certificates
but failing to load https://lxslsmt/smt.crt
w
based on your Dockerfile the warning "No repositories defined" is correct - you haven't added a repo via zypper addrepo