mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
* This is the initial add of a test-network-kind Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Update the test-network-kind README; removes the local docker registry; updated 'clean' instructions Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> Co-authored-by: Matthew B White <mbwhite@users.noreply.github.com>
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
#
|
|
# Copyright IBM Corp. All Rights Reserved.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
---
|
|
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
generateName: create-channel-config-
|
|
spec:
|
|
backoffLimit: 1
|
|
template:
|
|
metadata:
|
|
name: create-channel-config
|
|
spec:
|
|
restartPolicy: "Never"
|
|
containers:
|
|
- name: main
|
|
image: hyperledger/fabric-tools:2.3.2
|
|
# todo: latest tag is not at docker hub
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: FABRIC_CFG_PATH
|
|
value: /var/hyperledger/fabric
|
|
command: [
|
|
"configtxgen",
|
|
"-channelID", "mychannel",
|
|
"-profile", "TwoOrgsChannel",
|
|
"-outputCreateChannelTx", "/var/hyperledger/fabric/channel-artifacts/mychannel.tx",
|
|
]
|
|
volumeMounts:
|
|
- name: fabric-volume
|
|
mountPath: /var/hyperledger/fabric
|
|
- name: config-volume
|
|
mountPath: /var/hyperledger/fabric/configtx.yaml
|
|
subPath: configtx.yaml
|
|
volumes:
|
|
- name: fabric-volume
|
|
persistentVolumeClaim:
|
|
claimName: fabric
|
|
- name: config-volume
|
|
configMap:
|
|
name: fabric-config
|
|
|