contrib/git-sync/demo: fix README, add license header

This commit is contained in:
Johan Euphrosine
2015-02-02 18:05:26 -08:00
parent 19751abe13
commit 8873426314
2 changed files with 19 additions and 2 deletions

View File

@@ -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 <some-registry>/git-sync ..
docker build -t <some-registry>/hugo hugo/
docker push <some-registry>/hugo <some-registry>/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

View File

@@ -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