protected function createProxy()
 {
     $this->stdOut->writeln("<comment>Creating the nginx proxy container");
     return Docker::run(['-d', '-p', '80:80', '-v', '/var/run/docker.sock:/tmp/docker.sock:ro', '--name', $this->containerName, 'jwilder/nginx-proxy']);
 }
示例#2
0
 protected function startSeleniumContainer()
 {
     $this->stdOut->writeln("<comment>Starting the Selenium container");
     try {
         return !Docker::start([$this->containerName])->isSuccessful();
     } catch (\Exception $e) {
         $this->stdOut->writeln("<comment>Creating the Selenium container");
         return Docker::run(['-d', '-p', '4444:4444', '-v', '/dev/shm:/dev/shm', '--name', $this->containerName, 'selenium/standalone-firefox:2.47.1']);
     }
 }