Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.
/ paseowp Public archive

Paseo Wordpress multi-site for church, daycare and family sites

Notifications You must be signed in to change notification settings

Nziswano/paseowp

Repository files navigation

Multi-site Wordpress Docker Image

  • Access wordpress instance via REST API
  • Uses composer.json to manage the wordpress code.

Wordpress Settings

  • define('DB_HOST', ':/var/lib/mysql/mysql.sock');
  • Generate a salt md5 -s "random salt again nonce_in my_kcy"

Build a Wordpress Image

Build Docker file

  • Build with argument - We pass in the github auth token currently stored in .env file
  • export GITHUB_AUTH='{"github-oauth":{"github.com": "xxx"}}'
  • export DOCKER_BUILDKIT=1
  • docker build --build-arg GITHUB_AUTH -t paseo:wordpress .

Push image to AWS ECR Repository

aws ecr get-login-password --region eu-central-1 | docker login --username AWS --password-stdin {ecr}.dkr.ecr.eu-central-1.amazonaws.com/paseo
docker tag paseo:wordpress {ecr}.dkr.ecr.eu-central-1.amazonaws.com/paseo:wordpress
docker push {ecr}.dkr.ecr.eu-central-1.amazonaws.com/paseo:wordpress

Build with Microsoft Azure Devops

  • Command line client
    • docker run -it mcr.microsoft.com/azure-cli

Azure Pipelines