Build docker images for bitbucket pipelines. Tags associated with folders inside the master branch.
693
A collection of docker images designed specifically for building Magento 2 on Bitbucket Pipelines.
briteskies/magento-2-pipelines-docker:7.0-cliphp repository that these Docker files are based on.briteskies/magento-2-pipelines-docker:7.0-cliphp repository that these Docker files are based on.Build locally by running something along the lines of:
docker build -t briteskies/magento-2-pipelines-docker:7.0-cli ./7.0-cli
Optionally login and push the image up instead of waiting for the automated build:
docker login -u yourusername -p
Run the container locally for debugging with:
sudo docker run -it briteskies/magento-2-pipelines-docker:7.0-cli bash
# or to ignore the default entrypoint
docker run -it --entrypoint "/bin/bash" briteskies/magento-2-pipelines-docker:7.0-cli
To debug pipelines builds locally:
docker run -it --entrypoint="/bin/bash" --volume=/var/www/smkw-m2:/srv/www --workdir="/srv/www" --memory=2048m briteskies/magento-2-pipelines-docker:7.0-clidocker run -e "MYSQL_ROOT_PASSWORD=root" -e " MYSQL_DATABASE=magento2" -e "MYSQL_USER=magento2" -e "MYSQL_PASSWORD=magento2" mysql:5.7docker ps to find the name for the mysql containerdocker inspect name_of_the_container | grep IPAddress to get the IPAddress of the containerrm -rf /srv/www/var/cache /srv/www/var/di /srv/www/var/generation /srv/www/var/page_cachebash dev/tools/deployment/install-magento.sh from the pipelines filesmagento2 form mysql workbench or similarphp -d memory_limit=2G ./bin/magento setup:install --db-host=172.17.0.3 --db-name=magento2 --db-user=root --db-password=root --base-url=http://localhost/ --admin-firstname=Test --admin-lastname=User [email protected] --admin-user=test --admin-password=magento2References:
TODO:
Installed
Composer Global Packages
Content type
Image
Digest
Size
341.1 MB
Last updated
over 8 years ago
docker pull briteskies/magento-2-pipelines-docker:7.0-cli