rhoepner/wordpress-test

By rhoepner

Updated almost 7 years ago

Image
0

180

rhoepner/wordpress-test repository overview

WordPress Image based on bitnami/wordpress only used to test a WordPress REST API client written in Java. Add's and activates the basic auth plugin.

Dockerfile

FROM bitnami/wordpress
LABEL maintainer "RedTecLab <[email protected]>"

ADD plugins/basic-auth /opt/bitnami/wordpress/wp-content/plugins/basic-auth
ADD app-entrypoint.sh /app-entrypoint.sh

app-entrypoint.sh

#!/bin/bash -e

. /opt/bitnami/base/functions
. /opt/bitnami/base/helpers

print_welcome_page

if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "httpd" ]]; then
  . /apache-init.sh
  . /wordpress-init.sh
  nami_initialize apache php mysql-client wordpress
  wp plugin activate basic-auth --path=/opt/bitnami/wordpress --allow-root
  info "Starting wordpress... "
fi

exec tini -- "$@"

The single file BasicAuth plugin can be found here: https://github.com/WP-API/Basic-Auth

Tag summary

Content type

Image

Digest

Size

131.6 MB

Last updated

almost 7 years ago

docker pull rhoepner/wordpress-test:5