Details
Description
Issue Summary
This is reproducible on Data Center:
The Configuring your system properties documentation misses instructions on how to add the system properties on Bamboo instances running on a container.
Steps to Reproduce
The page mentions the steps to add the properties to the setenv.sh / setenv.bat file or to the Window Service.
Expected Results
The system properties get picked up by Bamboo once the container is restarted.
Actual Results
Adding the Java properties (e.g., "-Datlassian.recovery.password=temporarypassword") to the setenv.sh file inside a container doesn't work since the install folder data is not persisted once the container is restarted, and the container needs to be restarted for the properties to get picked up.
Once the container is restarted, the setenv file gets reverted to the default configuration from the image, which does not include the properties added, thus the desired behavior is not achieved.
Workaround
The container needs to be recreated (pointing to the same existing data) and the Java properties should be passed as a Docker environment variable, using the "-e" option. For example:
docker run [...] --name="bamboo" -e=JVM_SUPPORT_RECOMMENDED_ARGS="-Datlassian.recovery.password=temporarypassword" atlassian/bamboo:8.0.4
Related Docker documentation
The documentation should include those steps for containers.
Attachments
Issue Links
- mentioned in
-
Page Loading...