This repository provides multiple images, grouped by tags and are intended for use in Bitbucket's Pipelines by Logicbrush. These Docker images provide an updated version of the images from the official PHP Docker repository and provides the minimum toolset used by Logicbrush. This helps reduce the time in Pipelines spent installing/updating packages during each step, reducing the use of Bitbucket's alloted build minutes and ultimately reducing costs.
Since these images are intended to extend the official repository of PHP, the structure in place starts at the root and makes a folder starting with the tag name of the image to be created. Since the root of the repository is only concerned with PHP, it doesn't need the image name.
/7.2-cli/
In reality, the final structure is not vital, just as long as there is a directory for every build.
Extended Images
The images that extend a specific version are set in a subdirectory of that version. For example, for a package that has PHP 7.2 and the LAMP stack, the folder structure might look like:
/7.2-cli/lamp
Each folder that is intended to be an image will consist of a file named Dockerfile. Each of those files outline the necessary configurations for that build, see Docker Quick Information > Dockerfile for an example.
Docker has applications and package libraries for a variety of distributions. The command line interface is necessary for pulling and building images when needed.
tags are a way of grouping images together on the same name/repository.
It's this simple to start.
FROM php:7.2-cli
RUN apt-get update
After defining a Dockerfile, the images need built and pushed to the Docker repository.
Docker and Bitbucket are integrated and are configured to build automatically when master is pushed. The settings are availabe and configured in the Logicbrush Docker account n the logicbrush/php > Build Settings. If you are creating a new tag then you'll need to configure the settings within Docker.
docker build -t <owner>/<name>:<tag> <directory>\
docker push <owner>/<name>:<tag>
Content type
Image
Digest
sha256:52c6ca0f7…
Size
437.2 MB
Last updated
3 months ago
docker pull logicbrush/php:mergetools