images/actions/php/Dockerfile aktualisiert
Some checks failed
CI / build_act (push) Successful in 3m4s
CI / build_java (17) (push) Successful in 2m26s
CI / build_java (1_8_0) (push) Successful in 2m56s
CI / build_java (21) (push) Successful in 2m36s
CI / build_php (8.2) (push) Failing after 53s
CI / build_php (8.1) (push) Failing after 47s
Some checks failed
CI / build_act (push) Successful in 3m4s
CI / build_java (17) (push) Successful in 2m26s
CI / build_java (1_8_0) (push) Successful in 2m56s
CI / build_java (21) (push) Successful in 2m36s
CI / build_php (8.2) (push) Failing after 53s
CI / build_php (8.1) (push) Failing after 47s
This commit is contained in:
parent
b2388ea11c
commit
b500a7f3de
1 changed files with 7 additions and 2 deletions
|
@ -4,7 +4,6 @@ ARG PACKAGE_VERSION
|
||||||
ENV PACKAGE_VERSION=${PACKAGE_VERSION}
|
ENV PACKAGE_VERSION=${PACKAGE_VERSION}
|
||||||
|
|
||||||
RUN sudo zypper -n addrepo https://download.opensuse.org/repositories/devel:languages:php/openSUSE_Leap_$(grep -oP '(?<=^VERSION_ID=).+' /etc/os-release | tr -d '"')/devel:languages:php.repo
|
RUN sudo zypper -n addrepo https://download.opensuse.org/repositories/devel:languages:php/openSUSE_Leap_$(grep -oP '(?<=^VERSION_ID=).+' /etc/os-release | tr -d '"')/devel:languages:php.repo
|
||||||
RUN sudo zypper -n addrepo https://download.opensuse.org/repositories/server:php:applications/$(grep -oP '(?<=^VERSION_ID=).+' /etc/os-release | tr -d '"')/server:php:applications.repo
|
|
||||||
RUN sudo zypper -n --gpg-auto-import-keys refresh
|
RUN sudo zypper -n --gpg-auto-import-keys refresh
|
||||||
RUN sudo zypper -n update
|
RUN sudo zypper -n update
|
||||||
|
|
||||||
|
@ -14,4 +13,10 @@ RUN \
|
||||||
sudo zypper -n addlock "php${major_version} < ${PACKAGE_VERSION}"; \
|
sudo zypper -n addlock "php${major_version} < ${PACKAGE_VERSION}"; \
|
||||||
version_upper_bound="${major_version}.$((minor_version + 1))" && \
|
version_upper_bound="${major_version}.$((minor_version + 1))" && \
|
||||||
sudo zypper -n addlock "php${major_version} >= ${version_upper_bound}" && \
|
sudo zypper -n addlock "php${major_version} >= ${version_upper_bound}" && \
|
||||||
sudo zypper -n install "php${major_version}"
|
sudo zypper -n install "php${major_version}"
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
|
||||||
|
php composer-setup.php && \
|
||||||
|
php -r "unlink('composer-setup.php')
|
||||||
|
sudo mv composer.phar /usr/local/bin/composer
|
Loading…
Reference in a new issue