forked from wordpress-clients/hybrid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
73 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM node:0.10.38 | ||
MAINTAINER Julien Renaux <[email protected]> | ||
RUN mkdir /wphc | ||
|
||
ENV HOST 0.0.0.0 | ||
EXPOSE 8080 | ||
|
||
WORKDIR /wphc | ||
ADD . /wphc | ||
|
||
RUN \ | ||
npm install -g [email protected] # && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
## Installation | ||
You have the choice to install WPHC directly on your machine (node, npm, bower are required) or you can install WPHC via bower with no other preriquisites than Docker itself. | ||
|
||
NB: The following installation was made for OSX and Linux (Debian/Ubuntu). There is no Windows support. | ||
## Local Installation | ||
|
||
### Preriquisites | ||
|
||
* NodeJS | ||
* NPM | ||
* Bower | ||
|
||
### Clone repository | ||
|
||
|
@@ -15,10 +16,50 @@ git clone [email protected]:shprink/wordpress-hybrid-client.git | |
|
||
### Run install.sh | ||
|
||
The installation will not install anything globally to avoid potential version conflicts. | ||
|
||
``` | ||
sh ./install.sh | ||
``` | ||
|
||
## Docker Installation | ||
|
||
### Preriquisites | ||
|
||
* Docker | ||
|
||
Install [Docker](https://www.docker.com/) on your system. | ||
|
||
* [Install instructions](https://docs.docker.com/installation/mac/) for Mac OS X | ||
* [Install instructions](https://docs.docker.com/installation/ubuntulinux/) for Ubuntu Linux | ||
* [Install instructions](https://docs.docker.com/installation/) for other platforms | ||
|
||
### Pull images | ||
|
||
``` | ||
Docker pull shprink/wphc | ||
``` | ||
|
||
### Run | ||
|
||
``` | ||
docker run -it -v /local/path/to/wordpress-hybrid-client:/wphc shprink/wphc bash | ||
``` | ||
|
||
Now you should be inside you docker, try listing folders to make sure they are accessible: | ||
|
||
``` | ||
root@c5d7db4eaf05:/wphc$ ls -la | ||
``` | ||
|
||
You should see the WPHC files listed. If not and using boot2docker please read this <https://gist.github.com/codeinthehole/7ea69f8a21c67cc07293> | ||
|
||
You are now ready to install WPHC: | ||
|
||
``` | ||
root@c5d7db4eaf05:/wphc$ sh ./install.sh | ||
``` | ||
|
||
### Config files | ||
|
||
Now that the installation is done two files | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
web: | ||
build: . | ||
ports: | ||
- ":8080" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters