Skip to content

Commit

Permalink
Test demos Dockerfile build in CI (#2242)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek authored Jan 12, 2025
1 parent dcb3ffa commit 885586d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -486,3 +486,14 @@ jobs:
- name: Diff build baseline
run: |
diff -u docs/baseline.orig.txt docs/baseline.txt
demos-dockerfile-test:
name: Demos Dockerfile
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build
run: |
(cd demos && docker build -f Dockerfile ..)
7 changes: 3 additions & 4 deletions demos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
FROM php:apache

RUN apt-get update && apt-get install -y \
libicu-dev git jq unzip npm \
libicu-dev git unzip npm \
&& docker-php-ext-configure intl \
&& docker-php-ext-install intl \
&& docker-php-ext-install pdo pdo_mysql
Expand All @@ -30,9 +30,8 @@ RUN cd js && npm ci && npm run build
RUN cd public/css && lessc agileui.less agileui.css

ADD composer.json .
RUN jq 'del(."require-release")|del(."require-dev")' < composer.json > tmp && mv tmp composer.json \
&& composer require --no-update fzaninotto/faker:^1.6 \
&& composer install --no-dev
RUN composer require --no-update --no-interaction fzaninotto/faker:^1.6 \
&& composer install --no-dev --ignore-platform-req=php

RUN echo 'disable_functions = pcntl_exec,exec,passthru,proc_open,shell_exec,system,popen/g' >> "$PHP_INI_DIR/php.ini"

Expand Down

0 comments on commit 885586d

Please sign in to comment.