kopia lustrzana https://github.com/carlos-algms/composer-and-node-ci
Update to NodeJS 14 and include Deployer
rodzic
aab62d58cf
commit
38f12031b3
|
@ -7,7 +7,7 @@ RUN apt-get update \
|
||||||
apt-transport-https \
|
apt-transport-https \
|
||||||
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
|
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
|
||||||
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
|
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
|
||||||
&& curl -sL https://deb.nodesource.com/setup_12.x | bash - \
|
&& curl -sL https://deb.nodesource.com/setup_14.x | bash - \
|
||||||
&& apt-get install --no-install-recommends --no-install-suggests -y \
|
&& apt-get install --no-install-recommends --no-install-suggests -y \
|
||||||
nodejs \
|
nodejs \
|
||||||
unzip \
|
unzip \
|
||||||
|
@ -27,6 +27,10 @@ RUN apt-get update \
|
||||||
/usr/share/man/??_* \
|
/usr/share/man/??_* \
|
||||||
# Install composer
|
# Install composer
|
||||||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
||||||
|
# Install Deployer - https://deployer.org/docs/getting-started.html
|
||||||
|
&& curl -LO https://deployer.org/deployer.phar \
|
||||||
|
&& mv deployer.phar /usr/local/bin/dep \
|
||||||
|
&& chmod +x /usr/local/bin/dep \
|
||||||
# Show versions
|
# Show versions
|
||||||
&& php -v \
|
&& php -v \
|
||||||
&& echo "node: `node -v` " \
|
&& echo "node: `node -v` " \
|
||||||
|
|
22
README.md
22
README.md
|
@ -1,16 +1,22 @@
|
||||||
# composer-and-node-ci
|
# composer-and-node-ci Docker image
|
||||||
|
|
||||||
A docker image to be used on continuous integration projects.
|
A docker image to be used on continuous integration projects.
|
||||||
|
|
||||||
It was made to use with Laravel and/or Frontend projects since it has all that is needed to build both types of projects.
|
The idea is to include everything you need to run unit tests and build frontend projects.
|
||||||
|
|
||||||
|
Also, it is possible to run pure PHP or with frameworks like Laravel or CodeIgniter, Composer for dependency manager.
|
||||||
|
|
||||||
|
To deploy and transfer files, [deployer](https://deployer.org) and RSync are available.
|
||||||
|
|
||||||
|
|
||||||
## This image includes:
|
## This image includes:
|
||||||
|
|
||||||
|
* [NodeJS 14.x and NPM](https://github.com/nodesource/distributions/blob/master/README.md#installation-instructions)
|
||||||
|
* [yarn - latest](https://classic.yarnpkg.com/en/docs/install/#debian-stable)
|
||||||
* PHP 7:latest
|
* PHP 7:latest
|
||||||
* composer - latest
|
* [composer - latest](https://getcomposer.org/doc/faqs/how-to-install-composer-programmatically.md)
|
||||||
* NodeJS 12.x and NPM
|
* [deployer](https://deployer.org)
|
||||||
* yarn - latest
|
* OpenSSH client
|
||||||
* openssh client
|
* Git
|
||||||
* git
|
* RSync
|
||||||
* rsync
|
|
||||||
* MySql Client
|
* MySql Client
|
||||||
|
|
Ładowanie…
Reference in New Issue