liferay-docker icon indicating copy to clipboard operation
liferay-docker copied to clipboard

Create non-alpine based image

Open kzhang-dsg opened this issue 4 years ago • 5 comments

Could you please create a non-alpine based image (like openjdk:8-slim or openjdk:8-jdk)?

Alpine has several issues:

  1. Xuggler does not work with Alpine. It always gives a SEGMENT FAULT and crashes the Liferay. Switching to openjdk:8-slim or openjdk:8-jdk works.
  2. The libc6-compat required by tcnative is not compatible with Alpine. See related issues: https://github.com/googleapis/google-cloud-java/issues/3536 https://github.com/docker-flink/docker-flink/issues/37

Currently, to solve the problem I have to use Liferay's official docker image as an intermediate image and write my own Dockerfile with multi-stage builds to switch to openjdk:8-slim. It is not very maintainable.

kzhang-dsg avatar Nov 20 '20 04:11 kzhang-dsg

Thank you for the suggestion @kzhang-dsg! We are in discussion internally on switching to a different distro, currently discussing what would be the best option. Your input will help the decision definitely, I hope we will have a chance to make the change soon.

zsoltbalogh avatar Dec 11 '20 07:12 zsoltbalogh

What is the status? I saw the pull request . I have a problem with run some native lib which requires glibc. Do you know that his change will be supported in 7.3 version? Thanks in advance

SebJak avatar Sep 15 '21 09:09 SebJak

We are really close now to move, however there are some blockers which we need to solve first. Hopefully we will be able to make it happen in the next few days.

We will only support one version for all images so we will change the 7.3 images to Ubuntu as well.

zsoltbalogh avatar Sep 15 '21 10:09 zsoltbalogh

thanks a lot :)

SebJak avatar Sep 15 '21 10:09 SebJak

Thank you for following up and also checking the PRs :)

zsoltbalogh avatar Sep 15 '21 10:09 zsoltbalogh