Code Monkey home page Code Monkey logo

Comments (5)

0xff-dev avatar 0xff-dev commented on July 21, 2024 2
#!/bin/bash


echo -n "Please ensure that the local docker for both repositories can push and pull properly: (y/n) "
read c
if [ $c == 'n' ]; then
	exit 1
fi

arg_count=$#

if [ $arg_count -ne 2 ]; then
	echo "Usage $0 <from-repository> <to-repository>"
	exit 1
fi

FROM=$1
tail=`echo ${FROM: -1}`
echo "FROM last char ${tail}"
if [ $tail == '/' ]; then
	FROM=`echo ${FROM%?}`
fi
echo "FROM: ${FROM}"

TO=$2
tail=`echo ${TO: -1}`
echo "TO last char ${tail}"
if [ $tail == '/' ]; then
	TO=`echo ${TO%?}`
fi
echo "TO: ${TO}"

sync_images=(fabric-operator:latest ubi-minimal:latest fabric-ca:iam-20230131 fabric-peer:2.4.7 
couchdb:3.2.2 fabric-orderer:2.4.7 fabric-console:latest grpc-web:latest)

for img in ${sync_images[*]}
do
	i=$FROM/$img
	target=$TO/$img
	echo "sync ${i} -- ${target}"
	docker pull $i
	if [ $? -ne 0 ]; then
		exit 1
	fi
	docker tag $i $target
	if [ $? -ne 0 ]; then
		exit 1
	fi
	docker push $target
	if [ $? -ne 0 ]; then
		exit 1
	fi
done

echo "✅done"

from bc-console.

bjwswang avatar bjwswang commented on July 21, 2024

需同步的镜像列表为:

  • hyperledgerk8s/fabric-operator:latest
  • hyperledgerk8s/ubi-minimal:latest
  • hyperledgerk8s/fabric-ca:iam-20230131
  • hyperledgerk8s/fabric-peer:2.4.7 hyperledgerk8s/fabric-peer:2.4.7
  • hyperledgerk8s/couchdb:3.2.2 hyperledgerk8s/fabric-orderer:2.4.7
  • hyperledgerk8s/fabric-console:latest hyperledgerk8s/grpc-web:latest

from bc-console.

bjwswang avatar bjwswang commented on July 21, 2024

@dayuy 需要配置镜像地址的地方包括:

  caSpec:
    license:
      accept: true
    ingress:
      class: "portal-ingress"
    images:
      caImage: hyperledgerk8s/fabric-ca
      caTag: "iam-20230131"
      caInitImage: hyperledgerk8s/ubi-minimal
      caInitTag: latest
  images:
    ordererInitImage: hyperledgerk8s/ubi-minimal
    ordererInitTag: latest
    grpcwebImage: hyperledgerk8s/grpc-web
    grpcwebTag: latest
    ordererImage: hyperledgerk8s/fabric-orderer
    ordererTag: v2.4.7
peerSpec:
    images:
         peerInitImage: hyperledgerk8s/ubi-minimal
         peerInitTag: latest
         grpcwebImage: hyperledgerk8s/grpc-web
         grpcwebTag: latest
         peerImage: hyperledgerk8s/fabric-peer
         peerTag:  v2.4.7

from bc-console.

bjwswang avatar bjwswang commented on July 21, 2024

Fixed. 内部服务统一使用bestchains-dev镜像仓库。并且前端增加环境变量配置默认的镜像仓库地址

Tracked at bestchains/installer#16

from bc-console.

dayuy avatar dayuy commented on July 21, 2024

BFF:节点创建、网络创建、组织创建 都改了

from bc-console.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.