You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case this is of some interest, I'm adding this library to my DDEV machine, with a Docker backend, using that .ddev/web-build/Dockerfile.excel and this works just perfectly:
ENV EXTENSION=excel
ENV EXTENSION_REPO=https://github.com/doPhp/excel.git
ENV EXTENSION_VERSION=main
ENV LIBXL_VERSION=4.3.0.14
# LibXL
ADD https://www.libxl.com/download/libxl-lin-${LIBXL_VERSION}.tar.gz /tmp
RUN cd /tmp \
&& tar -xzvf libxl-lin-${LIBXL_VERSION}.tar.gz
# Install the needed development packages
RUN (apt-get update || true) && DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::="--force-confnew" --no-install-recommends --no-install-suggests build-essential php${DDEV_PHP_VERSION}-dev
RUN mkdir -p /tmp/php-${EXTENSION} && cd /tmp/php-${EXTENSION} && git clone ${EXTENSION_REPO} .
WORKDIR /tmp/php-${EXTENSION}
RUN git checkout ${EXTENSION_VERSION}
RUN phpize
RUN ./configure \
--with-excel \
--with-libxl-incdir=/tmp/libxl-${LIBXL_VERSION}/include_c \
--with-libxl-libdir=/tmp/libxl-${LIBXL_VERSION}/lib-$(uname -m)
RUN make && make install
RUN echo "extension=${EXTENSION}.so" > /etc/php/${DDEV_PHP_VERSION}/mods-available/${EXTENSION}.ini \
&& chmod 666 /etc/php/${DDEV_PHP_VERSION}/mods-available/${EXTENSION}.ini
RUN phpenmod ${EXTENSION}
Describe the bug
We are trying to use it in our Docker setup, however, we're encountering the issue:
To Reproduce
Steps to reproduce the behavior:
Dockerfile:
Command we use to build it from a docker file is:
docker buildx build --file ./Dockerfile1 ./ --no-cache
The text was updated successfully, but these errors were encountered: