Skip to content

Commit f12d9fa

Browse files
committed
Add instructions for running locally using docker
1 parent 1affa47 commit f12d9fa

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.bundler/keep

Whitespace-only changes.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
_site/*
22
.idea/
33
.sass-cache
4+
.bundler/

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ To make changes to the template itself, a good place to start is the [`_layouts`
77

88
Questions? Ask on P2PU's [Community Forum](https://community.p2pu.org/c/tech/course-in-a-box/78).
99

10+
# Running locally
11+
- install docker
12+
- create a directory called .bundler
13+
- Run `docker run -i -t --rm -u 1000:1000 -p 4000:4000 -v `pwd`:/opt/app -v `pwd`/.bundler/:/opt/bundler -e BUNDLE_PATH=~/opt/bundler -w /opt/app ruby:2.7 bash -c "bundle install && bundle exec jekyll serve --watch -H 0.0.0.0"`
14+
1015
---
1116
Course-in-a-Box was built by [Peer 2 Peer University](https://www.p2pu.org) using the [P2PU Jekyll course template](https://github.com/p2pu/jekyll-course-template) and shared under an MIT License.
1217

0 commit comments

Comments
 (0)