DownloadDocker
Development environment has: 
Pre installation
Before start please be sure that was installed: 
- 
Docker
 
- 
Compose
 
 
Installation
- 
Set environment variable `HOST_IP` with your host machine IP, e.g. `export host_ip=192.168.0.104`
 
- 
Run in application root `sudo docker-compose -f bin/docker/docker-compose.yml up`
 
- 
Check containers `sudo docker-compose ps`
 
 
Containers
object-manager-php
SSH
SSH credentials: 
- 
user: `root`
 
- 
password: `screencast`
 
- 
ip: 0.0.0.0
 
- 
port: 2240
 
 
To make connection via console simple run ssh [email protected] -p 2240. 
Usefull commands
- 
go to shell inside container `sudo docker-compose -f ./bin/docker/docker-compose.yml exec object-manager-php bash`
 
- 
build container `sudo docker-compose -f ./bin/docker/docker-compose.yml build object-manager-php`
 
- 
build container without caching `sudo docker-compose -f ./bin/docker/docker-compose.yml build --no-cache object-manager-php`
 
 
For more information please visit Docker Compose Command-line Reference. 
Configuration IDE (PhpStorm)
----------------------------  
Remote interpreter
- 
Use ssh connection to set php interpreter
 
- 
PHP executable `/usr/local/bin/php`
 
- 
Set "Path mappings": `host machine project root->/ObjectManager`
 
 
More information is here. 
UnitTests
- 
Configure UnitTest using remote interpreter. 
 
- 
Choose "Use Composer autoload"
 
- 
Set "Path to script": `/ObjectManager/vendor/autoload.php`
 
- 
Set "Default configuration file": `/ObjectManager/tests/phpunit.xml.dist`
 
 
More information is here. 
 |