Skip to content

play jekyll without install ruby and jekyll on your computer

License

Notifications You must be signed in to change notification settings

oh-my-docker/jekyll-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jekyll-docker

Docker Repository on Quay

Play jekyll without install ruby and jekyll on your computer

docker pull quay.io/omd/jekyll

Create a new site

Create a new site called my-awesome-site then go to this folder and run:

$ cd my-awesome-site
$ docker run -it --rm -v $(pwd):/omd quay.io/omd/jekyll jekyll new .

The site was created.

$ my-awesome-site ls
404.html       Gemfile        Gemfile.lock   _config.yml    _posts         about.markdown index.markdown
$ my-awesome-site

Build and serve the site

$ pwd
/home/xxxxx/my-awesome-site
$ docker run -it --rm -p 4000:4000  -v $(pwd):/omd quay.io/omd/jekyll sh -c "bundle install; jekyll serve --host=0.0.0.0 --livereload"

open the browser and go to http://127.0.0.1:4000/ and we will see:

image

Welcome to subcribe MY WeChat official account

欢迎大家订阅我的公众号,会不定期分享一些容器,网络,和编程相关技术文章。

QR

About

play jekyll without install ruby and jekyll on your computer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published