Download the PHP package waglpz/docker without Composer
On this page you can find all versions of the php package waglpz/docker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download waglpz/docker
More information about waglpz/docker
Files in waglpz/docker
Informations about the package docker
Some Dockerfiles for creating an PHP Environment
Dockerfile -- a text file that contains all commands, in order, needed to build a docker image
- PHP 5.6.30 on Debian 10 without webserver
- PHP 7.4 on Debian 10 with Apache webserver
- PHP 8.2 on Debian 11 with Apache webserver
Docker Engine should already be installed on you maschine. See installation instruction on:
What is Docker from official site: Docker makes development efficient and predictable Docker takes away repetitive, mundane configuration tasks and is used throughout the development lifecycle for fast, easy and portable application development – desktop and cloud. Docker’s comprehensive end to end platform includes UIs, CLIs, APIs and security that are engineered to work together across the entire application delivery lifecycle.
Installation
Please refer to the online documentation for Docker engine installation
[Docker Installation Mint]() do same installation steps described by Ubuntu
with the following command to set up the repository:
Value of <UBUNTU_VERSION_NAME> should be get on Ubuntu via command $(lsb_release -cs)
Setup Docker for development in new Project
Preparation
Provided Dockerfile includes all installation instructions for needed Software, and is prepared so for minimal necessary software stack,
will be included after image builds.
The Installing of extra software/extensions can be enabled via uncommenting some blocks which contains installation instructions.
Project integration
Copy Dockerfile you are interested e.g. PHP 7.4 on Debian 10 with Apache webserver
in Project directory, or in a specific subdirectory in Project e.g. .docker.
Get an Image complied from Dockerfile with specific tag name -t run build command
where . is directory wo Dockerfile was copied previously and PROJECTNAME is expected image name.
Pull docker image to docker.hub. You need username/password of
Working with Docker
After image was build we could start this as a container in detached mode
and check that the container is available with command docker ps
To open a terminal session within running container we need a CONTAINER_IDthis one we got from output of docker ps command.
Open terminal session docker exec -it -u (id -u):(id -g) CONTAINER_ID bash
Shutdown all containers
Example Build and Tagging:
docker build --build-arg APPUID=1000 --build-arg APPUGID=1000 -t waglpz/vwd-base:8.2 php/8.2/bullseye/apache/
...