On 17/06/2023 07:14, Mark Carroll wrote:
> A minimal reproducer is:
>
> $ docker run -it debian:bullseye
> # apt-get update
> # apt-get install openjdk-17-jre-headless
A containerised OS image running under docker has a lot stripped out
that foils usage of traditional installation tools that you would use in
the full OS context. There is not much of an init process.
That said, you have got so far. I wonder what would happen if you
downloaded the certs and made them available to the container though a
volume mount.
But I wouldn't start here.
You could instead use a docker image of OpenJDK, built running under
various linux flavors.
https://www.baeldung.com/ops/java-openjdk-docker-images-slim-vs-slim-stretch-vs-stretch-vs-alpine
Unfortunately, OpenJDK under docker has been deprecated since July 2022,
and users are being pointed elsewhere (something from Amazon, ugh)
Why not install an OS under VirtualBox?
For setup speed, you could use Vagrant images in that already prebuilt
with Java and other requirements for your project.
--
Adrian C