Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test demos Dockerfile build in CI #2242

Merged
merged 3 commits into from
Jan 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading