Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
39 | public function __invoke(InputInterface $input, OutputInterface $output): void |
||
40 | { |
||
41 | $output->writeln('Building...'); |
||
42 | |||
43 | $compose = new Process('docker-compose build', 'vendor/helick/local-server/docker', [ |
||
|
|||
44 | 'COMPOSE_PROJECT_NAME' => basename(getcwd()), |
||
45 | 'VOLUME' => getcwd(), |
||
46 | ]); |
||
47 | $compose->run(function ($_, $buffer) { |
||
48 | echo $buffer; |
||
49 | }); |
||
50 | |||
51 | $output->writeln('Built.'); |
||
52 | } |
||
54 |