How to configure Bamboo docker container to avoid first-time-setup pages
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
目的
Trying to set up a bamboo-server using Atlassian official docker image, and avoiding the first-time-setup.
ソリューション
Customers can use the ATL_BAMBOO_ENABLE_UNATTENDED_SETUP flag.
This method is normally used with our kubernetes solution, but can still work as a standalone strategy.
Please check the source code of the docker image's entrypoint.py to know more.
Please use the below sample docker run command with predefined and harcoded values and it skips the first-time-setup-page
docker run \ -e ATL_BAMBOO_ENABLE_UNATTENDED_SETUP='true' \ -e ATL_BAMBOO_SKIP_CONFIG='true' \ -e ATL_BAMBOO_DISABLE_AGENT_AUTH='true' \ -e ATL_LICENSE="*****" \ -e ATL_BASE_URL="localhost" \ -e ATL_ADMIN_USERNAME='admin' \ -e ATL_ADMIN_PASSWORD='****' \ -e ATL_ADMIN_FULLNAME='admin' \ -e ATL_ADMIN_EMAIL='admin@admin.admin' \ -e ATL_IMPORT_OPTION='clean' \ -e JVM_MINIMUM_MEMORY=2048m \ -e JVM_MAXIMUM_MEMORY=2048m \ -e ATL_DB_TYPE='h2' \ --name="local-bamboo" \ --detach \ --publish 8085:8085 \ --publish 54663:54663 \ atlassian/bamboo:latest |
注意
The last argument specifies the Bamboo server version. In the above run command it will spin up a container with latest Bamboo version. For specific version you can edit it like atlassian/bamboo:8.0.3