mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 13:14:05 +00:00
contrib/git-sync/demo: fix README, add license header
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user