2019-07-22 02:16:23 +00:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
jekyll-serve:
|
|
|
|
container_name: jekyll-serve
|
|
|
|
image: jekyll/jekyll
|
|
|
|
command: jekyll serve --future --draft --force_polling --livereload
|
|
|
|
# command: bash -c "bundle install && bundle exec jekyll serve --watch --incremental --future --draft --force_polling --livereload"
|
|
|
|
environment:
|
|
|
|
JEKYLL_ENV: local
|
|
|
|
# network_mode: host
|
|
|
|
ports:
|
|
|
|
- 4000:4000
|
|
|
|
- 35729:35729
|
|
|
|
volumes:
|
|
|
|
- .:/srv/jekyll
|
|
|
|
|
|
|
|
jekyll:
|
|
|
|
container_name: jekyll
|
|
|
|
image: jekyll/jekyll
|
|
|
|
entrypoint: jekyll
|
|
|
|
environment:
|
|
|
|
JEKYLL_ENV: local
|
|
|
|
volumes:
|
|
|
|
- .:/srv/jekyll
|
|
|
|
|
|
|
|
gem-build:
|
|
|
|
container_name: jekyll-gem-build
|
|
|
|
image: jekyll/jekyll
|
2019-07-22 03:33:03 +00:00
|
|
|
command: bash -c "gem build jekyll-theme-isabelline.gemspec"
|
2019-07-22 02:16:23 +00:00
|
|
|
volumes:
|
|
|
|
- .:/srv/jekyll
|
|
|
|
|
|
|
|
gem-push:
|
|
|
|
container_name: jekyll-gem-push
|
|
|
|
image: jekyll/jekyll
|
2019-07-22 03:33:03 +00:00
|
|
|
command: >
|
|
|
|
bash -c "
|
|
|
|
ruby -e 'require \"rubygems\"; spec = Gem::Specification::load(\"jekyll-theme-isabelline.gemspec\"); puts \"GEM_VERSION=#{spec.version}\"' > .env \
|
|
|
|
&& gem build jekyll-theme-isabelline.gemspec \
|
|
|
|
&& gem push jekyll-theme-isabelline-${GEM_VERSION}.gem
|
|
|
|
"
|
2019-07-22 02:16:23 +00:00
|
|
|
volumes:
|
|
|
|
- .:/srv/jekyll
|
|
|
|
|
|
|
|
gem:
|
|
|
|
container_name: jekyll-gem
|
|
|
|
image: jekyll/jekyll
|
|
|
|
entrypoint: gem
|
|
|
|
volumes:
|
|
|
|
- .:/srv/jekyll
|
|
|
|
|
|
|
|
bundle:
|
|
|
|
container_name: jekyll
|
|
|
|
image: jekyll/jekyll
|
|
|
|
entrypoint: bundle
|
|
|
|
volumes:
|
|
|
|
- .:/srv/jekyll
|