~、“make dockerenv-stable-up”工作命令集 + 宏展开
make --just-print dockerenv-stable-up // "-n"
rm -Rf /tmp/enroll_user /tmp/msp /tmp/keyvaluestore /tmp/hfc-kvs /tmp/state /tmp/state-store
rm -f integration-report.xml report.xml
go clean
FIXTURE_PROJECT_NAME=fabsdkgo DOCKER_REMOVE_FORCE=false test/scripts/clean_integration.sh
FABRIC_CRYPTOCONFIG_VERSION=v1 \
FABRIC_FIXTURE_VERSION=v1.4 \
FABRIC_SDKGO_CODELEVEL_TAG=stable \
test/scripts/populate-fixtures.sh
. /media/SOFTWARE/Tmp4Dev/dev/fab_/fabric-sdk-go-1.0.0-beta1/test/fixtures/dockerenv/stable-env.sh && \
. /media/SOFTWARE/Tmp4Dev/dev/fab_/fabric-sdk-go-1.0.0-beta1/test/fixtures/fabric/v1/crypto-config/env.sh && \
cd /media/SOFTWARE/Tmp4Dev/dev/fab_/fabric-sdk-go-1.0.0-beta1/test/fixtures/dockerenv && \
FABRIC_SDKGO_CODELEVEL_VER=v1.4 FABRIC_SDKGO_CODELEVEL_TAG=stable FABRIC_DOCKER_REGISTRY= \
/opt/usr/bin/docker-compose-123 -f ./docker-compose-std.yaml -f ./docker-compose.yaml up --remove-orphans --force-recreate
~、unused-cont-dele.sh
function clearContainers() {
CONTAINER_IDS=$(docker ps -a | awk '!($2 ~ /clxdev.*/) {print $1}')
if [ -z "$CONTAINER_IDS" -o "$CONTAINER_IDS" == " " ]; then
echo "---- No containers available for deletion ----"
else
docker rm -f $CONTAINER_IDS
fi
}
clearContainers