Public | Automated Build

Last pushed: a month ago
Short Description
DEPRECATED. Use wplib/apache
Full Description

Apache2 Docker Container for WPLib Box

This is the repository for the Apache2 Docker container implemented for WPLib-Box.
It currently provides versions 2.4.27 2.4.29

Supported tags and respective Dockerfiles

2.4.29, 2.4, latest (2.4.29/Dockerfile)

2.4.27 (2.4.27/Dockerfile)

Using this container.

If you want to use this container as part of WPLib, then use the Docker Hub method.
Or you can use the GitHub method to build and run the container.

Using it from Docker Hub

Setup from Docker Hub

A simple docker pull wplib/apache2 will pull down the latest version.

Runtime from Docker Hub

start - Spin up a Docker container with the correct runtime configs.

docker run -d --name wplib_apache2_2.4.29 --restart unless-stopped --network wplibbox -p 8080:80 --mount type=bind,source=/var/www,target=/var/www/localhost/htdocs wplib/apache2:2.4.29

stop - Stop a Docker container.

docker stop wplib_apache2_2.4.29

run - Run a Docker container in the foreground, (all STDOUT and STDERR will go to console). The Container be removed on termination.

docker run --rm --name wplib_apache2_2.4.29 --network wplibbox -p 8080:80 --mount type=bind,source=/var/www,target=/var/www/localhost/htdocs wplib/apache2:2.4.29

shell - Run a shell, (/bin/bash), within a Docker container.

docker run --rm --name wplib_apache2_2.4.29 -i -t --network wplibbox -p 8081:80 --mount type=bind,source=/var/www,target=/var/www/localhost/htdocs wplib/apache2:2.4.29 /bin/bash

rm - Remove the Docker container.

docker container rm wplib_apache2_2.4.29

Using it from GitHub repo

Setup from GitHub repo

Simply clone this repository to your local machine

git clone https://github.com/wplib/apache2-docker.git

Building from GitHub repo

make build - Build Docker images. Build all versions from the base directory or specific versions from each directory.

make list - List already built Docker images. List all versions from the base directory or specific versions from each directory.

make clean - Remove already built Docker images. Remove all versions from the base directory or specific versions from each directory.

make push - Push already built Docker images to Docker Hub, (only for WPLib admins). Push all versions from the base directory or specific versions from each directory.

Runtime from GitHub repo

When you cd into a version directory you can also perform a few more actions.

make start - Spin up a Docker container with the correct runtime configs.

make stop - Stop a Docker container.

make run - Run a Docker container in the foreground, (all STDOUT and STDERR will go to console). The Container be removed on termination.

make shell - Run a shell, (/bin/bash), within a Docker container.

make rm - Remove the Docker container.

Docker Pull Command
Owner
wplib
Source Repository