Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build custom image error #38

Open
ddiawara opened this issue Jul 31, 2023 · 1 comment
Open

Build custom image error #38

ddiawara opened this issue Jul 31, 2023 · 1 comment

Comments

@ddiawara
Copy link

image

docker build -t d3n/openldap:0.1.0 --rm image
[+] Building 22.1s (9/12)                                                                                                docker:default
 => [internal] load build definition from Dockerfile                                                                               0.0s
 => => transferring dockerfile: 2.84kB                                                                                             0.0s
 => [internal] load .dockerignore                                                                                                  0.0s
 => => transferring context: 2B                                                                                                    0.0s
 => [internal] load metadata for docker.io/osixia/light-baseimage:1.3.2                                                            1.6s
 => [auth] osixia/light-baseimage:pull token for registry-1.docker.io                                                              0.0s
 => [1/7] FROM docker.io/osixia/light-baseimage:1.3.2@sha256:29ab0ec6f8788bd16e9fe1f8130de205f5464c98501c5dc953254c1ad6c97fa4      0.0s
 => => resolve docker.io/osixia/light-baseimage:1.3.2@sha256:29ab0ec6f8788bd16e9fe1f8130de205f5464c98501c5dc953254c1ad6c97fa4      0.0s
 => [internal] load build context                                                                                                  0.0s
 => => transferring context: 3.40kB                                                                                                0.0s
 => CACHED [2/7] RUN if [ -z "${LDAP_OPENLDAP_GID}" ]; then groupadd -g 911 -r openldap; else groupadd -r -g ${LDAP_OPENLDAP_GID}  0.0s
 => CACHED [3/7] RUN echo "deb http://ftp.debian.org/debian buster-backports main" >> /etc/apt/sources.list                        0.0s
 => ERROR [4/7] RUN echo "path-include /usr/share/doc/krb5*" >> /etc/dpkg/dpkg.cfg.d/docker && apt-get -y update     && /contain  20.4s
------
 > [4/7] RUN echo "path-include /usr/share/doc/krb5*" >> /etc/dpkg/dpkg.cfg.d/docker && apt-get -y update     && /container/tool/add-service-available :ssl-tools     && LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get -t buster-backports install -y --no-install-recommends     ca-certificates     curl     ldap-utils=2.4.57*     libsasl2-modules     libsasl2-modules-db     libsasl2-modules-gssapi-mit     libsasl2-modules-ldap     libsasl2-modules-otp     libsasl2-modules-sql     openssl     slapd=2.4.57*     slapd-contrib=2.4.57*     krb5-kdc-ldap     && curl -o pqchecker.deb -SL http://www.meddeb.net/pub/pqchecker/deb/8/pqchecker_2.0.0_amd64.deb     && echo "c005ce596e97d13e39485e711dcbc7e1 *pqchecker.deb" | md5sum -c -     && dpkg -i pqchecker.deb     && rm pqchecker.deb     && update-ca-certificates     && apt-get remove -y --purge --auto-remove curl ca-certificates     && apt-get clean     && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*:
0.786 Get:1 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
0.829 Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
1.121 Get:3 http://ftp.debian.org/debian buster-backports InRelease [51.4 kB]
1.352 Get:4 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]
2.665 Get:5 http://security.debian.org/debian-security buster/updates/main amd64 Packages [545 kB]
3.903 Err:3 http://ftp.debian.org/debian buster-backports InRelease
3.903   The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131
5.251 Get:6 http://deb.debian.org/debian buster/main amd64 Packages [7,909 kB]
12.60 Get:7 http://deb.debian.org/debian buster-updates/main amd64 Packages [8,788 B]
16.06 Reading package lists...
20.27 W: GPG error: http://ftp.debian.org/debian buster-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131
20.27 E: The repository 'http://ftp.debian.org/debian buster-backports InRelease' is not signed.
------
Dockerfile:24
--------------------
  23 |     #          https://github.com/osixia/docker-light-baseimage/blob/master/image/service-available/:ssl-tools/download.sh
  24 | >>> RUN echo "path-include /usr/share/doc/krb5*" >> /etc/dpkg/dpkg.cfg.d/docker && apt-get -y update \
  25 | >>>     && /container/tool/add-service-available :ssl-tools \
  26 | >>>     && LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get -t buster-backports install -y --no-install-recommends \
  27 | >>>     ca-certificates \
  28 | >>>     curl \
  29 | >>>     ldap-utils=${OPENLDAP_PACKAGE_VERSION}\* \
  30 | >>>     libsasl2-modules \
  31 | >>>     libsasl2-modules-db \
  32 | >>>     libsasl2-modules-gssapi-mit \
  33 | >>>     libsasl2-modules-ldap \
  34 | >>>     libsasl2-modules-otp \
  35 | >>>     libsasl2-modules-sql \
  36 | >>>     openssl \
  37 | >>>     slapd=${OPENLDAP_PACKAGE_VERSION}\* \
  38 | >>>     slapd-contrib=${OPENLDAP_PACKAGE_VERSION}\* \
  39 | >>>     krb5-kdc-ldap \
  40 | >>>     && curl -o pqchecker.deb -SL http://www.meddeb.net/pub/pqchecker/deb/8/pqchecker_${PQCHECKER_VERSION}_amd64.deb \
  41 | >>>     && echo "${PQCHECKER_MD5} *pqchecker.deb" | md5sum -c - \
  42 | >>>     && dpkg -i pqchecker.deb \
  43 | >>>     && rm pqchecker.deb \

@nix-power
Copy link

nix-power commented Apr 24, 2024

I am not sure this project is active, otherwise i would suggest a pull request. debian-buster is no longer in ftp.debian.org, but in the debian archive, this is why you can not build. For my internal purposes i have created base image that is based on debian12-slim, and i don`t need backports there. But if you are building on osixia/light-baseimage:1.3.3 then replace the buster-backports with the following

RUN echo "deb https://archive.debian.org/debian buster-backports main" >> /etc/apt/sources.list
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9 && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6ED0E7B82643E131

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants