Skip to content

A (wercker) box for combining PHP and node into a single box. This includes Composer, Yarn, PHPUnit and rsync

Notifications You must be signed in to change notification settings

kingsquare/wercker-php-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 

Repository files navigation

Docker Automated build Docker Build Status

wercker-php-node

This is a box to combine PHP and Node in a single box.

For supported version mixes see https://github.com/kingsquare/wercker-php-node/branches

This also includes:

  • system

    • rsync
  • PHP

    • composer
    • phpunit
  • Node

    • yarn

To use this in wercker:

box: kingsquare/wercker-php-node
build:
  steps:
    - script:
      name: set yarn cache
      code: yarn config set cache-folder $WERCKER_CACHE_DIR/yarn

    - script:
      name: set composer environment variables for using wercker cache
      code: export COMPOSER_CACHE_DIR=$WERCKER_CACHE_DIR/composer

    - mbrevda/composer-install:
      opts: --no-interaction --optimize-autoloader

    - script:
      name: install NodeJS dependencies for building sass et al
      code: yarn

    - script:
      name: build
      code: yarn run build

Used versions can be fetched from the environment (PHP_VERSION / NODE_VERSION / YARN_VERSION / COMPOSER_VERSION)

About

A (wercker) box for combining PHP and node into a single box. This includes Composer, Yarn, PHPUnit and rsync

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%