Skip to content

MVP version - #1

Merged
misterbisson merged 83 commits into
masterfrom
progress
Apr 28, 2016
Merged

misterbisson merged 83 commits into
masterfrom
progress

Conversation

@misterbisson

@misterbisson misterbisson commented Dec 12, 2015 •

Copy link
Copy Markdown
Contributor

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:

  1. Eliminate the NFS container, or figure out how to get around the privileged requirement
  2. Implement ContainerPilot telemetry for all components
    1 Support Multisite, maybe
  3. Other stuff, I'm sure

Comment thread etc/wordpress.json Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implemented, but untested health.sh added.

Comment thread containerbuddy/onstart.sh Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to add logic from docker-entrypoint.sh here. See callout in #1 (comment)

Comment thread README.md Outdated
```
### 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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no -k flag anymore.

Comment thread bin/prestart.sh Outdated
wp --allow-root theme activate $WORDPRESS_ACTIVE_THEME
fi

if [ $WORDPRESS_TEST_DATA ]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah this is definitely not working, odd that it had worked for me in the past. I've got a fix incoming today.

Jason DeWitt and others added 6 commits April 27, 2016 16:18
Comment thread README.md
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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should should add a note about the source of the test data in the text below.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note added at the bottom of the section

Comment thread README.md Outdated

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: I think we've dropped a word here:

included in our MySQL containers orchestrate bootstrap behavior ...

"to" maybe?

@tgross

tgross commented Apr 28, 2016

Copy link
Copy Markdown

Couple minor comments on the README... otherwise LGTM!

@misterbisson
misterbisson merged commit 9435238 into master Apr 28, 2016
@misterbisson
misterbisson deleted the progress branch April 29, 2016 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants