1
- # PHPStorm & Docker
1
+ # PhpStorm & Docker
2
2
3
- The goal for this tutorial is to help containerize an application to leverage the tools within PHPStorm (Test Suite,
3
+ The goal for this tutorial is to help containerize an application to leverage the tools within PhpStorm (Test Suite,
4
4
Coverage, etc).
5
5
6
6
To do this the following things need to happen:
7
7
8
- 1 ) Setup Docker for Mac in PHPStorm .
8
+ 1 ) Setup Docker for Mac in PhpStorm .
9
9
2 ) Setup Language (PHP in this example) to use a remote interpreter.
10
10
3 ) Fix the paths to match our standard (/code for project code)
11
11
4 ) Setup Tests (PHPUnit or Codeception) to use a special docker-compose file.
@@ -16,7 +16,7 @@ We are assuming the following things:
16
16
2 ) The project is already running via (docker-compose up --build)
17
17
3 ) Some small knowledge of Docker
18
18
19
- ## Setup Docker for Mac in PHPStorm
19
+ ## Setup Docker for Mac in PhpStorm
20
20
21
21
Head to Preferences and go to ` Build, Execution, Deployment -> Docker ` . Create an item called "Docker"
22
22
using the daemon option "Docker for Mac".
@@ -25,7 +25,7 @@ using the daemon option "Docker for Mac".
25
25
26
26
### Creating an isolated docker-compose for testing
27
27
28
- In order for PHPStorm to run tests without affecting containers. You need to create a new container that matches
28
+ In order for PhpStorm to run tests without affecting containers. You need to create a new container that matches
29
29
whatever container your code works on.
30
30
31
31
For example, here a random PHP project ` docker-compose-phpstorm.yml ` file.
@@ -102,4 +102,4 @@ This can be shown below:
102
102
103
103
![ phpstorm-seeing-green-test] ( ./assets/docker-testpass.png )
104
104
105
- With that you have successfully hooked the test suites, while keeping Docker inside PHPStorm .
105
+ With that you have successfully hooked the test suites, while keeping Docker inside PhpStorm .
0 commit comments