This repository holds the DockerFile config use to create our Docker image for BitBucket Pipeline.
TODO: Add overall DB, nginx, and other setup info from the Google Doc
git clone {repository url}Well, sign up here =) https://hub.docker.com/
One way is to use Docker toolbox: https://www.docker.com/products/docker-toolbox
Example file here: https://github.com/mark-adams/docker-chromium-xvfb/blob/master/images/base/Dockerfile
In the same directory as you have your Dockerfile, run command:
$ docker build -t yourdockerusername/imagename .
Run command
$ docker push yourdockerusername/imagename
As documented here: https://confluence.atlassian.com/display/BITBUCKET/Use+Docker+images+as+build+environments+in+Bitbucket+Pipelines
You can use your image on a top level as well as on a specific step like this.
image: yourdockerusername/imagename
pipelines:
default:
- step:
script:
- echo "This script runs on all branches that don't have any specific pipeline assigned in 'branches'."
branches:
master:
- step:
script:
- echo "This script runs only on commit to the master branch."
feature/*:
- step:
image: yourdockerusername/imagename # This step uses its own image
script:
- echo "This script runs only on commit to branches with names that match the feature/* pattern."
Credit to this answer on atlassian.com
Content type
Image
Digest
Size
204.5 MB
Last updated
over 6 years ago
docker pull hostpapadev/php73dev