Reducing log output from dependent containers

1 minute read
End-of-life announcement

CodeShip will officially reach end-of-life on January 31, 2026.

To continue CI/CD services at current CodeShip pricing levels, transition to CloudBees Unify.

Next steps:

When using depends_on to link dependent containers to your main service, If the logs of the dependent containers are too verbose, a commmand instruction can be provided in the codeship-services.yml to add logging flags to suppress log output.

Command instructions to suppress log output will only work if the Docker image’s entrypoint is configured to receive logging flags. We recommend that you read your dependent image’s documentation for more information.

The following is a contrived example for suppressing the log output of both the elasticsearch and mysql service:

# codeship-services.yml app: image: busybox depends_on: - elasticsearch - mysql elasticsearch: image: elasticsearch:2.4-alpine command: -Des.logger.level=ERROR mysql: build: context: . dockerfile: Dockerfile.mysql cached: true command: --general-log=0 --log-error