diff --git a/README.md b/README.md index 5a0d409..c6ddc2d 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,13 @@ Docker makes it easy for you to test Jekyll Pages ## Build Jekyll Page -build locally +set the version before running the build locally + +there is this official [builder image](https://github.com/envygeeks/jekyll-docker#readme) + +```bash +VERSION="3.8.6" +``` - Install Docker. [Docker installation instructions](https://docs.docker.com/get-docker/) - Go to the directory where you have the source code of the site @@ -97,10 +103,18 @@ build locally docker run --rm -it --volume="$PWD:/srv/jekyll" --volume="$PWD/vendor/bundle:/usr/local/bundle" \ --env VERBOSE=true \ --env JEKYLL_ENV=production \ - jekyll/jekyll:3.8 jekyll build + jekyll/jekyll:$VERSION jekyll build +``` + +### Bundler + +```bash +docker run --rm -it --volume="$PWD:/srv/jekyll" --volume="$PWD/vendor/bundle:/usr/local/bundle" \ + --env JEKYLL_ENV=production \ + jekyll/jekyll:$VERSION jekyll bundle install ``` -## Serve Page +## Serve Page locally :-)