Skip to content

Commit b82a309

Browse files
NixOS support (Multi-Linux Distro Support) (#1310)
Signed-off-by: AadithyanRaju <[email protected]> Signed-off-by: Aadithyan Raju <[email protected]>
1 parent 16d6d75 commit b82a309

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+90
-92
lines changed

asset-transfer-basic/chaincode-external/sampleBuilder/bin/detect

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -euo pipefail
44

asset-transfer-basic/chaincode-external/sampleBuilder/bin/release

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -euo pipefail
44

ci/scripts/lint-go.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -euo pipefail
33

44
function print() {

ci/scripts/lint-java.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -euo pipefail
33

44
function print() {

ci/scripts/lint-javascript.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -euo pipefail
33

44
function print() {

ci/scripts/lint-shell.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -euo pipefail
33

44
shellcheck --version

ci/scripts/lint-typescript.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -euo pipefail
33

44
function print() {

ci/scripts/lint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -euo pipefail
33

44
cd "$(dirname "$0")/../.."

ci/scripts/run-k8s-test-network-basic.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash -e
1+
#!/usr/bin/env bash
22
#
33
# Copyright IBM Corp All Rights Reserved
44
#

ci/scripts/run-test-network-basic.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -euo pipefail
44

ci/scripts/run-test-network-events.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -euo pipefail
44

ci/scripts/run-test-network-hsm.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -euo pipefail
44

ci/scripts/run-test-network-off-chain.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -euo pipefail
44

ci/scripts/run-test-network-private.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -euo pipefail
44

ci/scripts/run-test-network-secured.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -euo pipefail
44

full-stack-asset-transfer-guide/checks/check-chaincode.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -eou pipefail
44

full-stack-asset-transfer-guide/checks/check-kube.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -eo pipefail
44

full-stack-asset-transfer-guide/checks/check-network.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -eou pipefail
44

full-stack-asset-transfer-guide/checks/utils.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Copyright IBM Corp All Rights Reserved
44
#

full-stack-asset-transfer-guide/infrastructure/kind_with_nginx.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Copyright contributors to the Hyperledgendary Full Stack Asset Transfer project
44
#

full-stack-asset-transfer-guide/infrastructure/sample-network/network

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Copyright contributors to the Hyperledger Fabric Operator project
44
#

full-stack-asset-transfer-guide/infrastructure/sample-network/scripts/channel.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Copyright contributors to the Hyperledger Fabric Operator project
44
#

full-stack-asset-transfer-guide/infrastructure/sample-network/scripts/console.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Copyright contributors to the Hyperledger Fabric Operator project
44
#

full-stack-asset-transfer-guide/infrastructure/sample-network/scripts/prereqs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Copyright contributors to the Hyperledger Fabric Operator project
44
#

full-stack-asset-transfer-guide/infrastructure/sample-network/scripts/sample_network.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Copyright contributors to the Hyperledger Fabric Operator project
44
#

full-stack-asset-transfer-guide/infrastructure/sample-network/scripts/utils.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Copyright contributors to the Hyperledger Fabric Operator project
44
#

full-stack-asset-transfer-guide/justfile

+16-16
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ cluster_type := env_var_or_default("WORKSHOP_CLUSTER_TYPE", "k8s")
5050

5151
# Start a local KIND cluster with nginx, localhost:5000 registry, and *.localho.st alias in kube DNS
5252
kind: unkind
53-
#!/bin/bash
53+
#!/usr/bin/env bash
5454
set -e -o pipefail
5555

5656
infrastructure/kind_with_nginx.sh {{cluster_name}}
@@ -62,7 +62,7 @@ kind: unkind
6262

6363
# Shut down the KIND cluster
6464
unkind:
65-
#!/bin/bash
65+
#!/usr/bin/env bash
6666
kind delete cluster --name {{cluster_name}}
6767

6868
if docker inspect kind-registry &>/dev/null; then
@@ -73,7 +73,7 @@ unkind:
7373

7474
# Bring up the nginx ingress controller on the target k8s cluster
7575
nginx:
76-
#!/bin/bash
76+
#!/usr/bin/env bash
7777
kubectl apply -k https://github.com/hyperledger-labs/fabric-operator.git/config/ingress/{{ cluster_runtime }}
7878

7979
sleep 20
@@ -130,7 +130,7 @@ test-console:
130130

131131
# Shut down the microfab (uf) instance
132132
microfab-down:
133-
#!/bin/bash
133+
#!/usr/bin/env bash
134134

135135
if docker inspect microfab &>/dev/null; then
136136
echo "Removing existing microfab container:"
@@ -140,7 +140,7 @@ microfab-down:
140140

141141
# Start a micro fab instance and create configuration in _cfg/uf
142142
microfab: microfab-down
143-
#!/bin/bash
143+
#!/usr/bin/env bash
144144
set -e -o pipefail
145145

146146
export CFG=$CWDIR/_cfg/uf
@@ -207,7 +207,7 @@ microfab: microfab-down
207207

208208
# Creates a chaincode package and install/approve/commit
209209
debugcc:
210-
#!/bin/bash
210+
#!/usr/bin/env bash
211211
set -e -o pipefail
212212

213213
export CFG=$CWDIR/_cfg/uf
@@ -297,7 +297,7 @@ ansible-doit: ansible-review-config ansible-operator ansible-console ansible-net
297297

298298
# Review the Ansible Blockchain Collection configuration in _cfg/
299299
ansible-review-config:
300-
#!/bin/bash
300+
#!/usr/bin/env bash
301301
mkdir -p ${CWDIR}/_cfg
302302
rm -rf ${CWDIR}/_cfg/* || true
303303

@@ -333,7 +333,7 @@ ansible-review-config:
333333

334334
# Start the Kubernetes fabric-operator with the Ansible Blockchain Collection
335335
ansible-ingress:
336-
#!/bin/bash
336+
#!/usr/bin/env bash
337337
set -ex -o pipefail
338338

339339
export EXTRAS=""
@@ -355,7 +355,7 @@ ansible-ingress:
355355

356356
# Start the Kubernetes fabric-operator with the Ansible Blockchain Collection
357357
ansible-operator:
358-
#!/bin/bash
358+
#!/usr/bin/env bash
359359
set -ex -o pipefail
360360

361361
export EXTRAS=""
@@ -374,7 +374,7 @@ ansible-operator:
374374

375375
# Start the Fabric Operations Console with the Ansible Blockchain Collection
376376
ansible-console:
377-
#!/bin/bash
377+
#!/usr/bin/env bash
378378
set -ex -o pipefail
379379

380380
export EXTRAS=""
@@ -392,7 +392,7 @@ ansible-console:
392392
ansible-playbook /playbooks/02-console-install.yml
393393

394394
ansible-auth:
395-
#!/bin/bash
395+
#!/usr/bin/env bash
396396
set -ex -o pipefail
397397

398398
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:
411411

412412
# Build a sample Fabric network with the Ansible Blockchain Collection
413413
ansible-network: ansible-auth
414-
#!/bin/bash
414+
#!/usr/bin/env bash
415415
set -ex -o pipefail
416416

417417
export EXTRAS=""
@@ -432,15 +432,15 @@ ansible-network: ansible-auth
432432

433433
# Bring down the sample network created with the Ansible Blockchain Collection
434434
ansible-network-down:
435-
#!/bin/bash
435+
#!/usr/bin/env bash
436436
set -ex -o pipefail
437437

438438
kubectl delete namespace {{ namespace }} --ignore-not-found
439439

440440

441441
# Build a chaincode package with Ansible Blockchain Collection
442442
ansible-build-chaincode:
443-
#!/bin/bash
443+
#!/usr/bin/env bash
444444
set -ex -o pipefail
445445
pushd ${CWDIR}/contracts/asset-transfer-typescript
446446

@@ -461,7 +461,7 @@ ansible-build-chaincode:
461461

462462
# Deploy a chaincode package with the Ansible Blockchain Collection
463463
ansible-deploy-chaincode:
464-
#!/bin/bash
464+
#!/usr/bin/env bash
465465
set -ex -o pipefail
466466

467467
export EXTRAS=""
@@ -502,7 +502,7 @@ ansible-deploy-chaincode:
502502

503503
# Creates a new identity for an application to use
504504
ansible-ready-application:
505-
#!/bin/bash
505+
#!/usr/bin/env bash
506506
set -ex -o pipefail
507507

508508
export EXTRAS=""

full-stack-asset-transfer-guide/tests/00-chaincode-e2e.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -v -eou pipefail
44

full-stack-asset-transfer-guide/tests/20-cloud-e2e.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -v -eou pipefail
44

full-stack-asset-transfer-guide/tests/30-ansible-e2e.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -v -eou pipefail
44

full-stack-asset-transfer-guide/tests/40-console.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -v -eou pipefail
44

high-throughput/networkDown.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Copyright IBM Corp All Rights Reserved
44
#

high-throughput/startFabric.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Copyright IBM Corp All Rights Reserved
44
#

test-network-k8s/network

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Copyright IBM Corp All Rights Reserved
44
#

test-network-k8s/scripts/application_connection.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Copyright IBM Corp All Rights Reserved
44
#

test-network-k8s/scripts/chaincode.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Copyright IBM Corp All Rights Reserved
44
#

test-network-k8s/scripts/channel.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Copyright IBM Corp All Rights Reserved
44
#

test-network-k8s/scripts/cluster.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Copyright IBM Corp All Rights Reserved
44
#

test-network-k8s/scripts/fabric_CAs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Copyright IBM Corp All Rights Reserved
44
#

test-network-k8s/scripts/fabric_config.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Copyright IBM Corp All Rights Reserved
44
#

test-network-k8s/scripts/kind.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Copyright IBM Corp All Rights Reserved
44
#

test-network-k8s/scripts/prereqs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Copyright IBM Corp All Rights Reserved
44
#

test-network-k8s/scripts/rest_sample.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Copyright IBM Corp All Rights Reserved
44
#

0 commit comments

Comments
 (0)