I tried searching before posting but was getting a gateway timeout - apologies if this was answered previously.
I am attempting to build a docker image from debian using symas RPMs to facilitate local testing. I am new to RPMs / Linux Package Management so forgive me if this is an obvious answer.
``` FROM debian:buster
RUN apt update RUN apt install --yes --quiet wget RUN apt install --yes --quiet gnupg RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DA26A148887DCBEB RUN wget -q https://repo.symas.com/configs/SOLDAP/d10/release25.list -O /etc/apt/sources.list.d/soldap-release25.list RUN apt update RUN apt install symas-openldap-clients symas-openldap-server RUN rm --force --recursive /var/lib/apt/lists/* ```
This fails on the symas-openldap-clients and symas-openldap-server installation with #11 0.600 E: Unable to locate package symas-openldap-clients #11 0.600 E: Unable to locate package symas-openldap-server
If I skip that step I can build and sanity check the debian version ``` root@fc0489d57cd4:/# cat /etc/issue Debian GNU/Linux 10 \n \l ```
Any advice how to make this work for Debian? Is it possible to make this work for centos7 image? I understand symas only publishes for RHEL but curious if centos7 can work with the REHL repo information. I was unable to get it to work failing with a similar issue.
On 23.04.22 20:48, thomaswilliampritchard@gmail.com wrote:
FROM debian:buster
RUN apt update RUN apt install --yes --quiet wget RUN apt install --yes --quiet gnupg RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DA26A148887DCBEB RUN wget -q https://repo.symas.com/configs/SOLDAP/d10/release25.list -O /etc/apt/sources.list.d/soldap-release25.list RUN apt update RUN apt install symas-openldap-clients symas-openldap-server RUN rm --force --recursive /var/lib/apt/lists/*
Works for me without any issues. You should add --yes to the apt install command.
Best regards Ulf
Would you be able to share your Dockerfile? I still receive the following error.
=> CACHED [1/9] FROM docker.io/library/debian:buster@sha256:ebe4b9831fb22dfa778de4ffcb8ea0ad69b5d782d4e86cab14cc1fded5d8e761 0.0s => [2/9] RUN apt update 3.6s => [3/9] RUN apt install --yes --quiet wget 3.2s => [4/9] RUN apt install --yes --quiet gnupg 2.6s => [5/9] RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DA26A148887DCBEB 1.4s => [6/9] RUN wget -q https://repo.symas.com/configs/SOLDAP/d10/release25.list -O /etc/apt/sources.list.d/soldap-release25.list 0.7s => [7/9] RUN apt update 1.0s => ERROR [8/9] RUN apt install --yes symas-openldap-clients symas-openldap-server 0.6s ------
[8/9] RUN apt install --yes symas-openldap-clients symas-openldap-server:
#11 0.181 #11 0.181 WARNING: apt does not have a stable CLI interface. Use with caution in scripts. #11 0.181 #11 0.185 Reading package lists... #11 0.503 Building dependency tree... #11 0.560 Reading state information... #11 0.603 E: Unable to locate package symas-openldap-clients #11 0.603 E: Unable to locate package symas-openldap-server
On Apr 23, 2022, at 8:55 PM, thomaswilliampritchard@gmail.com wrote:
Would you be able to share your Dockerfile? I still receive the following error.
I’ve been testing with...
``` FROM debian:bullseye-slim # Setup openldap package: RUN apt-get update && apt-get install -y --no-install-recommends \ gnupg \ ca-certificates \ && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DA26A148887DCBEB \ && echo 'deb https://repo.symas.com/repo/deb/main/release25 bullseye main' > /etc/apt/sources.list.d/soldap-release25.list \ # Install openldap && apt-get update && apt-get install -y --no-install-recommends \ symas-openldap-clients \ symas-openldap-server \ && rm -rf /var/lib/apt/lists/* \ && rm /etc/apt/sources.list.d/soldap-release25.list ```
— Shawn
--On Saturday, April 23, 2022 7:48 PM +0000 thomaswilliampritchard@gmail.com wrote:
Is it possible to make this work for centos7 image? I understand symas only publishes for RHEL but curious if centos7 can work with the REHL repo information.
It certainly works for CentOS7. However, I'd advise using AlmaLinux 8 (The equivalent of CentOS8) and the RHEL8 repo, since RHEL7/CentOS7 are nearing end of life and should not be used for a starting point on anything new.
--Quanah
I'm attempting to follow for almalinux:8.5 https://repo.symas.com/soldap2.5/rhel8/
I have
``` FROM almalinux:8.5
RUN dnf --assumeyes update RUN dnf --assumeyes install wget RUN wget -q https://repo.symas.com/configs/SOLDAP/rhel8/release25.repo -O /etc/yum.repos.d/soldap-release25.repo RUN dnf --assumeyes update RUN dnf --assumeyes install symas-openldap-clients symas-openldap-servers RUN dnf clean all ```
producing the following error => CACHED [1/7] FROM docker.io/library/almalinux:8.5@sha256:a21996e1faa92e26a48c7fe3ae5652efc4b0eacb4ead710f0cca9167251dd27e 0.0s => [2/7] RUN dnf --assumeyes update 26.9s => [3/7] RUN dnf --assumeyes install wget 2.8s => [4/7] RUN wget -q https://repo.symas.com/configs/SOLDAP/rhel8/release25.repo -O /etc/yum.repos.d/soldap-release25.repo 0.7s => [5/7] RUN dnf --assumeyes update 1.3s => ERROR [6/7] RUN dnf --assumeyes install symas-openldap-clients symas-openldap-servers 0.6s ------
[6/7] RUN dnf --assumeyes install symas-openldap-clients symas-openldap-servers:
#9 0.386 Last metadata expiration check: 0:00:01 ago on Sun Apr 24 02:04:32 2022. #9 0.514 Error: #9 0.514 Problem 1: cannot install the best candidate for the job #9 0.514 - package symas-openldap-clients-2.5.11-1.el8.x86_64 does not have a compatible architecture #9 0.514 - nothing provides symas-openldap-libs = 2.5.11-1.el8 needed by symas-openldap-clients-2.5.11-1.el8.x86_64 #9 0.514 Problem 2: cannot install the best candidate for the job #9 0.514 - package symas-openldap-servers-2.5.11-1.el8.x86_64 does not have a compatible architecture #9 0.514 - nothing provides symas-heimdal-libs needed by symas-openldap-servers-2.5.11-1.el8.x86_64 #9 0.514 - nothing provides symas-libargon2-libs needed by symas-openldap-servers-2.5.11-1.el8.x86_64 #9 0.514 - nothing provides symas-libevent-libs needed by symas-openldap-servers-2.5.11-1.el8.x86_64 #9 0.514 - nothing provides symas-openldap-libs = 2.5.11-1.el8 needed by symas-openldap-servers-2.5.11-1.el8.x86_64 #9 0.514 (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages) ------ executor failed running [/bin/sh -c dnf --assumeyes install symas-openldap-clients symas-openldap-servers]: exit code: 1
On 24.04.22 04:08, thomaswilliampritchard@gmail.com wrote:
#9 0.514 - package symas-openldap-clients-2.5.11-1.el8.x86_64 does not have a compatible architecture
Which architecture are you running on your host (uname -m)?
As fas as I know symas provide only for x86_64.
Best regards Ulf
openldap-technical@openldap.org