-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added instructions to use jekyl Docker #370
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but suggest removing your bio given it's to be added via another PR.
```bash | ||
cd <your_cloned_website_dir> | ||
export JEKYLL_VERSION=3.8 | ||
docker run --rm --volume="$PWD:/srv/jekyll" -it jekyll/jekyll:$JEKYLL_VERSION jekyll build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't get this working:
There was an error while trying to write to `/srv/jekyll/Gemfile.lock`. It is likely that you need to grant write permissions for that path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I re-run the procedure on OSX 10.15.7 and redhat 7.x and I do not get that error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, maybe it's just my machine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's because the guest process in the docker container is trying to write to /srv/jekyll/Gemfile.lock
, which is your pwd on the host. Docker doesn't necessarily have permission to do that, and it may depend how you've configured Docker. In any case, i'm not surprised that it varies according to host OS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, let's revisit if needs be.
@@ -0,0 +1,36 @@ | |||
--- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already got this content on the master
branch so suggest removing the file from this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tartarini If you remove this file from this PR we can get it merged.
@frb-yousefi Did you follow this guide? If so, did these instructions work for you? |
added a section to use the Jekyl docker container to build the site.
I have experienced a number of issued with my installation of macports OSX, so in case..