mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
* Import Full Stack Asset Transfer Guide at commit fb554befdbbeff9e69159b54fce0b811603f29c7 Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Update the workshop with a new WORKSHOP_PATH under fabric-samples Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Update the workshop with a new WORKSHOP_PATH under fabric-samples Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * missed a .git ignored directory on add Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Updates to run the workshop on the Apple M1 Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Workaround for https://github.com/eslint/eslint/issues/15299 in the contract tslinter Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Build an arch-specific CC images on M1 Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * empty commit - force a build Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * revert an accidental commit that was building the top-level asset-transfer as arm64 Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com>
45 lines
1.3 KiB
Bash
Executable file
45 lines
1.3 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Set up required storage classes (not present in Fyre or staging IKS/OCP)
|
|
#
|
|
# Required env vars
|
|
# CLUSTER_TYPE (iks | ocp)
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")"
|
|
UTILS_DIR=$(pwd)
|
|
|
|
echo "Cloning required rook repository"
|
|
rm -rf ${UTILS_DIR}/rook
|
|
git clone https://github.com/rook/rook.git
|
|
|
|
|
|
cd rook/deploy/examples/
|
|
|
|
if [ $CLUSTER_TYPE = "iks" ]; then
|
|
echo "Creating required IKS storage classes"
|
|
kubectl create -f crds.yaml
|
|
kubectl create -f common.yaml
|
|
kubectl create -f cluster.yaml
|
|
kubectl create -f ./csi/rbd/storageclass.yaml
|
|
kubectl create -f ./csi/rbd/pvc.yaml
|
|
kubectl create -f filesystem.yaml
|
|
kubectl create -f ./csi/cephfs/storageclass.yaml
|
|
kubectl create -f ./csi/cephfs/pvc.yaml
|
|
kubectl create -f toolbox.yaml
|
|
elif [ $CLUSTER_TYPE = "openshift" ]; then
|
|
echo "Creating required OCP storage classes"
|
|
oc create -f crds.yaml
|
|
oc create -f common.yaml
|
|
oc create -f operator-openshift.yaml
|
|
oc create -f cluster.yaml
|
|
oc create -f ./csi/rbd/storageclass.yaml
|
|
oc create -f ./csi/rbd/pvc.yaml
|
|
oc create -f filesystem.yaml
|
|
oc create -f ./csi/cephfs/storageclass.yaml
|
|
oc create -f ./csi/cephfs/pvc.yaml
|
|
oc create -f toolbox.yaml
|
|
else
|
|
echo "Unknown or missing CLUSTER_TYPE variable"
|
|
exit 1
|
|
fi
|
|
|