Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

内部测试服务镜像拉取问题 #18

Closed
Tracked by #8
bjwswang opened this issue Feb 14, 2023 · 5 comments · Fixed by bestchains/bc-apis#12
Closed
Tracked by #8

内部测试服务镜像拉取问题 #18

bjwswang opened this issue Feb 14, 2023 · 5 comments · Fixed by bestchains/bc-apis#12
Assignees
Labels
bug Something isn't working high High Priority
Milestone

Comments

@bjwswang
Copy link
Member

bjwswang commented Feb 14, 2023

目前,内部的测试服务器无法拉取docker.io镜像。需要:

  1. 将hyperledgerk8s下镜像同步到内部镜像仓库
  2. 修改前端默认镜像仓库为内部镜像仓库
@bjwswang
Copy link
Member Author

bjwswang commented Feb 14, 2023

需同步的镜像列表为:

  • 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

@bjwswang
Copy link
Member Author

bjwswang commented Feb 14, 2023

@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

@bjwswang bjwswang added the bug Something isn't working label Feb 14, 2023
@bjwswang bjwswang added this to the v0.1.0 milestone Feb 14, 2023
@bjwswang bjwswang assigned bjwswang and unassigned dayuy and 0xff-dev Feb 14, 2023
@0xff-dev
Copy link

0xff-dev commented Feb 14, 2023

#!/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"

@bjwswang bjwswang assigned dayuy and 0xff-dev and unassigned bjwswang Feb 14, 2023
@bjwswang bjwswang added the high High Priority label Feb 14, 2023
@bjwswang bjwswang mentioned this issue Feb 15, 2023
17 tasks
@bjwswang
Copy link
Member Author

bjwswang commented Feb 15, 2023

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

Tracked at bestchains/installer#16

@dayuy
Copy link

dayuy commented Feb 21, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high High Priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants