Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 732 Bytes

README.md

File metadata and controls

31 lines (16 loc) · 732 Bytes

php-docker-base

Base docker image to run PHP applications hosted on bitbucket.org

Guide

  1. Checkout this REPO

git clone https://github.com/matheusbona/php-docker-base.git

  1. 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

  1. 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

  1. Adjust the init.sh file (Put your bitbucket ssh url)

vim init.sh

  1. Build docker image

docker build -t matheusbona/my-php-application .

  1. Run the bagaça

docker run -d --name my-app matheusbona/my-php-application

Enjoy