mirror of https://github.com/helm/helm
Additional scripts, changes in Makefile and circleci config required to run dind clusterpull/2846/head
parent
0b007ef0ac
commit
7d694f16d1
@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Copyright 2017 The Kubernetes Authors 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.
|
||||||
|
|
||||||
|
scripts/portforward.sh 8080&
|
||||||
|
|
||||||
|
wget https://cdn.rawgit.com/Mirantis/kubeadm-dind-cluster/master/fixed/dind-cluster-v1.7.sh
|
||||||
|
chmod +x dind-cluster-v1.7.sh
|
||||||
|
RUN_ON_BTRFS_ANYWAY=trololo bash -x ./dind-cluster-v1.7.sh up
|
||||||
|
export PATH="$HOME/.kubeadm-dind-cluster:$PATH"
|
@ -0,0 +1,27 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
set -o nounset
|
||||||
|
set -o pipefail
|
||||||
|
set -o xtrace
|
||||||
|
|
||||||
|
IMAGE_REPO=${IMAGE_REPO:-gcr.io/kubernetes-helm/tiller}
|
||||||
|
IMAGE_TAG=${IMAGE_TAG:-canary}
|
||||||
|
TMP_IMAGE_PATH=${TMP_IMAGE_PATH:-/tmp/image.tar}
|
||||||
|
NODE_PATTERN=${NODE_PATTERN:-"kube-node-"}
|
||||||
|
|
||||||
|
|
||||||
|
function import-image {
|
||||||
|
docker save ${IMAGE_REPO}:${IMAGE_TAG} -o "${TMP_IMAGE_PATH}"
|
||||||
|
|
||||||
|
for node in `docker ps --format "{{.Names}}" | grep ${NODE_PATTERN}`;
|
||||||
|
do
|
||||||
|
docker cp "${TMP_IMAGE_PATH}" $node:/image.tar
|
||||||
|
docker exec -ti "$node" docker load -i /image.tar
|
||||||
|
done
|
||||||
|
|
||||||
|
set +o xtrace
|
||||||
|
echo "Finished copying docker image to dind nodes"
|
||||||
|
}
|
||||||
|
|
||||||
|
import-image
|
Loading…
Reference in new issue