Skip to content

Docker Image Packaging for Apache HTTP Server

License

Notifications You must be signed in to change notification settings

alvistack/docker-httpd

Repository files navigation

Docker Image Packaging for Apache HTTP Server

AlviStack

GitLab pipeline status GitHub tag GitHub license Docker Pulls

The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows. The goal of this project is to provide a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards.

Learn more about Apache: https://httpd.apache.org/

Supported Tags and Respective Packer Template Links

Overview

This Docker container makes it easy to get an instance of Apache up and running.

Based on Official Ubuntu Docker Image with some minor hack:

  • Packaging by Packer Docker builder and Ansible provisioner in single layer
  • Handle ENTRYPOINT with catatonit
  • Change User and Group to www-data
  • Change DocumentRoot to /var/www/html
  • Additional Apache modules:
    • actions
    • deflate
    • expires
    • logio
    • mime_magic
    • negotiation
    • proxy
    • proxy_fcgi
    • proxy_http
    • remoteip
    • rewrite

Quick Start

For the VOLUME directory that is used to store the repository data (amongst other things) we recommend mounting a host directory as a data volume, or via a named volume if using a docker version >= 1.9.

Start Apache:

# Pull latest image
docker pull alvistack/httpd-2.4

# Run as detach
docker run \
    -itd \
    --name httpd \
    --publish 80:80 \
    --volume /var/www/html:/var/www/html \
    alvistack/httpd-2.4

Success. Apache is now available on port http://localhost.

Versioning

YYYYMMDD.Y.Z

Release tags could be find from GitHub Release of this repository. Thus using these tags will ensure you are running the most up to date stable version of this image.

YYYYMMDD.0.0

Version tags ended with .0.0 are rolling release rebuild by GitLab pipeline in weekly basis. Thus using these tags will ensure you are running the latest packages provided by the base image project.

License

Author Information