Skip to content
This repository has been archived by the owner on Oct 20, 2019. It is now read-only.

kovtunos/docker-apache-2.4

 
 

Repository files navigation

Notice: This project is part of the Dockerized Drupal initiative.

docker-apache-2.4

A Docker image for Apache HTTP Server version 2.4.

Run the container

CONTAINER="apache-data" && sudo docker run \
  --name "${CONTAINER}" \
  -h "${CONTAINER}" \
  -v /apache/data \
  -v /apache/ssl \
  --entrypoint /bin/echo \
  dockerizedrupal/apache-2.4:1.2.3 "Data-only container for Apache."

CONTAINER="apache" && sudo docker run \
  --name "${CONTAINER}" \
  -h "${CONTAINER}" \
  -p 80:80 \
  -p 443:443 \
  --volumes-from apache-data \
  -e SERVER_NAME="localhost" \
  -e DOCUMENT_ROOT="/apache/data" \
  -e TIMEZONE="Etc/UTC" \
  -e TIMEOUT="300" \
  -e PROTOCOLS="https,http" \
  -e INDEXES="Off" \
  -e KERBEROS_DEFAULT_REALM="" \
  -e KERBEROS_1_REALM="" \
  -e KERBEROS_1_DOMAIN="" \
  -e KERBEROS_1_KDC="" \
  -e KERBEROS_1_ADMIN_SERVER="" \
  -e HSTS="Off" \
  -e HSTS_MAX_AGE="31536000" \
  -e HSTS_PRELOAD="Off" \
  -e HSTS_INCLUDE_SUBDOMAINS="Off" \
  -e HTTP_BASIC_AUTH="Off" \
  -e HTTP_BASIC_AUTH_USERNAME="container" \
  -e HTTP_BASIC_AUTH_PASSWORD="" \
  -e ESTEID="Off" \
  -e ESTEID_CA_REVOCATION_LIST="Off" \
  -e ESTEID_URL="" \
  -e USER_ID="" \
  -e GROUP_ID="" \
  -d \
  dockerizedrupal/apache-2.4:1.2.3

Build the image

TMP="$(mktemp -d)" \
  && git clone https://github.com/dockerizedrupal/docker-apache-2.4.git "${TMP}" \
  && cd "${TMP}" \
  && git checkout 1.2.3 \
  && sudo docker build -t dockerizedrupal/apache-2.4:1.2.3 . \
  && cd -

Changing the container behaviour on runtime through environment variables

// TODO

Tests

Tests are implemented in Bats: Bash Automated Testing System.

Test results for the current release

1..13
ok 1 apache-2.4: freetds: KERBEROS_DEFAULT_REALM
ok 2 apache-2.4: freetds: KERBEROS_1_REALM
ok 3 apache-2.4: freetds: KERBEROS_1_DOMAIN
ok 4 apache-2.4: freetds: KERBEROS_1_KDC
ok 5 apache-2.4: freetds: KERBEROS_1_ADMIN_SERVER
ok 6 apache-2.4: freetds: KERBEROS_2_REALM
ok 7 apache-2.4: freetds: KERBEROS_2_DOMAIN
ok 8 apache-2.4: freetds: KERBEROS_2_KDC
ok 9 apache-2.4: freetds: KERBEROS_2_ADMIN_SERVER
ok 10 apache-2.4: freetds: KERBEROS_3_REALM
ok 11 apache-2.4: freetds: KERBEROS_3_DOMAIN
ok 12 apache-2.4: freetds: KERBEROS_3_KDC
ok 13 apache-2.4: freetds: KERBEROS_3_ADMIN_SERVER

License

MIT

About

This project is part of the Dockerized Drupal initiative.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 53.9%
  • Puppet 26.6%
  • Shell 11.3%
  • ApacheConf 4.1%
  • JavaScript 3.9%
  • Ruby 0.2%