Wpis z mikrobloga

#webdev #gitlab #docker

Jak mogę na Gitlab CI odpalić usługę z parametrem? Lub jak można skonfigurować tę usługę?

Zamiast tak:

services:
- selenium/standalone-chrome:latest

Zrobić tak:

services:
- selenium/standalone-chrome:latest -p 4444:4444
  • 1
@Greg36:

The alias hostname for the service is made from the image name following these rules:

Everything after : is stripped

Slash (/) is replaced with double underscores (_)


Czyli selenium jest dostępne na hoście: selenium__standalone-chrome:4444