Viewing the list of Bamboo stock images
Bamboo provides a collection of Amazon Machine Images (AMIs) that are ready for use or further customization. Each AMI is identified by its unique ID. For more information about the parameters of the stock images, see Stock images.
Atlassian AMIs and their IDs may change with each minor or major Bamboo release.
Viewing a list of AMI IDs available for a release
To generate a list of AMI IDs for a Bamboo version:
Save the following script as a .sh file:
if [ $# -eq 0 ]; then echo "Usage: `basename $0` [7.2.4] (Your Bamboo version)" exit 0 fi BAMBOO_VERSION=$1 echo For Bamboo version: $BAMBOO_VERSION ELASTIC_VERSION="$(curl -L -v --silent https://packages.atlassian.com/content/groups/public/com/atlassian/bamboo/atlassian-bamboo/$BAMBOO_VERSION/atlassian-bamboo-$BAMBOO_VERSION.pom 2>&1 | grep \<elastic-image.version\> | sed -e 's/<[^>]*>//g' -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')" echo "Elastic bamboo version is $ELASTIC_VERSION" curl -L -v --silent https://packages.atlassian.com/content/groups/public/com/atlassian/bamboo/atlassian-bamboo-elastic-image/$ELASTIC_VERSION/atlassian-bamboo-elastic-image-$ELASTIC_VERSION.ami 2>&1 | grep image. echo "REMEMBER: Use the image from the appropriate region!"
- In the terminal, go to the directory where you saved the file and run it with the following command:
./<name-of-your-file>.sh <your-bamboo-version>
例
./amis.sh 7.2.4
If you get the Permission denied error, you can modify the permissions of the .sh file with the following:
chmod +x <name-of-the-file>.sh
結果
Select the example to see the full script output.
トラブルシューティング
If the script above doesn't work, you can also find the list of Bamboo stock images in the following way:
In the following URL:
https://packages.atlassian.com/content/groups/public/com/atlassian/bamboo/atlassian-bamboo/$BAMBOO_VERSION/atlassian-bamboo-$BAMBOO_VERSION.pom
change $BAMBOO_VERSION to the Bamboo version number for which you want to list the AMIs.
例
For Bamboo 7.2.4:
https://packages.atlassian.com/content/groups/public/com/atlassian/bamboo/atlassian-bamboo/7.2.4/atlassian-bamboo-7.2.4.pom
- Open the URL in a browser.
- In the atlassian-bamboo-$BAMBOO_VERSION.pom file (where $BAMBOO_VERSION is your version of Bamboo), find the elastic image version for the release. The image version (baseline) is stored as an
elastic-image.version
property.
Example
For the version 7.2.4 (atlassian-bamboo-7.2.4.pom), the elastic image version was 6.23:<elastic-image.version>6.23</elastic-image.version>
In the following URL:
https://packages.atlassian.com/content/groups/public/com/atlassian/bamboo/atlassian-bamboo-elastic-image/$ELASTIC_VERSION/atlassian-bamboo-elastic-image-$ELASTIC_VERSION.ami
change $ELASTIC_VERSION to the Bamboo elastic version number from Step 3.
例
For Bamboo elastic version 6.23, which is the baseline for Bamboo 7.2.4:
https://packages.atlassian.com/content/groups/public/com/atlassian/bamboo/atlassian-bamboo-elastic-image/6.23/atlassian-bamboo-elastic-image-6.23.ami
- Open the URL in a browser.
The .ami file that opens contains the list of all stock AMI IDs available for the selected version of Bamboo.
Make sure you select the image from the correct region. For example:
image.US_EAST_1.EBS.x86_64.linux.HVM.Ubuntu=ami-02d922f88e5fbbb00
関連トピック