I'm testing a container in Codeship that requires a database. Using services in codeship-services.yml I'm linking the database container to the application container. The problem is the database container is printing a lot of output that gets mixed with the output of the tests. I want to get rid of the MongoDB logs completely but MongoDB doesn't have options to do that.
I'm currently running it with
mongod --quiet --setParameter logLevel=0
but getting a lot of output still.
So I'm looking for a solution on the Codeship side to suppress output from a container (service in Codeship terms). The
logging:
driver: none
setting from docker-compose doesn't seem to work.
Here is my codeship-services.yml:
myapp:
build:
dockerfile: Dockerfile
image: myapp
cached: true
links:
- database
database:
image: mongo:3.4.3
command: mongod --quiet --logpath /tmp/mongo.log --setParameter logLevel=0
Logging
is currently a directive Codeship doesn't support yet. – Fireball