Skip to content

Commit 5493418

Browse files
committed
Make the container build instructions more reproducible
Add --distribution so that it will use the .lock file contents, otherwise with the latest fedora:latest container it fails with a bunch of complaints. Add vendor to the _config.yml so that jekyll doesn't think it's part of your site and try to parse things it shouldn't.
1 parent ea46a56 commit 5493418

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ Gemfile
88
Gemfile.lock
99
node_modules
1010
package.json
11+
vendor

StyleGuide.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ your user id (so that you can edit from within the container without making ever
99

1010
sudo docker build -t weldr/jekyll .
1111
sudo docker run -it --name=jekyll --security-opt="label=disable" -v "$PWD:/weldr.io/" --env LOCAL_UID=`id -u` -p 4000:4000 weldr/jekyll /usr/bin/bash
12-
bundle install --binstubs=/tmp/bin/
12+
bundle install --binstubs=/tmp/bin/ --deployment
1313
bundle exec /tmp/bin/jekyll serve --host=0.0.0.0 --incremental
1414

1515
...then just open http://localhost:4000/ and you're off. On subsequent runs you can reuse the container with:

_config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,6 @@ exclude:
8989
- README.md
9090
- CNAME
9191
- StyleGuide.md
92+
- vendor
9293

9394
theme: jekyll-theme-hacker

0 commit comments

Comments
 (0)