GithubHelp home page GithubHelp logo

rmoorman / 12fakter-wordpress Goto Github PK

View Code? Open in Web Editor NEW

This project forked from paulczar/12fakter-wordpress

0.0 3.0 0.0 6.38 MB

12factorish wordpress using 12fakter

License: Other

Ruby 0.04% Shell 0.05% HTML 0.62% Nginx 0.01% PHP 72.28% CSS 13.42% JavaScript 13.57% ApacheConf 0.01%

12fakter-wordpress's Introduction

12Fakter Wordpress

Sort of but not quite 12 factor wordpress.

What does it do?

Utilizes Docker, CoreOS and Confd to provide a sort of but not quite 12 factor wordpress.

The included example application will now be available via a port mapping so that you can interact with it:

$ vagrant up
$ firefox http://localhost:8080

How it works ?

Vagrant spins up 3 coreos nodes, on the first node it spins up a docker registry and a mysql server ( caching both images for faster rebuilds ). It also builds a Wordpress Docker image that contains wordpress, and nginx+hhvm as well as confd ( and etcd ). A boot script sets up the environment including any default variables ( see bin/boot for variables that can be changed by passing -e into docker run) and finally calls Supervisord to run the necessary apps. All apps called by cond pass their stdout back to confd which passes it back out to stdout so that docker logs can see all activity.

Finally the wordpress container is started on each of the VMs utilizing environment variables to pass to confd to create a wp-config.php file with database paths etc and a volume mount is used to mount the Vagrant shared wordpress files into the containers. Obviously in a production environment you wouldn't have a docker volume share, but creating a shared filesystem in the cloud is not a hard problem to solve and can be do in a container which is then volume mounted to wordpress.

Author(s)

Paul Czarkowski ([email protected])

License

Copyright 2014 Paul Czarkowski

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

12fakter-wordpress's People

Contributors

paulczar avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.