Skip to content

Commit

Permalink
Use selenium/standalone-chromium
Browse files Browse the repository at this point in the history
  • Loading branch information
Jubeki committed Sep 11, 2024
1 parent 3391b3d commit c44cd81
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/Console/Concerns/InteractsWithDockerComposeServices.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ protected function buildDockerCompose(array $services)
unset($compose['volumes']);
}

// Replace Selenium with ARM base container on Apple Silicon...
if (in_array('selenium', $services) && in_array(php_uname('m'), ['arm64', 'aarch64'])) {
$compose['services']['selenium']['image'] = 'selenium/standalone-chromium';
}

$yaml = Yaml::dump($compose, Yaml::DUMP_OBJECT_AS_MAP);

$yaml = str_replace('{{PHP_VERSION}}', $this->option('php'), $yaml);
Expand Down
2 changes: 1 addition & 1 deletion stubs/selenium.stub
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
selenium:
image: 'selenium/standalone-chrome'
image: 'selenium/standalone-chromium'
extra_hosts:
- 'host.docker.internal:host-gateway'
volumes:
Expand Down

0 comments on commit c44cd81

Please sign in to comment.