Skip to content

Commit

Permalink
feat: Add an el9 image
Browse files Browse the repository at this point in the history
Part of request #38254 Move test images to an el9 base
  • Loading branch information
LeSuisse committed May 23, 2024
1 parent 0d2b98a commit 55c9cd2
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Build_And_Publish_Docker_Images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
build:
strategy:
matrix:
os_base: ["c7"]
os_base: ["c7", "el9"]
php_base: ["php82", "php83"]
runs-on: ubuntu-22.04
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Build_Docker_Image_PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build:
strategy:
matrix:
os_base: ["c7"]
os_base: ["c7", "el9"]
php_base: ["php82", "php83"]
runs-on: ubuntu-22.04
steps:
Expand Down
33 changes: 33 additions & 0 deletions el9.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
FROM rockylinux:9

ARG PHP_BASE

COPY Tuleap.repo /etc/yum.repos.d/

RUN dnf install -v -y epel-release https://rpms.remirepo.net/enterprise/remi-release-9.rpm && \
dnf -v -y install \
make \
tuleap-git-bin \
openssh \
${PHP_BASE}-php-cli \
${PHP_BASE}-php-xml \
${PHP_BASE}-php-mbstring \
${PHP_BASE}-php-pdo \
${PHP_BASE}-php-process \
${PHP_BASE}-php-zip \
${PHP_BASE}-php-sodium \
${PHP_BASE}-php-gd \
${PHP_BASE}-php-ldap \
${PHP_BASE}-php-intl \
${PHP_BASE}-php-mysqlnd \
${PHP_BASE}-php-ffi \
${PHP_BASE}-php-pecl-mailparse \
${PHP_BASE}-php-pecl-redis5 \
${PHP_BASE}-php-pecl-pcov \
perl \
&& dnf clean all && \
echo 'pcov.enabled = 1' >> /etc/opt/remi/${PHP_BASE}/php.d/40-pcov.ini

CMD [ "make", "-C", "/tuleap", "phpunit-run-as-owner" ]

VOLUME ["/tuleap"]

0 comments on commit 55c9cd2

Please sign in to comment.