Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/bin/bash -ex | |
export HELM_HOME="/tmp/helm3" | |
mkdir -p "${HELM_HOME}/bin" | |
rm -f helm-release.tar.gz | |
wget -O helm-release.tar.gz https://get.helm.sh/helm-v3.0.0-alpha.1-darwin-amd64.tar.gz | |
if [[ "$(openssl dgst -sha256 helm-release.tar.gz | awk '{print $2}')" != "w562e5bbb5b8b8a6a46c080970c1fea35ff908a1402f56e5d4c8f327c9ff4835" ]]; then | |
echo "checksum does not match" | |
exit 1 |
#!/bin/bash -ex | |
export HELM_HOME="/tmp/helm3" | |
mkdir -p "${HELM_HOME}/bin" | |
rm -f helm-release.tar.gz | |
wget -O helm-release.tar.gz https://get.helm.sh/helm-v3.0.0-alpha.1-darwin-amd64.tar.gz | |
if [[ "$(openssl dgst -sha256 helm-release.tar.gz | awk '{print $2}')" != "f562e5bbb5b8b8a6a46c080970c1fea35ff908a1402f56e5d4c8f327c9ff4835" ]]; then | |
echo "checksum does not match" | |
exit 1 |
#!/bin/bash -ex | |
CLUSTER_NAME=${CLUSTER_NAME:-mycluster} | |
go get -u sigs.k8s.io/kind | |
kind delete cluster --name=$CLUSTER_NAME || true | |
kind create cluster --name=$CLUSTER_NAME | |
SET_KUBE_CMD="export KUBECONFIG="$(kind get kubeconfig-path --name="$CLUSTER_NAME")"" | |
$SET_KUBE_CMD |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
package main | |
import ( | |
"context" | |
"fmt" | |
"io/ioutil" | |
"os" | |
"github.com/containerd/containerd/content/local" | |
"github.com/containerd/containerd/images" |
<html> | |
<head> | |
</head> | |
<body> | |
<script> | |
alert('hello world'); | |
</script> | |
</body> | |
</html> |
I hereby claim:
To claim this, I am signing this object:
version: '1.0' | |
steps: | |
get_tiller_version: | |
title: Determine Tiller version | |
image: codefresh/cfstep-helm:latest | |
commands: | |
- cf_export TILLER_VERSION=$(helm --kube-context "$KUBE_CONTEXT" version --template={{.Server.SemVer}} | cut -c2-) | |
install_chart: | |
title: Install HackMD chart into cluster | |
image: codefresh/cfstep-helm:${{TILLER_VERSION}} |
version: '1.0' | |
steps: | |
fetch_community_chart: | |
title: Download latest HackMD chart | |
image: codefresh/cfstep-helm:latest | |
commands: | |
- helm fetch stable/hackmd --untar | |
push_to_helm_repo: | |
title: Push HackMD chart to Helm repo | |
image: codefresh/cfstep-helm:latest |