Skip to content

Commit

Permalink
include console tools and fix xdebug version set
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangut committed Jun 12, 2023
1 parent 917d0e4 commit ff64cc3
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 5 deletions.
3 changes: 2 additions & 1 deletion dist/cli/7.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ RUN set -xe \
shadow \
sudo \
bash \
ncurses \
make \
icu \
freetype-dev \
Expand Down Expand Up @@ -71,7 +72,7 @@ RUN set -xe \
&& pecl update-channels \
&& pecl install \
apcu \
xdebug-$XDEBUG_VERSION \
xdebug-3.1.6 \
\
&& docker-php-ext-enable \
apcu \
Expand Down
1 change: 1 addition & 0 deletions dist/cli/8.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ RUN set -xe \
shadow \
sudo \
bash \
ncurses \
make \
icu \
freetype-dev \
Expand Down
1 change: 1 addition & 0 deletions dist/cli/8.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ RUN set -xe \
shadow \
sudo \
bash \
ncurses \
make \
icu \
freetype-dev \
Expand Down
1 change: 1 addition & 0 deletions dist/cli/8.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ RUN set -xe \
shadow \
sudo \
bash \
ncurses \
make \
icu \
freetype-dev \
Expand Down
3 changes: 2 additions & 1 deletion dist/fpm/7.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ RUN set -xe \
shadow \
sudo \
bash \
ncurses \
make \
icu \
freetype-dev \
Expand Down Expand Up @@ -72,7 +73,7 @@ RUN set -xe \
&& pecl update-channels \
&& pecl install \
apcu \
xdebug-$XDEBUG_VERSION \
xdebug-3.1.6 \
\
&& docker-php-ext-enable \
apcu \
Expand Down
1 change: 1 addition & 0 deletions dist/fpm/8.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ RUN set -xe \
shadow \
sudo \
bash \
ncurses \
make \
icu \
freetype-dev \
Expand Down
1 change: 1 addition & 0 deletions dist/fpm/8.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ RUN set -xe \
shadow \
sudo \
bash \
ncurses \
make \
icu \
freetype-dev \
Expand Down
1 change: 1 addition & 0 deletions dist/fpm/8.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ RUN set -xe \
shadow \
sudo \
bash \
ncurses \
make \
icu \
freetype-dev \
Expand Down
3 changes: 2 additions & 1 deletion dist/jenkins/7.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ RUN set -xe \
shadow \
sudo \
bash \
ncurses \
make \
icu \
freetype-dev \
Expand Down Expand Up @@ -78,7 +79,7 @@ RUN set -xe \
&& pecl update-channels \
&& pecl install \
apcu \
xdebug-$XDEBUG_VERSION \
xdebug-3.1.6 \
\
&& docker-php-ext-enable \
apcu \
Expand Down
1 change: 1 addition & 0 deletions dist/jenkins/8.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ RUN set -xe \
shadow \
sudo \
bash \
ncurses \
make \
icu \
freetype-dev \
Expand Down
1 change: 1 addition & 0 deletions dist/jenkins/8.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ RUN set -xe \
shadow \
sudo \
bash \
ncurses \
make \
icu \
freetype-dev \
Expand Down
1 change: 1 addition & 0 deletions dist/jenkins/8.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ RUN set -xe \
shadow \
sudo \
bash \
ncurses \
make \
icu \
freetype-dev \
Expand Down
2 changes: 1 addition & 1 deletion src/Command/ScaffoldCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function __construct(

$this->defaultContext = [
'comment' => $noteComment,
'xdebug' => true,
'xdebug' => 'latest',
'image' => '',
'tags' => [],
'variant' => '',
Expand Down
5 changes: 4 additions & 1 deletion templates/Dockerfile.twig
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ RUN set -xe \
shadow \
sudo \
bash \
ncurses \
make \
icu \
freetype-dev \
Expand Down Expand Up @@ -68,8 +69,10 @@ RUN set -xe \
&& pecl update-channels \
&& pecl install \
apcu \
{% if xdebug != false %}
{% if xdebug == 'latest' %}
xdebug-$XDEBUG_VERSION \
{% elseif xdebug != false %}
xdebug-{{ xdebug }} \
{% endif %}
\
&& docker-php-ext-enable \
Expand Down

0 comments on commit ff64cc3

Please sign in to comment.