The confluence docker image page states that the product is not supported under openJDK and suggests building with oracleJDK.
https://hub.docker.com/r/atlassian/confluence-server/
When the advice on the following page is followed:
the line from the confluence docker image is changed from:
FROM openjdk:8-jdk-alpine
to:
FROM oracle/serverjre:9
This causes an error when building the confluence image with the new base image:
/bin/sh: apk: command not found
This makes sense as apk is a package manager for alpine and I just removed it when changing the base image.
There is a clear conflict when following instructions to create a supported docker image.
How can I create a supported docker image?
Hi Volkan,
I found a few more suggestions online for users trying to build a Alpine based docker image. Perhaps they could help you?
Let us know if you have any success.
Regards,
Shannon
The way I understand the documentation, you download and install the Oracle JDK before the build and then you won't need a package manager to install it, you would use:
FROM oracle/JDK:8
Please note that JRE 9 is not a supported platform for Confluence 6.6.x: Supported Platforms
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for pointing out that JRE 9 is not supported.
The apk package manager is not being used to download and install Oracle JDK. That process is done in a previous step.
The second build process uses the apk package manager to do the following:
RUN apk update -qq \ && update-ca-certificates \ && apk add ca-certificates wget curl openssh bash procps openssl perl ttf-dejavu tini libc6-compat \ && rm -rf /var/lib/{apt,dpkg,cache,log}/ /tmp/* /var/tmp/*
That is within the confluence docker file at:
Which is where the build process fails.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.