-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dockerfile for pipelines? #11
Comments
No, or none that I know about.
Yes, I did. The Dockerfile itself is less the problem, pipelines need to be aware that it is dockerized. This is merely meta. Pipelines can already be run within Docker, that is the "PIP - Pipelines Inside Pipelines" feature. It then works very similar as you have outlined. However you would need to have Docker as a dependency. And that you already have. And then pipelines only needs some PHP version with little requirements. So it should be more straight forward to just install that (take any PHP 5.3.3 - PHP 8.1*) and execute the pipelines.phar file. Which operating system are you using? |
@phitoduck I quickly wrapped one docker image up, so there is something to play:
The default working directory is
to hint pipelines inside pipelines (here docker) the path to the original project directory, there is the sorry for the rough description, merely the quick hint that there are some environment variables if set, it could already run with this image. I'll add |
@phitoduck please find an experimental branch there will be a couple of rough edges, feel free to name anything you run over. |
@phitoduck if you'd like to contribute a Dockerfile for this I'm open to it. For the moment I'd keep this on a temporary branch and will rebase it occasionally. |
Wow, sorry for totally dropping off. Thanks for looking into this. It may be another while before I can look at this, but I think my team at work would really like this since it would make it easier to reproduce our exact pipeline locally. |
Hi there,
Is there a Dockerfile with the
pipelines
command and PHP already installed? The use for this would be to allow users to run bitbucket pipelines through docker using your tool. Something like:docker run -v "path/to/docker.sock:..." <pipelines-image-tag> [PIPELINES OPTIONS] <PIPELINES ARGS>
If not, have you given any thought to whether this is possible? My team is looking for a way to run BBP locally, and this tool looks promising. I might be able to contribute a
Dockerfile
like this if we end up going that way.The text was updated successfully, but these errors were encountered: