Reputation: 41
I'm attempting to Dockerize a PHP application that uses IonCube encryption.
The application, stand alone with IonCube runs fine, when i try to Dockerize this with a lean image (Docker, Alpine, PHP7.0) its only failing around the IonCube install.
Steps taken:
Has anyone hit this problem in the past?
Dockerfile contents:
FROM richarvey/nginx-php-fpm:php7
COPY web /www
RUN chmod -R 777 /usr/lib/php7/modules
COPY web/ioncube/linux-64 /usr/lib/php7/modules
COPY web/ioncube/linux-64-ini /etc/php7/conf.d
WORKDIR /www
IonCube loader-wizard.php Instructions:
Still after executing the above, checking that the respective files exist in the respective directory within Alpine, I then, destroy the docker image, build, and then run it, but no Joy. I then also tried just restarting the docker image instead of "docker rm image_name" in case it was destroying the installed IonCube related changes, but again still no luck.
I'm at a bit of a loss.
Any pointers or guidance appreciated.
Upvotes: 1
Views: 3295
Reputation: 41
The root of the issue is because IonCube requires glibc (GNU C Library). IonCube have mentioned in a tweet to me that this is something they will be looking to resolve in the future. (No timeline given)
References: https://en.wikipedia.org/wiki/GNU_C_Library
Upvotes: 3