Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support optionnaly glibc ? #1

Open
heyyoyo opened this issue Feb 2, 2021 · 1 comment
Open

Support optionnaly glibc ? #1

heyyoyo opened this issue Feb 2, 2021 · 1 comment

Comments

@heyyoyo
Copy link

heyyoyo commented Feb 2, 2021

In project we need the inclusion of AppDynamics, unfortunatly they don't provide any PHP support for alpine yet.
Is there a way to add a flag to conditionnaly add glibc libraries inside the wodby alpine image ?

Like this image on docker hub ?
https://github.com/Docker-Hub-frolvlad/docker-alpine-glibc/blob/master/Dockerfile

Regards.

@heyyoyo
Copy link
Author

heyyoyo commented Mar 19, 2021

What worked for me to add glibc inside drupal-php.
Use my own Dockerfile in docke-compose.yml with

FROM wodby/drupal-php:7.4-dev
USER root
RUN apk add --update curl && \
  GLIBC_VER="2.29-r0" && \
  curl -sL https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub -o /etc/apk/keys/sgerrand.rsa.pub && \
  curl -sLO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VER}/glibc-${GLIBC_VER}.apk && \
  curl -sLO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VER}/glibc-bin-${GLIBC_VER}.apk && \
  apk add --no-cache \
  glibc-${GLIBC_VER}.apk \
  glibc-bin-${GLIBC_VER}.apk

Which allows me to start using their install script.
It seems to add nicely their php library, I can see it loaded running php -m.
But php-fpm is crashing with Segmentation fault (core dumped)
Any idea how I can progress ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant