Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Dec 6, 2021
1 parent 81609c1 commit 4419eab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ protected function buildDockerCompose(array $services)
$dockerCompose = str_replace('{{services}}', $stubs, $dockerCompose);
$dockerCompose = str_replace('{{volumes}}', $volumes, $dockerCompose);

// Replace Selenium with ARM base container on Apple Silicon...
if (in_array('selenium', $services) && php_uname('m') === 'arm64') {
$stubs = str_replace('selenium/standalone-chrome', 'seleniarm/standalone-chromium', $stubs);
}

// Remove empty lines...
$dockerCompose = preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "\n", $dockerCompose);

Expand Down

0 comments on commit 4419eab

Please sign in to comment.