generated from elasticdotventures/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tests.sh
executable file
·130 lines (95 loc) · 3.43 KB
/
tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#!/bin/bash
##* * * *\\
#* Purpose:
#* boot-strap common bash libraries
#* access Azure
##* * * *//
# docker run -d -it --name azcli --mount type=bind,source="/c0de",target=/c0de
# 🍰 https://stackoverflow.com/questions/192319/how-do-i-know-the-script-file-name-in-a-bash-script
# 🍰 https://www.shell-tips.com/bash/environment-variables/
# ------------- SCRIPT ------------- #
#echo
#echo "# arguments called with ----> ${@} "
#echo "# \$1 ----------------------> $1 "
#echo "# \$2 ----------------------> $2 "
#echo "# path to me ---------------> ${0} "
#echo "# parent path --------------> ${0%/*} "
#echo "# my name ------------------> ${0##*/} "
#echo
# ------------- CALLED ------------- #
#* 进口v2 🥾 ALWAYS load c0re Libraries!
source "./_b00t_.bashrc"
# verify docker has buildx
# docker buildx version
# github.com/docker/buildx v0.5.1-docker 11057da37336192bfc57d81e02359ba7ba848e4a
if [ -z "$AZURE_TENANT_ID" ] ; then
azure
read -p '🤖 Azure TENANT_ID: ' AZURE_TENANT_ID
fi
# 7e8f7eda-7eff-483f-a415-77241728783b
#AZ_RESOURCE_ID=
#select character in Sheldon Leonard Penny Howard Raj
#do
# echo "Selected character: $character"
# echo "Selected number: $REPLY"
#done
#this will setup your local instance with boot.
motd
echo "then something like this ... "
echo "
Project: $project
type of environment
😁 welcome: new user / tutorial
🌌 config: config a project
☠️ deploy: deploy a project
"
exit
## 进口 (Jìnkǒu :: Import/Load PHASE 1 * \\
# _b00t_ Bin shell & helpers, logging.
bash_source_加载 "$_B00T_C0DE_Path/./bash.🔨/init.*.🥾.*.sh"
## 进口 (Jìnkǒu :: Import/Load) PHASE 2 * * \\
# Two is Torvalds Tech (Linux & Git)
bash_source_加载 "$_B00T_C0DE_Path/./bash.🔨/init.*.🐧.*.sh"
bash_source_加载 "$_B00T_C0DE_Path/./bash.🔨/init.*.🐙.*.sh"
# Also, Docker
bash_source_加载 "$_B00T_C0DE_Path/./bash.🔨/init.*.🐳.*.sh"
## 进口 (Jìnkǒu :: Import/Load) PHASE 3 * * * \\
## minimal c0re Python 🐍
# + establish .venv
bash_source_加载 "$_B00T_C0DE_Path/./bash.🔨/init.*.🐍.*sh"
source .venv/bin/activate
## Typescript & Node
# bash_source_加载 "$_B00T_C0DE_Path/./bash.🔨/init.*.🚀.*.sh"
# Future:
# bash_source_加载 "$_B00T_C0DE_Path/./bash.🔨/init.*.🦄.*.sh"
## 进口 (Jìnkǒu :: Import/Load) PHASE 4 * * * * \\
bash_source_加载 "$_B00T_C0DE_Path/./bash.🔨/init.*.🤖.*.sh"
bash_source_加载 "$_B00T_C0DE_Path/./bash.🔨/init.*.👾.*.sh"
# AWS, etc.
# bash_source_加载 "$_B00T_C0DE_Path/./bash/c0re_init.*.🦉.sh"
## 进口 * * * //
##* * * * \\
# 目录 (Mùlù) Directory
#if [ -d "$c0dePath/./pr0j3cts/./$project_dir" ] ; then
# export PROJECT_dirExist=`$c0dePath/./pr0j3cts/./$project_dir`
# echo "🥾 the $c0dePath/./pr0j3cts/./$project_dir already exists use --force"
#else
# export PROJECT_dirExists=""
#fi
#mkdir -p "$c0dePath/./pr0j3cts/./$project"
##* * * * //
#* 🐳 docker setup.
# TODO: link to the Elasticdotventures repository
#
docker build -t cowsay .
# 🐳♻️ It’s a good habit to use --rm to avoid filling up your system with stale Docker containers.
docker run --rm cowsay
cat <<EOF
🐛 If you didn't get a cowsay, let me know.
🤓 at this point you can start to build using EV _b00t_ or
your own _b00t_.
type:
git clone https://github.com/elasticdotventures/_b00t_/generate
EOF;
echo "* if you just saw a talking cow, everything is fine!"
echo "run ./02_t00ls_.sh