Fix docker (#6013)

* update docker stuff

* finalize docker fix
This commit is contained in:
Jo David 2018-01-03 20:31:30 +01:00 committed by GitHub
parent 71909a9be3
commit 9e14a73b3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 29 deletions

View File

@ -1,17 +1,6 @@
# Build: FROM phpcommunity/github-pages
# docker build -t ace3mod/jekyll . LABEL maintainer "bux"
#
# Run:
# docker run -it -p 4000:4000 -v $(pwd):/usr/src/app ace3mod/jekyll
#
# Run with --incremental flag:
# docker run -it -p 4000:4000 -v $(pwd):/usr/src/app ace3mod/jekyll --incremental
FROM starefossen/github-pages:latest COPY ./entrypoint.sh /usr/src/app
MAINTAINER bux
COPY . /usr/src/app ENTRYPOINT ["./entrypoint.sh"]
VOLUME "/usr/src/app"
ENTRYPOINT ["jekyll", "serve", "--future", "--config", "_config_dev.yml", "-H", "0.0.0.0", "-P", "4000"]

View File

@ -1,8 +1,2 @@
source 'http://rubygems.org' source 'https://rubygems.org'
#require 'json'
#require 'open-uri'
#versions = JSON.parse(open('http://pages.github.com/versions.json').read)
gem 'github-pages' gem 'github-pages'
#, versions['github-pages']

View File

@ -36,7 +36,7 @@ lsi: false
exclude: [src, .editorconfig, .gitignore, CNAME, Gemfile, Gemfile.lock, README.md] exclude: [src, .editorconfig, .gitignore, CNAME, Gemfile, Gemfile.lock, README.md]
gems: plugins:
- jekyll-redirect-from - jekyll-redirect-from
whitelist: whitelist:

View File

@ -1,5 +1,3 @@
#baseurl: /ACE3
name: ACE3 name: ACE3
description: ACE3 is a joint effort by the teams behind ACE 2, AGM and CSE to improve the realism and authenticity of Arma 3. description: ACE3 is a joint effort by the teams behind ACE 2, AGM and CSE to improve the realism and authenticity of Arma 3.
keywords: Advanced Combat Enhancement 3, ACE, ACE3, Arma, Arma 3, Mod, Modification, Realism, AGM, CSE, Bohemia, Interactive keywords: Advanced Combat Enhancement 3, ACE, ACE3, Arma, Arma 3, Mod, Modification, Realism, AGM, CSE, Bohemia, Interactive
@ -38,7 +36,7 @@ lsi: false
exclude: [src, .editorconfig, .gitignore, CNAME, Gemfile, Gemfile.lock, README.md] exclude: [src, .editorconfig, .gitignore, CNAME, Gemfile, Gemfile.lock, README.md]
gems: plugins:
- jekyll-redirect-from - jekyll-redirect-from
whitelist: whitelist:

View File

@ -1,9 +1,13 @@
version: '2' version: "3.2"
services: services:
docs: docs:
build: . container_name: ace3mod_jekyll
restart: always build:
context: .
dockerfile: Dockerfile
environment:
- JEKYLLARGS=--incremental
ports: ports:
- "4000:4000" - "4000:4000"
volumes: volumes:

3
docs/entrypoint.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
jekyll serve --future --config _config_dev.yml -H 0.0.0.0 -P 4000 ${JEKYLLARGS}