Re: [Fortress] Docker image creation failure

2023-06-21 Thread Emmanuel Lécharny

And again, my bad !

I have removed an apt-get update just after the source list update...


So bottom line, I'm not sure the wget is necessary at all.

A suggestion: can we add a comment telling the users that doing a 
'docker system prune' can solve many issues?


Thanks Shawn, all is back on track !

On 21/06/2023 20:35, Emmanuel Lécharny wrote:

Never mind, it's not necessary.

"docker system prune" did the trick (don't ask...)

Now, next error, more serious:

#4 16.55 gpg: key DA26A148887DCBEB: public key "Symas Support 
" imported

#4 16.56 gpg: Total number processed: 1
#4 16.56 gpg:   imported: 1
#4 17.06 Reading package lists...
#4 17.62 Building dependency tree...
#4 17.75 Reading state information...
#4 17.85 E: Unable to locate package symas-openldap-clients
#4 17.85 E: Unable to locate package symas-openldap-server
--



On 21/06/2023 20:22, Shawn McKinney wrote:


On Jun 21, 2023, at 1:19 PM, Emmanuel Lécharny  
wrote:


yes, most certainly what's missing.

Now, it won't work on a Mac OS (/usr/share does not exist).
I'm pretty sure that it should be one instruction in the DockerFile.


Right, I’ll giver a go.




--
*Emmanuel Lécharny - CTO* 205 Promenade des Anglais – 06200 NICE
T. +33 (0)4 89 97 36 50
P. +33 (0)6 08 33 32 61
emmanuel.lecha...@busit.com https://www.busit.com/

-
To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org
For additional commands, e-mail: dev-h...@directory.apache.org



Re: [Fortress] Docker image creation failure

2023-06-21 Thread Emmanuel Lécharny

Never mind, it's not necessary.

"docker system prune" did the trick (don't ask...)

Now, next error, more serious:

#4 16.55 gpg: key DA26A148887DCBEB: public key "Symas Support 
" imported

#4 16.56 gpg: Total number processed: 1
#4 16.56 gpg:   imported: 1
#4 17.06 Reading package lists...
#4 17.62 Building dependency tree...
#4 17.75 Reading state information...
#4 17.85 E: Unable to locate package symas-openldap-clients
#4 17.85 E: Unable to locate package symas-openldap-server
--



On 21/06/2023 20:22, Shawn McKinney wrote:



On Jun 21, 2023, at 1:19 PM, Emmanuel Lécharny  wrote:

yes, most certainly what's missing.

Now, it won't work on a Mac OS (/usr/share does not exist).
I'm pretty sure that it should be one instruction in the DockerFile.


Right, I’ll giver a go.


--
*Emmanuel Lécharny - CTO* 205 Promenade des Anglais – 06200 NICE
T. +33 (0)4 89 97 36 50
P. +33 (0)6 08 33 32 61
emmanuel.lecha...@busit.com https://www.busit.com/

-
To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org
For additional commands, e-mail: dev-h...@directory.apache.org



Re: [Fortress] Docker image creation failure

2023-06-21 Thread Shawn McKinney


> On Jun 21, 2023, at 1:19 PM, Emmanuel Lécharny  wrote:
> 
> yes, most certainly what's missing.
> 
> Now, it won't work on a Mac OS (/usr/share does not exist).
> I'm pretty sure that it should be one instruction in the DockerFile.

Right, I’ll giver a go. 
-
To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org
For additional commands, e-mail: dev-h...@directory.apache.org



Re: [Fortress] Docker image creation failure

2023-06-21 Thread Emmanuel Lécharny

yes, most certainly what's missing.

Now, it won't work on a Mac OS (/usr/share does not exist).
I'm pretty sure that it should be one instruction in the DockerFile.

On 21/06/2023 19:59, Shawn McKinney wrote:

wget https://repo.symas.com/repo/gpg/RPM-GPG-KEY-symas-com-signing-key  -O 
/usr/share/keyrings/symas-key.asc


--
*Emmanuel Lécharny - CTO* 205 Promenade des Anglais – 06200 NICE
T. +33 (0)4 89 97 36 50
P. +33 (0)6 08 33 32 61
emmanuel.lecha...@busit.com https://www.busit.com/

-
To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org
For additional commands, e-mail: dev-h...@directory.apache.org



Re: [Fortress] Docker image creation failure

2023-06-21 Thread Shawn McKinney



> On Jun 21, 2023, at 12:37 PM, Emmanuel Lécharny  wrote:
> 
> I'm trying to create the openLdap image for docker, and I get some error:
> 
> $ docker build -t apachedirectory/openldap-for-apache-fortress-tests -f 
> src/docker/openldap-for-apache-fortress-tests/Dockerfile .
> [+] Building 5.0s (6/9) 
> => [internal] load build definition from Dockerfile  
> 0.0s
> => => transferring dockerfile: 37B  0.0s
> => [internal] load .dockerignore  0.0s
> => => transferring context: 2B  0.0s
> => [internal] load metadata for docker.io/library/debian:bullseye-slim
>   3.5s
> => [internal] load build context  0.0s
> => => transferring context: 342B  0.0s
> => CACHED [1/5] FROM 
> docker.io/library/debian:bullseye-slim@sha256:924df86f8aad741a0134b2de7d8e70c5c6863f839caadef62609c1be1340daf5
>  0.0s
> => ERROR [2/5] 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  1.4s
> -- 
> > [2/5] 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&& 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: 
> #4 0.477 Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB] 
> #4 0.888 Get:2 http://deb.debian.org/debian-security bullseye-security 
> InRelease [48.4 kB] 
> #4 0.906 Err:1 http://deb.debian.org/debian bullseye InRelease
> #4 0.906   At least one invalid signature was encountered.
> #4 0.965 Err:2 http://deb.debian.org/debian-security bullseye-security 
> InRelease
> #4 0.965   At least one invalid signature was encountered.
> #4 1.328 Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 
> kB]
> #4 1.391 Err:3 http://deb.debian.org/debian bullseye-updates InRelease
> #4 1.391   At least one invalid signature was encountered.

Ah, I’ll have to double check but I’m betting you need to do this first:

```
The very first time to do installation on a system you must install Symas' GPG 
signing key:
• wget https://repo.symas.com/repo/gpg/RPM-GPG-KEY-symas-com-signing-key -O 
/usr/share/keyrings/symas-key.asc
```

From the repo.symas.com[1] installation instructions.  Let me know if this is 
the case and I’ll update the docker setup instructions.  Good catch btw.

Thanks

—
Shawn

[1]https://repo.symas.com/soldap2.5/ubuntu22/



> #4 1.395 Reading package lists...
> #4 1.403 W: GPG error: http://deb.debian.org/debian bullseye InRelease: At 
> least one invalid signature was encountered.
> #4 1.403 E: The repository 'http://deb.debian.org/debian bullseye InRelease' 
> is not signed.
> #4 1.403 W: GPG error: http://deb.debian.org/debian-security 
> bullseye-security InRelease: At least one invalid signature was encountered.
> #4 1.403 E: The repository 'http://deb.debian.org/debian-security 
> bullseye-security InRelease' is not signed.
> #4 1.403 W: GPG error: http://deb.debian.org/debian bullseye-updates 
> InRelease: At least one invalid signature was encountered.
> #4 1.403 E: The repository 'http://deb.debian.org/debian bullseye-updates 
> InRelease' is not signed.
> --
> executor failed running [/bin/sh -c 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&& 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]: exit code: 100
> 
> 
> I'm in a train atm, so it's diffult for me to investigate, so if you have a 
> quick clue, it will be appreciated, otherwise I'll check when at home. No 
> biggie nor urgency !


-
To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org
For additional commands, e-mail: dev-h...@directory.apache.org