Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robbert/docker-wordpress-osx
https://github.com/robbert/docker-wordpress-osx
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/robbert/docker-wordpress-osx
- Owner: Robbert
- Created: 2014-11-25T11:59:37.000Z (almost 10 years ago)
- Default Branch: centos6
- Last Pushed: 2014-11-27T20:56:11.000Z (almost 10 years ago)
- Last Synced: 2023-03-12T07:24:16.819Z (over 1 year ago)
- Language: Shell
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
dockerfiles-centos-wordpress
========================Tested on Docker 1.3.2
This repo contains a recipe for making a [Docker](http://docker.io) container for [WordPress](https://github.com/WordPress/WordPress), using Linux, Apache and MySQL on CentOS6.
To build, make sure you have Docker [installed](http://www.docker.io/gettingstarted/), clone this repo somewhere, and then run:
```
# docker build --rm -t /wordpress:centos6 .
```Run it:
```
# CID=$(docker run -d -p 80 -p 22 /wordpress:centos6)
```Check docker logs after running to see MySQL root password and Wordpress MySQL password, as so:
```
# echo "$(docker logs $CID | grep password)"
```(note: you won't need the mysql root or the wordpress db password normally)
Then find the external port assigned to your container:
```
# docker port $CID 80
```Visit in a webrowser, then fill out the form. No need to mess with wp-config.php, it's been auto-generated with proper values.
Note that this image now has a user account (appropriately named "user") and passwordless sudo for that user account. The password is generated upon startup; check logs for "ssh user password", docker ps for the port assigned to 22, and something like this to get in:
```
# ssh -p user@localhost
```## Acknowledgements
Forked via:
- https://github.com/jbfink/docker-wordpress
- https://github.com/CentOS/CentOS-Dockerfiles/tree/master/wordpress/centos6