-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add instructions for using docker to run local/dev version of site
- Loading branch information
1 parent
e8e997f
commit 97fd2b3
Showing
2 changed files
with
16 additions
and
2 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 |
---|---|---|
|
@@ -13,7 +13,21 @@ To install this site locally run the following commands: | |
|
||
The site should now be running on localhost port 4000. Changes to files will show up interactively on localhost:4000 | ||
|
||
**Note:** The _config.yml file is only read during the initial serve, changing this file will require re-running step 4 for changes to appear. | ||
**Note:** The _config.yml and _config_dev.yml files are only read during the initial serve, changing these files will require re-running step 4 for changes to appear. | ||
|
||
## Docker Installation | ||
|
||
To install the site locally with docker run the following commands: | ||
|
||
1. Clone the repo `$ git clone [email protected]:griffithlab/griffithlab.org.git` | ||
2. Pull the docker image `$ docker pull griffithlab/griffithlabdev:0.0.1` | ||
3. Run the docker `$ docker run -p 4000:4000 -v ~/git/griffithlab.org/:/opt/git/griffithlab.org -it griffithlab/griffithlabdev:0.0.2` | ||
|
||
Make sure that the above command has correct path to cloned git repo (The first part specified with -v option). The site should now be running on localhost port 4000. Changes to files will show up interactively on localhost:4000. | ||
|
||
**Note:** The Dockerfile for this image is maintained in [this repo](https://github.com/griffithlab/griffithlab.org/blob/master/docker/) and the image itself is hosted on [dockerhub](https://hub.docker.com/r/griffithlab/griffithlabdev). | ||
|
||
**Note:** The _config.yml and _config_dev.yml files are only read during the initial serve, changing this file will require re-running step 3 for changes to appear. | ||
|
||
## License | ||
|
||
|
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