Skip to content

Commit ee83862

Browse files
author
Julien Neuhart
committed
Try reproduce #228
1 parent d1dfac7 commit ee83862

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

build-and-test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ docker run --rm test/slim_onbuild php -m | grep pdo_pgsql
1919
docker run --rm test/slim_onbuild php -m | grep pdo_sqlite
2020
docker rmi test/slim_onbuild
2121

22+
# Let's check that the extensions are available for composer using "ARG PHP_EXTENSIONS" statement:
23+
docker build -t test/slim_onbuild_composer --build-arg PHP_VERSION="${PHP_VERSION}" --build-arg BRANCH="$BRANCH" --build-arg BRANCH_VARIANT="$BRANCH_VARIANT" tests/slim_onbuild_composer
24+
docker rmi test/slim_onbuild_composer
25+
2226
# Post build unit tests
2327
if [[ $VARIANT == cli* ]]; then CONTAINER_CWD=/usr/src/app; else CONTAINER_CWD=/var/www/html; fi
2428
# Default user is 1000
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
ARG BRANCH
2+
ARG BRANCH_VARIANT
3+
ARG PHP_VERSION
4+
5+
ARG PHP_EXTENSIONS="gd"
6+
FROM thecodingmachine/php:${PHP_VERSION}-${BRANCH}-slim-${BRANCH_VARIANT}
7+
8+
COPY composer.json composer.json
9+
10+
# Let's check that GD is available.
11+
RUN composer install
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require": {
3+
"ext-gd": "*"
4+
}
5+
}

0 commit comments

Comments
 (0)