You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi thanks a lot. That seems promising. Can you shed some light how you would provide lets say npm/node for a build pipeline to consume in this particular setup without altering the Dockerfile?
11-May-2018 10:09:45 Build working directory is /var/atlassian/bamboo/xml-data/build-dir/SUS-ALL-JOB1
11-May-2018 10:09:45 Executing build SaveUp Scrum - Entire Env Build - Default Job #14 (SUS-ALL-JOB1-14)
11-May-2018 10:09:45 Starting task 'Checkout the Big 5' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
11-May-2018 10:09:45 Updating source code to revision: f37b9af7de17c510bf1cc3f636be1b2a46e181fd
11-May-2018 10:09:45 Fetching 'refs/heads/develop' from 'https://bitbucket.org/mycompany/my-product'.
11-May-2018 10:09:46 Checking out revision f37b9af7de17c510bf1cc3f636be1b2a46e181fd.
11-May-2018 10:09:47 HEAD is now at f37b9af... changes wording emails
11-May-2018 10:09:47 Updated source code to revision: f37b9af7de17c510bf1cc3f636be1b2a46e181fd
11-May-2018 10:09:47 Finished task 'Checkout the Big 5' with result: Success
11-May-2018 10:09:47 Running pre-build action: VCS Version Collector
11-May-2018 10:09:47 Skipping execution of task 'First Test' as it is disabled
11-May-2018 10:09:47 Starting task 'Install Modules' of type 'com.atlassian.bamboo.plugins.bamboo-nodejs-plugin:task.builder.npm'
11-May-2018 10:09:47 Using isolated cache directory: /opt/atlassian/bamboo/temp/bamboo-nodejs-plugin/npm-cache-131073
11-May-2018 10:09:47 Unable to find executable at /usr/local/bin/npm. Will try to run it anyway.
It depends on your current license tier.
For local agents, Bamboo will only use the capabilities installed in the same container the server is running, it means that you'll need to adjust the Dockerfile to install the requirements of your build pipeline. In the other hand, If your license allows you to have a remote agent, you can run it in a different container and use this remote agent to run your builds.
My colleague also maintains a Dockerfile with the minimum requirements to run remote agents in a docker container, you can use it as a reference to create your own.
I personally use this one. The project is maintained by one of my colleagues here in Atlassian and despite not being officially supported by us, it's pretty reliable. I'm sure it's a good starting point.