Move staging container to gcr, check in Dockerfile.

This commit is contained in:
Jeff Mendoza
2016-09-20 10:17:53 -07:00
parent b4b944b785
commit 6d4ea99b12
3 changed files with 19 additions and 6 deletions
+2 -2
View File
@@ -21,11 +21,11 @@ Don't like installing stuff? Download and run a local staging server with a sing
git clone https://github.com/kubernetes/kubernetes.github.io.git git clone https://github.com/kubernetes/kubernetes.github.io.git
cd kubernetes.github.io cd kubernetes.github.io
docker run -ti --rm -v "$PWD":/k8sdocs -p 4000:4000 johndmulhausen/k8sdocs docker run -ti --rm -v "$PWD":/k8sdocs -p 4000:4000 gcr.io/google-samples/k8sdocs:1.0
Then visit [http://localhost:4000](http://localhost:4000) to see our site. Any changes you make on your local machine will be automatically staged. Then visit [http://localhost:4000](http://localhost:4000) to see our site. Any changes you make on your local machine will be automatically staged.
If you're interested you can view [the Dockerfile for this image](https://gist.github.com/johndmulhausen/f8f0ab8d82d2c755af3a4709729e1859). If you're interested you can view [the Dockerfile for this image](https://github.com/kubernetes/kubernetes.github.io/blob/master/staging-container/Dockerfile).
## Staging the site locally (from scratch setup) ## Staging the site locally (from scratch setup)
+1 -1
View File
@@ -44,7 +44,7 @@ One option is to simply rename your fork's repo on GitHub.com to `yourusername.g
Or, just use Docker! Run this from within your local `kubernetes.github.io` directory and you should be good: Or, just use Docker! Run this from within your local `kubernetes.github.io` directory and you should be good:
```shell ```shell
docker run -ti --rm -v "$PWD":/k8sdocs -p 4000:4000 johndmulhausen/k8sdocs docker run -ti --rm -v "$PWD":/k8sdocs -p 4000:4000 gcr.io/google-samples/k8sdocs:1.0
``` ```
The site will then be viewable at [http://localhost:4000/](http://localhost:4000/). The site will then be viewable at [http://localhost:4000/](http://localhost:4000/).
+13
View File
@@ -0,0 +1,13 @@
FROM starefossen/ruby-node:2-4
RUN gem install github-pages
VOLUME /k8sdocs
EXPOSE 4000
WORKDIR /k8sdocs
CMD bundle && jekyll clean && jekyll serve -H 0.0.0.0 -P 4000
# For instructions, see http://kubernetes.io/editdocs/