Repository navigation
MVP version - #1
Conversation
From the great work for https://hub.docker.com/_/wordpress/ and found in https://github.com/docker-library/wordpress/tree/ef064e49ebedfa12cf27e94c58b6ec103ae9b816/apache
Copying wholesale from Andy Skelton's great work in https://github.com/markjaquith/WordPress-Skeleton
There was a problem hiding this comment.
I'm thinking to use wp option get site url as the health test here. That will confirm the WP config is working, but won't test Apache at all. So, it has downsides. That said, I can run both tests.
There was a problem hiding this comment.
Implemented, but untested health.sh added.
www becomes var/www/html
Still needs Containerbuddy config
83d0c87 to
feec386
Compare
There was a problem hiding this comment.
I need to add logic from docker-entrypoint.sh here. See callout in #1 (comment)
| ``` | ||
| ### Configure your envrionment | ||
|
|
||
| Check that everything is configured correctly by running `./setup.sh`, you will need to pass the path of the ssh key you configured on your Joyent account with the `-k` flag. If it returns without an error you're all set. This script will create and `_env` file that includes the variables that you will need to run your WordPress envrionment. |
There was a problem hiding this comment.
There's no -k flag anymore.
| wp --allow-root theme activate $WORDPRESS_ACTIVE_THEME | ||
| fi | ||
|
|
||
| if [ $WORDPRESS_TEST_DATA ] |
There was a problem hiding this comment.
I don't think this conditional works as expect. Either way, the content doesn't get imported when WORDPRESS_TEST_DATA=true is set in the _env.
There was a problem hiding this comment.
really this isn't working? I've run that import many times by setting the value in _env file. I'll run a test and see what it does.
I did run into some issues testing for "true" vs "True" in bash, so this conditional ended up testing the existance of $WORDPRESS_TEST_DATA at all and importing if it does exist. Could probably be done better.
There was a problem hiding this comment.
yeah this is definitely not working, odd that it had worked for me in the past. I've got a fix incoming today.
…PRESS_TEST_DATA updating setup.sh to use nginx CNS url for WordPress URL
fixed contitionals in prestart.sh for active theme and test data import
| WORDPRESS_ADMIN_PASSWORD=<random string> | ||
| WORDPRESS_ACTIVE_THEME=twentysixteen | ||
| WORDPRESS_CACHE_KEY_SALT=<random string> | ||
| #WORDPRESS_TEST_DATA=true # uncomment to import a collection of test content on start |
There was a problem hiding this comment.
We should should add a note about the source of the test data in the text below.
There was a problem hiding this comment.
Note added at the bottom of the section
|
|
||
| A running cluster includes the following components: | ||
|
|
||
| - [ContainerPilot](https://www.joyent.com/containerpilot): included in our MySQL containers orchestrate bootstrap behavior and coordinate replication using keys and checks stored in Consul in the `preStart`, `health`, and `onChange` handlers. |
There was a problem hiding this comment.
nitpick: I think we've dropped a word here:
included in our MySQL containers orchestrate bootstrap behavior ...
"to" maybe?
|
Couple minor comments on the README... otherwise LGTM! |
A working WordPress composition with an easy "hello world" demo experience. Look at the readme.md for the best description of what's included and how it works.
To do in future projects:
privilegedrequirement1 Support Multisite, maybe