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
Next: Root
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
Hello,
This is the scenario I have.
I'm using a linux machine as a self hosted agent. On this agent I have a custom Image that has all my requirements.
Is there a way to specify in the bitbucket-pipeline.yml file to use this image?
For example in github I would do:
runs-on: self-hosted-linux # self hosted agent tag
container: my-custom-image:latest
Container here specifies the image that already exists on self-hosted-linux and tells the pipeline to create a container from that image and use it as an image for the pipeline.
Is there an equivalent in Bitbucket?
Thanks!
Hey Anthony,
Custom docker images used in your build environment are only compatible with Linux Docker runners, it is not supported within Linux Shell environments.
Here is some documentation to assist you further:
Cheers!
- Ben (Bitbucket Cloud Support)
I tried the approach foudn in the 2nd link:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anthony,
Can you try reference the image like this if it is hosted locally?
name: localhost:0000/imagename
Where 0000 is the port number and imagename is the name of the image.
Cheers!
- Ben (Bitbucket Cloud Support)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.