Skip to content

Commit 2cef599

Browse files
committed
Added the Symfony CLI to all images
1 parent 10a4aa5 commit 2cef599

File tree

10 files changed

+39
-2
lines changed

10 files changed

+39
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [1.2.6] - 2020-10-24
10+
### Added
11+
- Added the [Symfony CLI](https://symfony.com/download) to `/usr/local/bin/symfony` in all images
12+
913
## [1.2.5] - 2020-10-24
1014
### Added
1115
- Added `COMPOSER_VERSION` argument in all `Dockerfile` to specify which composer version to install (default to `latest` in Dockerfile, `1` in `Makefile`)
@@ -80,7 +84,8 @@ If you used `apt-get ...` or something that require `root` privileges before thi
8084
- Added a default volume (`/app`)
8185
- Added a CMD directive on all images (default to `/app/bin/console`)
8286

83-
[Unreleased]: https://github.com/jsunier/php-symfony-test/compare/v1.2.5...HEAD
87+
[Unreleased]: https://github.com/jsunier/php-symfony-test/compare/v1.2.6...HEAD
88+
[1.2.6]: https://github.com/jsunier/php-symfony-test/compare/v1.2.5...v1.2.6
8489
[1.2.5]: https://github.com/jsunier/php-symfony-test/compare/v1.2.4...v1.2.5
8590
[1.2.4]: https://github.com/jsunier/php-symfony-test/compare/v1.2.3...v1.2.4
8691
[1.2.3]: https://github.com/jsunier/php-symfony-test/compare/v1.2.2...v1.2.3

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ For now, there is only two available database adapters for the available PHP ver
3030
* PostgreSQL
3131
* MySQL/MariaDB
3232

33-
Every images include the latest version of [composer](https://getcomposer.org) installed at `/usr/local/bin/composer`.
33+
Every images include the latest version of [composer](https://getcomposer.org) installed at `/usr/bin/composer` and the latest version of the [Symfony CLI](https://symfony.com/download) installed at `/usr/local/bin/symfony`.
3434

3535
Composer is installed with [hirak/prestissimo](https://packagist.org/packages/hirak/prestissimo) plugin to speed up packages installation.
3636

php7.1/mysql/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ WORKDIR /app
3131
RUN groupadd --gid 1000 symfony \
3232
&& useradd --uid 1000 --gid symfony --shell /bin/bash --create-home symfony
3333

34+
# Install the Symfony CLI
35+
RUN curl -sS https://get.symfony.com/cli/installer | bash && \
36+
mv /root/.symfony/bin/symfony /usr/local/bin/symfony
37+
3438
# Fix permissions issues
3539
RUN chmod -R a+wrx /app
3640
RUN chmod a+wrx /usr/bin/composer

php7.1/postgresql/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ WORKDIR /app
3232
RUN groupadd --gid 1000 symfony \
3333
&& useradd --uid 1000 --gid symfony --shell /bin/bash --create-home symfony
3434

35+
# Install the Symfony CLI
36+
RUN curl -sS https://get.symfony.com/cli/installer | bash && \
37+
mv /root/.symfony/bin/symfony /usr/local/bin/symfony
38+
3539
# Fix permissions issues
3640
RUN chmod -R a+wrx /app
3741
RUN chmod a+wrx /usr/bin/composer

php7.2/mysql/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ WORKDIR /app
3131
RUN groupadd --gid 1000 symfony \
3232
&& useradd --uid 1000 --gid symfony --shell /bin/bash --create-home symfony
3333

34+
# Install the Symfony CLI
35+
RUN curl -sS https://get.symfony.com/cli/installer | bash && \
36+
mv /root/.symfony/bin/symfony /usr/local/bin/symfony
37+
3438
# Fix permissions issues
3539
RUN chmod -R a+wrx /app
3640
RUN chmod a+wrx /usr/bin/composer

php7.2/postgresql/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ WORKDIR /app
3232
RUN groupadd --gid 1000 symfony \
3333
&& useradd --uid 1000 --gid symfony --shell /bin/bash --create-home symfony
3434

35+
# Install the Symfony CLI
36+
RUN curl -sS https://get.symfony.com/cli/installer | bash && \
37+
mv /root/.symfony/bin/symfony /usr/local/bin/symfony
38+
3539
# Fix permissions issues
3640
RUN chmod -R a+wrx /app
3741
RUN chmod a+wrx /usr/bin/composer

php7.3/mysql/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ WORKDIR /app
3131
RUN groupadd --gid 1000 symfony \
3232
&& useradd --uid 1000 --gid symfony --shell /bin/bash --create-home symfony
3333

34+
# Install the Symfony CLI
35+
RUN curl -sS https://get.symfony.com/cli/installer | bash && \
36+
mv /root/.symfony/bin/symfony /usr/local/bin/symfony
37+
3438
# Fix permissions issues
3539
RUN chmod -R a+wrx /app
3640
RUN chmod a+wrx /usr/bin/composer

php7.3/postgresql/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ WORKDIR /app
3232
RUN groupadd --gid 1000 symfony \
3333
&& useradd --uid 1000 --gid symfony --shell /bin/bash --create-home symfony
3434

35+
# Install the Symfony CLI
36+
RUN curl -sS https://get.symfony.com/cli/installer | bash && \
37+
mv /root/.symfony/bin/symfony /usr/local/bin/symfony
38+
3539
# Fix permissions issues
3640
RUN chmod -R a+wrx /app
3741
RUN chmod a+wrx /usr/bin/composer

php7.4/mysql/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ WORKDIR /app
3131
RUN groupadd --gid 1000 symfony \
3232
&& useradd --uid 1000 --gid symfony --shell /bin/bash --create-home symfony
3333

34+
# Install the Symfony CLI
35+
RUN curl -sS https://get.symfony.com/cli/installer | bash && \
36+
mv /root/.symfony/bin/symfony /usr/local/bin/symfony
37+
3438
# Fix permissions issues
3539
RUN chmod -R a+wrx /app
3640
RUN chmod a+wrx /usr/bin/composer

php7.4/postgresql/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ WORKDIR /app
3232
RUN groupadd --gid 1000 symfony \
3333
&& useradd --uid 1000 --gid symfony --shell /bin/bash --create-home symfony
3434

35+
# Install the Symfony CLI
36+
RUN curl -sS https://get.symfony.com/cli/installer | bash && \
37+
mv /root/.symfony/bin/symfony /usr/local/bin/symfony
38+
3539
# Fix permissions issues
3640
RUN chmod -R a+wrx /app
3741
RUN chmod a+wrx /usr/bin/composer

0 commit comments

Comments
 (0)