Closed ipflowss closed 2 years ago
this docker file fixed it for me:
FROM alpine/git WORKDIR / RUN apk --no-cache add curl \ && curl -o Legacy.less https://raw.githubusercontent.com/Icinga/icingaweb2/support/2.9/public/css/icinga/legacy-theme.less \ && curl -o select-icon-legacy.svg https://raw.githubusercontent.com/Icinga/icingaweb2/support/2.9/public/img/select-icon-legacy.svg \ && git clone https://github.com/Icinga/icingadb-web.git icingadb
FROM icinga/icingaweb2:master USER root
RUN apt upgrade -y RUN apt update -y RUN apt-get install software-properties-common -y
RUN apt update -y RUN apt install -y \ php php-common RUN apt update -y RUN php --version RUN apt install -y composer RUN composer require -d /usr/share/icinga-php/ipl ipl/html:dev-master --ignore-platform-reqs --with-all-dependencies RUN composer require -d /usr/share/icinga-php/ipl ipl/orm:dev-master --ignore-platform-reqs --with-all-dependencies RUN composer require -d /usr/share/icinga-php/ipl ipl/sql:dev-master --ignore-platform-reqs --with-all-dependencies RUN composer require -d /usr/share/icinga-php/ipl ipl/validator:dev-master --ignore-platform-reqs --with-all-dependencies RUN composer update -d /usr/share/icinga-php/ipl --ignore-platform-reqs --with-all-dependencies RUN composer require -d /usr/share/icinga-php/ipl ipl/web:dev-master --ignore-platform-reqs --with-all-dependencies RUN composer require -d /usr/share/icinga-php/ipl ipl/stdlib:dev-master --ignore-platform-reqs --with-all-dependencies
RUN rm -rf /usr/share/icingaweb2/modules/icingadb/* USER www-data COPY --from=0 /icingadb /usr/share/icingaweb2/modules/icingadb COPY --from=0 /Legacy.less /usr/share/icingaweb2/public/css/themes/Legacy.less COPY --from=0 /select-icon-legacy.svg /usr/share/icingaweb2/public/img/select-icon-legacy.svg
shaydanielpro solution works for me, but with a minor tweak:
Better to not execute commands on separate RUN lines since that will increase the size of the image/container:
FROM alpine/git
WORKDIR /
RUN apk --no-cache add curl \
&& curl -o Legacy.less https://raw.githubusercontent.com/Icinga/icingaweb2/support/2.9/public/css/icinga/legacy-theme.less \
&& curl -o select-icon-legacy.svg https://raw.githubusercontent.com/Icinga/icingaweb2/support/2.9/public/img/select-icon-legacy.svg \
&& git clone https://github.com/Icinga/icingadb-web.git icingadb
FROM icinga/icingaweb2:master
USER root
RUN apt upgrade -y \
&& apt update -y \
&& apt-get install software-properties-common -y \
&& apt install -y composer \
&& composer require -d /usr/share/icinga-php/ipl ipl/html:dev-master --ignore-platform-reqs --with-all-dependencies \
&& composer require -d /usr/share/icinga-php/ipl ipl/orm:dev-master --ignore-platform-reqs --with-all-dependencies \
&& composer require -d /usr/share/icinga-php/ipl ipl/sql:dev-master --ignore-platform-reqs --with-all-dependencies \
&& composer require -d /usr/share/icinga-php/ipl ipl/validator:dev-master --ignore-platform-reqs --with-all-dependencies \
&& composer update -d /usr/share/icinga-php/ipl --ignore-platform-reqs --with-all-dependencies \
&& composer require -d /usr/share/icinga-php/ipl ipl/web:dev-master --ignore-platform-reqs --with-all-dependencies \
&& composer require -d /usr/share/icinga-php/ipl ipl/stdlib:dev-master --ignore-platform-reqs --with-all-dependencies
RUN rm -rf /usr/share/icingaweb2/modules/icingadb/*
USER www-data
COPY --from=0 /icingadb /usr/share/icingaweb2/modules/icingadb
COPY --from=0 /Legacy.less /usr/share/icingaweb2/public/css/themes/Legacy.less
COPY --from=0 /select-icon-legacy.svg /usr/share/icingaweb2/public/img/select-icon-legacy.svg
Hi,
Thanks for the report. I just fixed the issue.
All the best, Eric
Is there an easy way to get a working php version please