Skip to content

Commit

Permalink
Migrated code from symfony/process to react/child-process
Browse files Browse the repository at this point in the history
  • Loading branch information
gplanchat committed Nov 21, 2023
1 parent cb9c179 commit 57b6c64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Adapter/Docker/Satellite.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ public function build(
$this->workdir,
);

$process->start();

$input = new ReadableResourceStream($archive->asResource());

$input->pipe($process->stdin);

$this->execute($logger, $process);
Expand Down Expand Up @@ -105,7 +108,6 @@ private function execute(
$deferred->resolve();
});

$process->start();
$logger->notice(sprintf('Starting process "%s".', $process->getCommand()));

await(timeout($deferred->promise(), $timeout));
Expand Down

0 comments on commit 57b6c64

Please sign in to comment.