From 88734263141b50309f1ec0c4a6122a5c544a299a Mon Sep 17 00:00:00 2001 From: Johan Euphrosine Date: Mon, 2 Feb 2015 18:05:26 -0800 Subject: [PATCH] contrib/git-sync/demo: fix README, add license header --- contrib/git-sync/demo/README.md | 6 ++++-- contrib/git-sync/demo/hugo/run-hugo | 15 +++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/contrib/git-sync/demo/README.md b/contrib/git-sync/demo/README.md index b458135bfd9..e2a72465b56 100644 --- a/contrib/git-sync/demo/README.md +++ b/contrib/git-sync/demo/README.md @@ -13,16 +13,18 @@ The pod is composed of 3 containers that share directories using 2 volumes: ## Usage Build the demo containers, and push them to a registry -`` + +``` docker build -t /git-sync .. docker build -t /hugo hugo/ docker push /hugo /git-sync ``` Create the pod and the service for the blog + ``` kubectl pods create config/pod.html kubectl services create config/pod.html ``` -Open the external ip in your browser +Open the service external ip in your browser diff --git a/contrib/git-sync/demo/hugo/run-hugo b/contrib/git-sync/demo/hugo/run-hugo index c90daa85e25..37636025523 100755 --- a/contrib/git-sync/demo/hugo/run-hugo +++ b/contrib/git-sync/demo/hugo/run-hugo @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -ex if [ ! -d ${SRC}/themes ]; then ln -s /themes ${SRC}/themes