Base docker image to run PHP applications hosted on bitbucket.org
- Checkout this REPO
git clone https://github.com/matheusbona/php-docker-base.git
- create a public/private key (Atlassian docs - https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html)
ssh-keygen -f $(pwd)/id_rsa
- Setup your public key on your bitbucket account (Atlassian docs - https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html)
cat id_rsa.pub
- Adjust the init.sh file (Put your bitbucket ssh url)
vim init.sh
- Build docker image
docker build -t matheusbona/my-php-application .
- Run the bagaça
docker run -d --name my-app matheusbona/my-php-application