Skip to content

Smile-OSS/php-node

Repository files navigation

PHP with Node and Composer for Ci/Cd

GitHub release (with filter) GitHub Sonar Violations (long format) GitHub Workflow Status (with event)

Contents

There are four tags for each PHP version:

$PHP_VERSION-nvm-$TAG

This PHP image is based on the official PHP Debian with next additions:

  • NVM with next LTS Node versions: 14, 16, 18
  • Composer latest version

$PHP_VERSION-14-$TAG

This PHP image is based on the official PHP Alpine 3.14 with next additions:

  • Node 14
  • Composer 2.2.22

$PHP_VERSION-16-$TAG

This PHP image is based on the official PHP Alpine 3.16 with next additions:

  • Node 16
  • Composer 2.5.8

$PHP_VERSION-18-$TAG

This PHP image is based on the official PHP Alpine 3.18 with next additions:

  • Node 18
  • Composer latest

Size of images

REPOSITORY                   TAG              IMAGE ID       CREATED             SIZE
ghcr.io/smile-oss/php-node   8.1-14-v1.0.3    ff917b60f6fa   About an hour ago   170MB
ghcr.io/smile-oss/php-node   8.1-18-v1.0.3    3376ab312e36   About an hour ago   176MB
ghcr.io/smile-oss/php-node   8.1-16-v1.0.3    8f87df78ac6d   About an hour ago   175MB
ghcr.io/smile-oss/php-node   8.1-nvm-v1.0.3   5ac0f9e25761   About an hour ago   1.03GB

Usage

Please use task --list-all to see all available tasks with their description.

❯ task --list-all
task: Available tasks for this project:
* build:           Build docker image      (aliases: default)
* build-all:       Build all docker images
* push:            Push docker image
* push-all:        Push all docker images

And task --summary <task> to see full description of the task.

❯ task --summary build-all
task: build-all

Build all docker images

It will iterate over all directories in `docker` directory and build docker images
based on the directory name as the PHP version.

Example:
❯ task build-all Tag=v1.0.0

commands:
 - for dir in $(find ./docker -maxdepth 1 -type d -not -path '*/\.*' -not -path './docker'); do
  task build Version=$(basename $dir) Tag=
done

Current status:

Curremt status

About

PHP Docker images with Node.js and Composer for Ci Builds

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •