@@ -50,7 +50,7 @@ cluster_type := env_var_or_default("WORKSHOP_CLUSTER_TYPE", "k8s")
50
50
51
51
# Start a local KIND cluster with nginx, localhost:5000 registry, and *.localho.st alias in kube DNS
52
52
kind : unkind
53
- #!/ bin/ bash
53
+ #!/usr/ bin/env bash
54
54
set -e -o pipefail
55
55
56
56
infrastructure/ kind_with_nginx.sh {{ cluster_name}}
@@ -62,7 +62,7 @@ kind: unkind
62
62
63
63
# Shut down the KIND cluster
64
64
unkind :
65
- #!/ bin/ bash
65
+ #!/usr/ bin/env bash
66
66
kind delete cluster --name {{ cluster_name}}
67
67
68
68
if docker inspect kind-registry &>/ dev/ null; then
@@ -73,7 +73,7 @@ unkind:
73
73
74
74
# Bring up the nginx ingress controller on the target k8s cluster
75
75
nginx :
76
- #!/ bin/ bash
76
+ #!/usr/ bin/env bash
77
77
kubectl apply -k https:// github.com/ hyperledger-labs/ fabric-operator.git/ config/ ingress/ {{ cluster_runtime }}
78
78
79
79
sleep 20
@@ -130,7 +130,7 @@ test-console:
130
130
131
131
# Shut down the microfab (uf) instance
132
132
microfab-down :
133
- #!/ bin/ bash
133
+ #!/usr/ bin/env bash
134
134
135
135
if docker inspect microfab &>/ dev/ null; then
136
136
echo " Removing existing microfab container:"
@@ -140,7 +140,7 @@ microfab-down:
140
140
141
141
# Start a micro fab instance and create configuration in _cfg/uf
142
142
microfab : microfab-down
143
- #!/ bin/ bash
143
+ #!/usr/ bin/env bash
144
144
set -e -o pipefail
145
145
146
146
export CFG=$CWDIR/ _cfg/ uf
@@ -207,7 +207,7 @@ microfab: microfab-down
207
207
208
208
# Creates a chaincode package and install/approve/commit
209
209
debugcc :
210
- #!/ bin/ bash
210
+ #!/usr/ bin/env bash
211
211
set -e -o pipefail
212
212
213
213
export CFG=$CWDIR/ _cfg/ uf
@@ -297,7 +297,7 @@ ansible-doit: ansible-review-config ansible-operator ansible-console ansible-net
297
297
298
298
# Review the Ansible Blockchain Collection configuration in _cfg/
299
299
ansible-review-config :
300
- #!/ bin/ bash
300
+ #!/usr/ bin/env bash
301
301
mkdir -p ${CWDIR}/ _cfg
302
302
rm -rf ${CWDIR}/ _cfg/ * || true
303
303
@@ -333,7 +333,7 @@ ansible-review-config:
333
333
334
334
# Start the Kubernetes fabric-operator with the Ansible Blockchain Collection
335
335
ansible-ingress :
336
- #!/ bin/ bash
336
+ #!/usr/ bin/env bash
337
337
set -ex -o pipefail
338
338
339
339
export EXTRAS=" "
@@ -355,7 +355,7 @@ ansible-ingress:
355
355
356
356
# Start the Kubernetes fabric-operator with the Ansible Blockchain Collection
357
357
ansible-operator :
358
- #!/ bin/ bash
358
+ #!/usr/ bin/env bash
359
359
set -ex -o pipefail
360
360
361
361
export EXTRAS=" "
@@ -374,7 +374,7 @@ ansible-operator:
374
374
375
375
# Start the Fabric Operations Console with the Ansible Blockchain Collection
376
376
ansible-console :
377
- #!/ bin/ bash
377
+ #!/usr/ bin/env bash
378
378
set -ex -o pipefail
379
379
380
380
export EXTRAS=" "
@@ -392,7 +392,7 @@ ansible-console:
392
392
ansible-playbook / playbooks/ 02-console-install .yml
393
393
394
394
ansible-auth :
395
- #!/ bin/ bash
395
+ #!/usr/ bin/env bash
396
396
set -ex -o pipefail
397
397
398
398
AUTH=$(curl -X POST https:// {{namespace}}-hlf-console-console.{{ingress_domain}}:443 / ak/ api/ v2/ permissions/ keys -u admin:password -k -H ' Content-Type: application/json' -d ' {"roles": ["writer", "manager"],"description": "newkey"}' )
@@ -411,7 +411,7 @@ ansible-auth:
411
411
412
412
# Build a sample Fabric network with the Ansible Blockchain Collection
413
413
ansible-network : ansible-auth
414
- #!/ bin/ bash
414
+ #!/usr/ bin/env bash
415
415
set -ex -o pipefail
416
416
417
417
export EXTRAS=" "
@@ -432,15 +432,15 @@ ansible-network: ansible-auth
432
432
433
433
# Bring down the sample network created with the Ansible Blockchain Collection
434
434
ansible-network-down :
435
- #!/ bin/ bash
435
+ #!/usr/ bin/env bash
436
436
set -ex -o pipefail
437
437
438
438
kubectl delete namespace {{ namespace }} --ignore-not-found
439
439
440
440
441
441
# Build a chaincode package with Ansible Blockchain Collection
442
442
ansible-build-chaincode :
443
- #!/ bin/ bash
443
+ #!/usr/ bin/env bash
444
444
set -ex -o pipefail
445
445
pushd ${CWDIR}/ contracts/ asset-transfer-typescript
446
446
@@ -461,7 +461,7 @@ ansible-build-chaincode:
461
461
462
462
# Deploy a chaincode package with the Ansible Blockchain Collection
463
463
ansible-deploy-chaincode :
464
- #!/ bin/ bash
464
+ #!/usr/ bin/env bash
465
465
set -ex -o pipefail
466
466
467
467
export EXTRAS=" "
@@ -502,7 +502,7 @@ ansible-deploy-chaincode:
502
502
503
503
# Creates a new identity for an application to use
504
504
ansible-ready-application :
505
- #!/ bin/ bash
505
+ #!/usr/ bin/env bash
506
506
set -ex -o pipefail
507
507
508
508
export EXTRAS=" "
0 commit comments