sungkwangsong / support

프로젝트 진행하면서 개발과 버그 이슈를 처리하기 위한 저장소
https://blog.sungkwang.me
1 stars 0 forks source link

Hyperledger Fabric 설치할 때 make docker 시 nexus.hyperledger.org 찾지 못하는 문제 #1

Open sungkwangsong opened 4 years ago

sungkwangsong commented 4 years ago

[한빛미디어, 하이퍼레저 블록체인 개발 (패브릭과 컴포저로 탈중앙화 앱 dApp 만들기)] 책 구매 후(http://www.hanbit.co.kr/media/books/book_view.html?p_code=B4172582620)

예제 실습하기 위해서 책에서 설명하는대로 fabric v1.1 다운 받아서 make docker 명령어 싫행하면 에러가 발생해서 예제를 하나도 진행하지 못하는 문제 발생.

네트워크 준비

네트워크 암호화 자료를 생성하기 전에 다음 단계를 수행해야 한다.

  1. 패브릭 소스 코드 저장소 복제 (https://github.com/hyperledger/fabric)
  2. 피어와 정렬자에 대한 도커 이미지를 생성하기 위해 make docker 실행

make docker 실행할 때 nexus.hyperledger.org 를 찾지 못하는 문제가 발생한다.

curl: (6) Could not resolve host: nexus.hyperledger.org

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
sungkwangsong commented 4 years ago

Hyperledger Nexus Repository Sunset

https://lists.hyperledger.org/g/fabric/topic/hyperledger_nexus_repository/70049382?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,70049382

sungkwangsong commented 4 years ago
  1. $GOPATH 디렉토리 밑에 fabric 받을 디렉토리 생성하기
    mkdir -p $GOOPATH/src/hyperledger
  2. Hyperledger Fabric v1.1 버전으로 소스코드 받기
    git clone -b release-1.1 --depth=1 https://github.com/hyperledger/fabric.git
  3. fabric 소스 안에 포함되어 있는 bootstrap.sh 파일로 설치
    $GOPATH/src/hyperledger/fabric/scripts/bootstrap.sh

    bootstrap.sh 실행후 hyperledger/fabric 관련 docker 이미지 모두 설치 됨

hyperledger/fabric-ca         x86_64-1.1.0   72617b4fa9b4        23 months ago       299MB
hyperledger/fabric-tools      latest         b7bfddf508bc        23 months ago       1.46GB
hyperledger/fabric-tools      x86_64-1.1.0   b7bfddf508bc        23 months ago       1.46GB
hyperledger/fabric-orderer    latest         ce0c810df36a        23 months ago       180MB
hyperledger/fabric-orderer    x86_64-1.1.0   ce0c810df36a        23 months ago       180MB
hyperledger/fabric-peer       latest         b023f9be0771        23 months ago       187MB
hyperledger/fabric-peer       x86_64-1.1.0   b023f9be0771        23 months ago       187MB
hyperledger/fabric-javaenv    latest         82098abb1a17        23 months ago       1.52GB
hyperledger/fabric-javaenv    x86_64-1.1.0   82098abb1a17        23 months ago       1.52GB
hyperledger/fabric-ccenv      latest         c8b4909d8d46        23 months ago       1.39GB
hyperledger/fabric-ccenv      x86_64-1.1.0   c8b4909d8d46        23 months ago       1.39GB
hyperledger/fabric-zookeeper  latest         92cbb952b6f8        2 years ago         1.39GB
hyperledger/fabric-zookeeper  x86_64-0.4.6   92cbb952b6f8        2 years ago         1.39GB
hyperledger/fabric-kafka      latest         554c591b86a8        2 years ago         1.4GB
hyperledger/fabric-kafka      x86_64-0.4.6   554c591b86a8        2 years ago         1.4GB
hyperledger/fabric-couchdb    latest         7e73c828fc5b        2 years ago         1.56GB
hyperledger/fabric-couchdb    x86_64-0.4.6   7e73c828fc5b        2 years ago         1.56GB