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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.