Please add the ability to write atlassian-bamboo.log to the Docker stdout either as an option in the Docker Compose file or as default behavior in the stock Docker image.
Current Workaround:
- First, identify where the log files are located inside the Bamboo container. Usually is:
/var/atlassian/application-data/bamboo/logs
- Create a Dockerfile to build a new Docker image, based on the existing Bamboo Docker image.
- In this Dockerfile, use the `RUN` command to remove the existing log files, and then create symbolic links that point to /dev/stdout or /dev/stderr.
Here is an example Dockerfile:# Create symbolic links RUN ln -sf /dev/stdout /path/to/your/atlassian-bamboo.log \ && ln -sf /dev/stdout /path/to/your/atlassian-bamboo-access.log
Replace `/path/to/your/atlassian-bamboo.log` and `/path/to/your/atlassian-bamboo-access.log` with the actual paths to your log files.
- Build a new Docker image using this Dockerfile:
docker build -t my-bamboo:8.9.8 .
- Run a new Bamboo container using your new Docker image:
docker run -d --name my-bamboo my-bamboo:8.9.8
- Now you should be able to see the logs using the `docker logs` command:
docker logs my-bamboo
Note: The Bamboo logs will now also include the access logs and this might not be what you want. If you want to separate the access log, you can create another symbolic link to /dev/stderr instead.
[BAM-25650] Write atlassian-bamboo.log to Docker stdout
UIS | Original: 6 | New: 1 |
UIS | Original: 1 | New: 6 |
UIS | New: 1 |