-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·38 lines (28 loc) · 1.22 KB
/
run.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
#! /bin/bash
set -eo pipefail
mkdir -p /home/spinnaker/.kube/
sed 's?https://0.0.0.0:16443?https://host.docker.internal:16443?g' /tmp/config > /home/spinnaker/.kube/config
hal config deploy edit --type localgit --git-origin-user=thameezb
hal config version edit --version branch:upstream/master
echo "host: 0.0.0.0" | tee \
/home/spinnaker/.hal/default/service-settings/gate.yml \
/home/spinnaker/.hal/default/service-settings/deck.yml
echo "overrideBaseUrl: redis://redis:6379" | tee \
/home/spinnaker/.hal/default/service-settings/redis.yml
echo "spinnaker.s3.versioning: false" | tee \
/home/spinnaker/.hal/default/profiles/front50-local.yml
hal config storage s3 edit --endpoint http://minio:9000 \
--access-key-id minioadmin \
--secret-access-key minioadmin \
--path-style-access true
hal config storage edit --type s3
hal config artifact github enable
hal config artifact github account add spin_local \
--token-file /home/spinnaker/gh_pat
hal config artifact gitrepo enable
hal config artifact gitrepo account add spin_local_gitrepo \
--token-file /home/spinnaker/gh_pat
hal config provider kubernetes enable
hal config provider kubernetes account add kind \
--context kind-kind
hal deploy apply