Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
Adding initial version of run-k8s-istio-openstack-full-demo.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
ruzickap committed Feb 6, 2019
1 parent 20dd048 commit 65dc175
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions run-k8s-istio-demo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#!/usr/bin/env bash

################################################
# include the magic
################################################
test -f ./demo-magic.sh || curl --silent https://raw.githubusercontent.com/paxtonhare/demo-magic/master/demo-magic.sh > demo-magic.sh
. ./demo-magic.sh -n

################################################
# Configure the options
################################################

#
# speed at which to simulate typing. bigger num = faster
#
TYPE_SPEED=40

# Uncomment to run non-interactively
export PROMPT_TIMEOUT=1

# No wait
export NO_WAIT=true

#
# custom prompt
#
# see http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/bash-prompt-escape-sequences.html for escape sequences
#
#DEMO_PROMPT="${GREEN}➜ ${CYAN}\W "
DEMO_PROMPT="${GREEN}${CYAN}$ "

# hide the evidence
clear

sed -n '/^```bash$/,/^```$/p;/^-----$/p' README.md | \
sed -n '/^test -d files/,$p' | sed '1s/^/```bash\n/' | \
sed -e 's/^-----$/\
p ""\
p "################################################################################################### Press <ENTER> to continue"\
wait\
/' \
-e 's/^```bash$/\
pe '"'"'/' \
-e 's/^```$/'"'"'/' \
> README.sh


source README.sh

0 comments on commit 65dc175

Please sign in to comment.