How to disable output on one of containers?

前端 未结 3 1850
眼角桃花
眼角桃花 2021-02-18 13:04

I am using Codeship CI for my project. I have selenium tests and I am using remote browser from selenium/standalone-firefox but it\'s producing tons of logs, so

3条回答
  •  囚心锁ツ
    2021-02-18 13:30

    CodeShip uses a custom variant of docker-compose v1 that accepts an environment setting. The following in codeship-services.yml worked for me:

    selenium:
      image: selenium/standalone-chrome
      cached: true
      container_name: selenium
      environment:
        -  SE_OPTS=-log /tmp/log.txt
    

    The SE_OPTS value should not be in quotes. /tmp is writeable, other locations may result in a permission error.

提交回复
热议问题