apiVersion: v1
kind: Pod
metadata:
  name: fabric-tools
spec:
  volumes:
    - name: fabricfiles
      persistentVolumeClaim:
        claimName: fabric-pvc
    - name: dockersocket
      hostPath:
        path: /var/run/docker.sock
  containers:
    - name: fabrictools
      image: hyperledger/fabric-tools:1.4.4
      imagePullPolicy: IfNotPresent
      command: ['sh', '-c', 'sleep 48h']
      env:
        - name: TZ
          value: 'America/Sao_Paulo'
        - name: FABRIC_CFG_PATH
          value: '/fabric'
        - name: FABRIC_LOGGING_LEVEL
          value: debug
        - name: SYS_CHANNEL
          value: byfn-sys-channel
        - name: CHANNEL_NAME
          value: certificatechannel
      volumeMounts:
        - mountPath: /fabric
          name: fabricfiles
        - mountPath: /host/var/run/docker.sock
          name: dockersocket
