Sign inSign up

sphereio/commercetools-php-training

By sphereio

Updated almost 7 years ago

runtime for commercetools PHP SDK training

Image
0

511

sphereio/commercetools-php-training repository overview

Commercetools PHP training repository

This project aims to get a quick intro to the Commercetools Platform.

https://github.com/commercetools/commercetools-php-training

Setup project:

composer install

Running Training tests:

env $(cat parameters.env | xargs) vendor/bin/phpunit
Docker

Build runtime image from scratch:

docker build -t sphereio/commercetools-php-training .

Setup:

docker run --rm -v${PWD}:/app -w /app sphereio/commercetools-php-training composer install

Running Training tests:

docker-compose up

or

docker run --rm  --env-file parameters.env -v${PWD}:/app -w /app sphereio/commercetools-php-training vendor/bin/phpunit
Vagrant

Setup and starting the application:

vagrant up

Running Training tests:

vagrant ssh -c 'cd training; env $(cat parameters.env | xargs) vendor/bin/phpunit'
PhpStorm Configuration
Languages > Frameworks > PHP : Select CLI interpreter
Local
Languages > Frameworks > PHP > Testframeworks :

Add local entry for PHPUnit: Use composer autoloader
Default configuration file: phpunit.xml.dist

Vagrant
Languages > Frameworks > PHP > Testframeworks :

Add remote entry for PHPUnit: Use composer autoloader
Default configuration file: phpunit.xml.dist

Run/Debug Configurations
Add PHPUnit entry: defined in the configuration file

Tag summary

Content type

Image

Digest

Size

46.8 MB

Last updated

almost 7 years ago

docker pull sphereio/commercetools-php-training