codecasts / php-alpine

PHP APK Repository for Alpine Linux
https://github.com/codecasts/php-alpine
482 stars 58 forks source link

Fatal error: Class 'XMLWriter' not found #49

Closed rawpixel-vincent closed 6 years ago

rawpixel-vincent commented 6 years ago

With my latest build of today, the class XMLWrite is not setup properly. It was working fine before.

ADD https://php.codecasts.rocks/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
RUN echo "http://php.codecasts.rocks/v3.7/php-7.2" >> /etc/apk/repositories
RUN apk update &&\
    apk add --no-cache \
    --repository=http://dl-4.alpinelinux.org/alpine/latest-stable/community \
    --repository=http://dl-4.alpinelinux.org/alpine/latest-stable/main \
    php7 php7-dev php7-fpm php7-intl php7-curl php7-gd \
    php7-opcache php7-pdo php7-pdo_dblib php7-openssl php7-json \
    php7-phar php7-ctype php7-pdo_mysql php7-mysqli php7-mysqlnd \
    php7-xml php7-dom php7-pdo_sqlite php7-soap php7-bcmath php7-zip \
    php7-mbstring php7-session php7-zlib php7-pcntl php7-posix \
    php7-sodium php7-iconv \
    php7-xmlreader php7-redis
rawpixel-vincent commented 6 years ago

Sorry, after re-reading the documentation I saw there was an update on the virtual package name, using this recommended method and alpine:3.7 for php 7.2, I don't have the issue anymore.


ADD https://php.codecasts.rocks/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
RUN echo "@php http://php.codecasts.rocks/v3.7/php-7.2" >> /etc/apk/repositories

RUN apk update &&\
    apk add --no-cache \
    --repository=http://dl-4.alpinelinux.org/alpine/latest-stable/community \
    --repository=http://dl-4.alpinelinux.org/alpine/latest-stable/main \
    php@php php-dev@php php-fpm@php php-intl@php php-curl@php php-gd@php \
    php-opcache@php php-pdo@php php-pdo_dblib@php php-openssl@php php-json@php \
    php-phar@php php-ctype@php php-pdo_mysql@php php-mysqli@php php-mysqlnd@php \
    php-xml@php php-dom@php php-pdo_sqlite@php php-soap@php php-bcmath@php php-zip@php \
    php-mbstring@php php-session@php php-zlib@php php-pcntl@php php-posix@php \
    php-sodium@php php-iconv@php \
    php-xmlreader@php php-redis@php
hernandev commented 6 years ago

Hey, thank you for the info!