mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
Add new TEST_NETWORK_THIRD_PARTY_CONTAINER_REGISTRY config env var to optionally use an alternative registry for couchdb etc. See #1410 Signed-off-by: James Taylor <jamest@uk.ibm.com>
33 lines
730 B
YAML
33 lines
730 B
YAML
#
|
|
# Copyright IBM Corp. All Rights Reserved.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
---
|
|
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: job-scrub-fabric-volumes
|
|
spec:
|
|
backoffLimit: 0
|
|
completions: 1
|
|
template:
|
|
metadata:
|
|
name: job-scrub-fabric-volumes
|
|
spec:
|
|
restartPolicy: "Never"
|
|
containers:
|
|
- name: main
|
|
image: ${THIRD_PARTY_CONTAINER_REGISTRY}/busybox:latest
|
|
command:
|
|
- sh
|
|
- -c
|
|
- "rm -rvf /mnt/fabric-*/*"
|
|
volumeMounts:
|
|
- name: fabric-org2-volume
|
|
mountPath: /mnt/fabric-org2
|
|
volumes:
|
|
- name: fabric-org2-volume
|
|
persistentVolumeClaim:
|
|
claimName: fabric-org2
|
|
|