mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
Adding Jekyll container which includes very basic starter content
This commit is contained in:
parent
e4418b3767
commit
ebb4ee2214
1
jekyll-github-pages/.gitignore
vendored
Normal file
1
jekyll-github-pages/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/site
|
22
jekyll-github-pages/Dockerfile
Normal file
22
jekyll-github-pages/Dockerfile
Normal file
@ -0,0 +1,22 @@
|
||||
FROM ubuntu:trusty
|
||||
|
||||
MAINTAINER itzg
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get -y upgrade
|
||||
|
||||
RUN apt-get -y install ruby ruby-dev make patch
|
||||
RUN gem install bundler
|
||||
|
||||
ADD Gemfile /tmp/Gemfile
|
||||
WORKDIR /tmp
|
||||
RUN bundle install
|
||||
|
||||
ADD template /site-template
|
||||
|
||||
VOLUME ["/site"]
|
||||
EXPOSE 4000
|
||||
|
||||
ADD start.sh /start
|
||||
CMD ["/start"]
|
||||
|
2
jekyll-github-pages/Gemfile
Normal file
2
jekyll-github-pages/Gemfile
Normal file
@ -0,0 +1,2 @@
|
||||
source 'https://rubygems.org'
|
||||
gem 'github-pages'
|
14
jekyll-github-pages/README.md
Normal file
14
jekyll-github-pages/README.md
Normal file
@ -0,0 +1,14 @@
|
||||
This container is pre-configured according to the
|
||||
[GitHub Pages use of Jekyll](https://help.github.com/articles/using-jekyll-with-pages).
|
||||
|
||||
It serves up the generated content on port 4000 and the site is generated from
|
||||
the container's `/site` volume. You can either bring your own site content or
|
||||
let it generate some VERY simple content along with the standard Jekyll directory
|
||||
layout.
|
||||
|
||||
A typical way to run this:
|
||||
|
||||
docker run -it -p 4000:4000 -v $(pwd)/site:/site itzg/jekyll-github-pages
|
||||
|
||||
where either it will load your content or initialize the content under
|
||||
`site` in your current working directory.
|
13
jekyll-github-pages/start.sh
Executable file
13
jekyll-github-pages/start.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ `ls /site/index.* 2> /dev/null | wc -l` = 0 ]; then
|
||||
echo "Preparing /site with default content..."
|
||||
cp -r /site-template/* /site
|
||||
fi
|
||||
|
||||
if [ ! -e /site/Gemfile ]; then
|
||||
cp /tmp/Gemfile /site/Gemfile
|
||||
fi
|
||||
|
||||
cd /site
|
||||
bundle exec jekyll serve
|
0
jekyll-github-pages/template/_config.yml
Normal file
0
jekyll-github-pages/template/_config.yml
Normal file
3
jekyll-github-pages/template/_includes/footer.html
Normal file
3
jekyll-github-pages/template/_includes/footer.html
Normal file
@ -0,0 +1,3 @@
|
||||
<footer>
|
||||
<i>Goodbye</i>
|
||||
</footer>
|
3
jekyll-github-pages/template/_includes/header.html
Normal file
3
jekyll-github-pages/template/_includes/header.html
Normal file
@ -0,0 +1,3 @@
|
||||
<header>
|
||||
<h1>{{ page.title }}</h1>
|
||||
</header>
|
18
jekyll-github-pages/template/_includes/top.html
Normal file
18
jekyll-github-pages/template/_includes/top.html
Normal file
@ -0,0 +1,18 @@
|
||||
<!doctype html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>{{ page.title }}</title>
|
||||
|
||||
<!-- Latest compiled and minified CSS -->
|
||||
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
|
||||
|
||||
<!-- Optional theme -->
|
||||
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
|
||||
|
||||
<!-- Latest compiled and minified JavaScript -->
|
||||
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
|
||||
</head>
|
12
jekyll-github-pages/template/_layouts/default.html
Normal file
12
jekyll-github-pages/template/_layouts/default.html
Normal file
@ -0,0 +1,12 @@
|
||||
{% include top.html %}
|
||||
|
||||
<body>
|
||||
|
||||
{% include header.html %}
|
||||
|
||||
{{ content }}
|
||||
|
||||
{% include footer.html %}
|
||||
|
||||
</body>
|
||||
</html>
|
6
jekyll-github-pages/template/index.html
Normal file
6
jekyll-github-pages/template/index.html
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
layout: default
|
||||
title: Powered by Jekyll
|
||||
overview: true
|
||||
---
|
||||
This is where the content goes.
|
Loading…
Reference in New Issue
Block a user