File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed
tests/slim_onbuild_composer Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ docker run --rm test/slim_onbuild php -m | grep pdo_pgsql
19
19
docker run --rm test/slim_onbuild php -m | grep pdo_sqlite
20
20
docker rmi test/slim_onbuild
21
21
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
+
22
26
# Post build unit tests
23
27
if [[ $VARIANT == cli* ]]; then CONTAINER_CWD=/usr/src/app; else CONTAINER_CWD=/var/www/html; fi
24
28
# Default user is 1000
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
1
+ {
2
+ "require" : {
3
+ "ext-gd" : " *"
4
+ }
5
+ }
You can’t perform that action at this time.
0 commit comments