zoukankan      html  css  js  c++  java
  • fabric源码编译

    一、源码编译

    (一)Fabric核心源码

    https://github.com/hyperledger/fabric.git

    (二)Docker镜像编译

    通过Makefile文件进行编译,可以得到Orderer,Peer,ToolsDocker发布镜像

    ❯ make docker

    Building Docker image hyperledger/fabric-baseos

    docker build --force-rm  -f images/baseos/Dockerfile

            --build-arg GO_VER=1.14.4

            --build-arg ALPINE_VER=3.12

             

            -t hyperledger/fabric-baseos ./images/baseos

    Sending build context to Docker daemon  3.072kB

    Step 1/7 : ARG GO_VER

    Step 2/7 : ARG ALPINE_VER

    Step 3/7 : FROM alpine:${ALPINE_VER} as base

     ---> a24bb4013296

    Step 4/7 : RUN sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" /etc/apk/repositories

     ---> Using cache

     ---> 36e497d59a08

    Step 5/7 : RUN apk add --no-cache tzdata

     ---> Running in ac1107c99071

    fetch http://mirrors.aliyun.com/alpine/v3.12/main/x86_64/APKINDEX.tar.gz

    fetch http://mirrors.aliyun.com/alpine/v3.12/community/x86_64/APKINDEX.tar.gz

    (1/1) Installing tzdata (2021a-r0)

    Executing busybox-1.31.1-r16.trigger

    OK: 9 MiB in 15 packages

    Removing intermediate container ac1107c99071

     ---> 5f343c5eb6a5

    Step 6/7 : RUN addgroup -g 500 chaincode && adduser -u 500 -D -h /home/chaincode -G chaincode chaincode

     ---> Running in 8bf2b7d317c0

    Removing intermediate container 8bf2b7d317c0

     ---> 95f67eafd9e0

    Step 7/7 : USER chaincode

     ---> Running in 9d2264161576

    Removing intermediate container 9d2264161576

     ---> e15a156a6869

    Successfully built e15a156a6869

    Successfully tagged hyperledger/fabric-baseos:latest

    docker tag hyperledger/fabric-baseos hyperledger/fabric-baseos:2.2.0

    docker tag hyperledger/fabric-baseos hyperledger/fabric-baseos:2.2

    docker tag hyperledger/fabric-baseos hyperledger/fabric-baseos:amd64-2.2.0-snapshot-2821cfcd1

    Building Docker image hyperledger/fabric-ccenv

    docker build --force-rm  -f images/ccenv/Dockerfile

            --build-arg GO_VER=1.14.4

            --build-arg ALPINE_VER=3.12

             

            -t hyperledger/fabric-ccenv ./images/ccenv

    Sending build context to Docker daemon   2.56kB

    Step 1/9 : ARG GO_VER

    Step 2/9 : ARG ALPINE_VER

    Step 3/9 : FROM golang:${GO_VER}-alpine${ALPINE_VER}

     ---> 3289bf11c284

    Step 4/9 : RUN sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" /etc/apk/repositories

     ---> Running in e1d4647b979b

    Removing intermediate container e1d4647b979b

     ---> 27edf383fb0b

    Step 5/9 : RUN apk add --no-cache       g++     gcc     git     musl-dev

     ---> Running in 280941eaa676

    fetch http://mirrors.aliyun.com/alpine/v3.12/main/x86_64/APKINDEX.tar.gz

    fetch http://mirrors.aliyun.com/alpine/v3.12/community/x86_64/APKINDEX.tar.gz

    (1/20) Upgrading musl (1.1.24-r8 -> 1.1.24-r10)

    (2/20) Installing libgcc (9.3.0-r2)

    (3/20) Installing libstdc++ (9.3.0-r2)

    (4/20) Installing binutils (2.34-r1)

    (5/20) Installing gmp (6.2.0-r0)

    (6/20) Installing isl (0.18-r0)

    (7/20) Installing libgomp (9.3.0-r2)

    (8/20) Installing libatomic (9.3.0-r2)

    (9/20) Installing libgphobos (9.3.0-r2)

    (10/20) Installing mpfr4 (4.0.2-r4)

    (11/20) Installing mpc1 (1.1.0-r1)

    (12/20) Installing gcc (9.3.0-r2)

    (13/20) Installing musl-dev (1.1.24-r10)

    (14/20) Installing libc-dev (0.7.2-r3)

    (15/20) Installing g++ (9.3.0-r2)

    (16/20) Installing nghttp2-libs (1.41.0-r0)

    (17/20) Installing libcurl (7.69.1-r3)

    (18/20) Installing expat (2.2.9-r1)

    (19/20) Installing pcre2 (10.35-r0)

    (20/20) Installing git (2.26.3-r0)

    Executing busybox-1.31.1-r16.trigger

    OK: 216 MiB in 34 packages

    Removing intermediate container 280941eaa676

     ---> 57e54b7e4a2a

    Step 6/9 : RUN mkdir -p /chaincode/output /chaincode/input

     ---> Running in c21b33419cf0

    Removing intermediate container c21b33419cf0

     ---> de87c6e32d58

    Step 7/9 : RUN addgroup -g 500 chaincode && adduser -u 500 -D -h /home/chaincode -G chaincode chaincode

     ---> Running in ec83d3d699dd

    Removing intermediate container ec83d3d699dd

     ---> c2456d0f0fcb

    Step 8/9 : RUN chown -R chaincode:chaincode /chaincode

     ---> Running in 58b4c332abea

    Removing intermediate container 58b4c332abea

     ---> 015fcd2322fe

    Step 9/9 : USER chaincode

     ---> Running in 57ede6aa6d88

    Removing intermediate container 57ede6aa6d88

     ---> a53323d32968

    Successfully built a53323d32968

    Successfully tagged hyperledger/fabric-ccenv:latest

    docker tag hyperledger/fabric-ccenv hyperledger/fabric-ccenv:2.2.0

    docker tag hyperledger/fabric-ccenv hyperledger/fabric-ccenv:2.2

    docker tag hyperledger/fabric-ccenv hyperledger/fabric-ccenv:amd64-2.2.0-snapshot-2821cfcd1

    Building Docker image hyperledger/fabric-orderer

    docker build --force-rm  -f images/orderer/Dockerfile

            --build-arg GO_VER=1.14.4

            --build-arg ALPINE_VER=3.12

            --build-arg GO_TAGS=

            -t hyperledger/fabric-orderer ./

    Sending build context to Docker daemon  53.27MB

    Step 1/24 : ARG GO_VER

    Step 2/24 : ARG ALPINE_VER

    Step 3/24 : FROM alpine:${ALPINE_VER} as base

     ---> a24bb4013296

    Step 4/24 : RUN sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" /etc/apk/repositories

     ---> Using cache

     ---> 36e497d59a08

    Step 5/24 : RUN apk add --no-cache tzdata

     ---> Using cache

     ---> 5f343c5eb6a5

    Step 6/24 : RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf

     ---> Running in e59df9da1520

    Removing intermediate container e59df9da1520

     ---> 760344962d47

    Step 7/24 : FROM golang:${GO_VER}-alpine${ALPINE_VER} as golang

     ---> 3289bf11c284

    Step 8/24 : RUN sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" /etc/apk/repositories

     ---> Using cache

     ---> 27edf383fb0b

    Step 9/24 : RUN apk add --no-cache      gcc     musl-dev        git     bash    make;

     ---> Running in 0d60764236c6

    fetch http://mirrors.aliyun.com/alpine/v3.12/main/x86_64/APKINDEX.tar.gz

    fetch http://mirrors.aliyun.com/alpine/v3.12/community/x86_64/APKINDEX.tar.gz

    (1/23) Upgrading musl (1.1.24-r8 -> 1.1.24-r10)

    (2/23) Installing ncurses-terminfo-base (6.2_p20200523-r0)

    (3/23) Installing ncurses-libs (6.2_p20200523-r0)

    (4/23) Installing readline (8.0.4-r0)

    (5/23) Installing bash (5.0.17-r0)

    Executing bash-5.0.17-r0.post-install

    (6/23) Installing libgcc (9.3.0-r2)

    (7/23) Installing libstdc++ (9.3.0-r2)

    (8/23) Installing binutils (2.34-r1)

    (9/23) Installing gmp (6.2.0-r0)

    (10/23) Installing isl (0.18-r0)

    (11/23) Installing libgomp (9.3.0-r2)

    (12/23) Installing libatomic (9.3.0-r2)

    (13/23) Installing libgphobos (9.3.0-r2)

    (14/23) Installing mpfr4 (4.0.2-r4)

    (15/23) Installing mpc1 (1.1.0-r1)

    (16/23) Installing gcc (9.3.0-r2)

    (17/23) Installing nghttp2-libs (1.41.0-r0)

    (18/23) Installing libcurl (7.69.1-r3)

    (19/23) Installing expat (2.2.9-r1)

    (20/23) Installing pcre2 (10.35-r0)

    (21/23) Installing git (2.26.3-r0)

    (22/23) Installing make (4.3-r0)

    (23/23) Installing musl-dev (1.1.24-r10)

    Executing busybox-1.31.1-r16.trigger

    OK: 159 MiB in 37 packages

    Removing intermediate container 0d60764236c6

     ---> a68d8d4f1aca

    Step 10/24 : ADD . $GOPATH/src/github.com/hyperledger/fabric

     ---> 6da87372a3df

    Step 11/24 : WORKDIR $GOPATH/src/github.com/hyperledger/fabric

     ---> Running in ee0235140763

    Removing intermediate container ee0235140763

     ---> 45ff97f38648

    Step 12/24 : FROM golang as orderer

     ---> 45ff97f38648

    Step 13/24 : ARG GO_TAGS

     ---> Running in 820a236982f8

    Removing intermediate container 820a236982f8

     ---> dac12261ec16

    Step 14/24 : RUN make orderer GO_TAGS=${GO_TAGS}

     ---> Running in 2e54c692e9b1

    Building build/bin/orderer

    GOBIN=/go/src/github.com/hyperledger/fabric/build/bin go install -tags "" -ldflags "-X github.com/hyperledger/fabric/common/metadata.Version=2.2.0 -X github.com/hyperledger/fabric/common/metadata.CommitSHA=2821cfc -X github.com/hyperledger/fabric/common/metadata.BaseDockerLabel=org.hyperledger.fabric -X github.com/hyperledger/fabric/common/metadata.DockerNamespace=hyperledger" github.com/hyperledger/fabric/cmd/orderer

    Removing intermediate container 2e54c692e9b1

     ---> be364a30eaa0

    Step 15/24 : FROM base

     ---> 760344962d47

    Step 16/24 : ENV FABRIC_CFG_PATH /etc/hyperledger/fabric

     ---> Running in e8f7011f3fab

    Removing intermediate container e8f7011f3fab

     ---> 74925ec2827a

    Step 17/24 : VOLUME /etc/hyperledger/fabric

     ---> Running in d1d4cd6cddb8

    Removing intermediate container d1d4cd6cddb8

     ---> ae51b7156297

    Step 18/24 : VOLUME /var/hyperledger

     ---> Running in 888b7439de0c

    Removing intermediate container 888b7439de0c

     ---> 209bbc65514c

    Step 19/24 : COPY --from=orderer /go/src/github.com/hyperledger/fabric/build/bin /usr/local/bin

     ---> afb755d6bb21

    Step 20/24 : COPY --from=orderer /go/src/github.com/hyperledger/fabric/sampleconfig/msp ${FABRIC_CFG_PATH}/msp

     ---> bec7630a5e18

    Step 21/24 : COPY --from=orderer /go/src/github.com/hyperledger/fabric/sampleconfig/orderer.yaml ${FABRIC_CFG_PATH}

     ---> 5e47f156bd3d

    Step 22/24 : COPY --from=orderer /go/src/github.com/hyperledger/fabric/sampleconfig/configtx.yaml ${FABRIC_CFG_PATH}

     ---> 96c5f0c820db

    Step 23/24 : EXPOSE 7050

     ---> Running in a62a2cf16dae

    Removing intermediate container a62a2cf16dae

     ---> 25a8267512ab

    Step 24/24 : CMD ["orderer"]

     ---> Running in ff8a1d03e744

    Removing intermediate container ff8a1d03e744

     ---> 1ce49686b51a

    Successfully built 1ce49686b51a

    Successfully tagged hyperledger/fabric-orderer:latest

    docker tag hyperledger/fabric-orderer hyperledger/fabric-orderer:2.2.0

    docker tag hyperledger/fabric-orderer hyperledger/fabric-orderer:2.2

    docker tag hyperledger/fabric-orderer hyperledger/fabric-orderer:amd64-2.2.0-snapshot-2821cfcd1

    Building Docker image hyperledger/fabric-peer

    docker build --force-rm  -f images/peer/Dockerfile

            --build-arg GO_VER=1.14.4

            --build-arg ALPINE_VER=3.12

            --build-arg GO_TAGS=

            -t hyperledger/fabric-peer ./

    Sending build context to Docker daemon  53.27MB

    Step 1/23 : ARG GO_VER

    Step 2/23 : ARG ALPINE_VER

    Step 3/23 : FROM alpine:${ALPINE_VER} as peer-base

     ---> a24bb4013296

    Step 4/23 : RUN sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" /etc/apk/repositories

     ---> Using cache

     ---> 36e497d59a08

    Step 5/23 : RUN apk add --no-cache tzdata

     ---> Using cache

     ---> 5f343c5eb6a5

    Step 6/23 : RUN echo 'hosts: files dns' > /etc/nsswitch.conf

     ---> Running in 44ace7fd0ba5

    Removing intermediate container 44ace7fd0ba5

     ---> bdce29fbd885

    Step 7/23 : FROM golang:${GO_VER}-alpine${ALPINE_VER} as golang

     ---> 3289bf11c284

    Step 8/23 : RUN sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" /etc/apk/repositories

     ---> Using cache

     ---> 27edf383fb0b

    Step 9/23 : RUN apk add --no-cache      bash    gcc     git     make    musl-dev

     ---> Running in 8fbfdc23a8e5

    fetch http://mirrors.aliyun.com/alpine/v3.12/main/x86_64/APKINDEX.tar.gz

    fetch http://mirrors.aliyun.com/alpine/v3.12/community/x86_64/APKINDEX.tar.gz

    (1/23) Upgrading musl (1.1.24-r8 -> 1.1.24-r10)

    (2/23) Installing ncurses-terminfo-base (6.2_p20200523-r0)

    (3/23) Installing ncurses-libs (6.2_p20200523-r0)

    (4/23) Installing readline (8.0.4-r0)

    (5/23) Installing bash (5.0.17-r0)

    Executing bash-5.0.17-r0.post-install

    (6/23) Installing libgcc (9.3.0-r2)

    (7/23) Installing libstdc++ (9.3.0-r2)

    (8/23) Installing binutils (2.34-r1)

    (9/23) Installing gmp (6.2.0-r0)

    (10/23) Installing isl (0.18-r0)

    (11/23) Installing libgomp (9.3.0-r2)

    (12/23) Installing libatomic (9.3.0-r2)

    (13/23) Installing libgphobos (9.3.0-r2)

    (14/23) Installing mpfr4 (4.0.2-r4)

    (15/23) Installing mpc1 (1.1.0-r1)

    (16/23) Installing gcc (9.3.0-r2)

    (17/23) Installing nghttp2-libs (1.41.0-r0)

    (18/23) Installing libcurl (7.69.1-r3)

    (19/23) Installing expat (2.2.9-r1)

    (20/23) Installing pcre2 (10.35-r0)

    (21/23) Installing git (2.26.3-r0)

    (22/23) Installing make (4.3-r0)

    (23/23) Installing musl-dev (1.1.24-r10)

    Executing busybox-1.31.1-r16.trigger

    OK: 159 MiB in 37 packages

    Removing intermediate container 8fbfdc23a8e5

     ---> 3e5139818e52

    Step 10/23 : ADD . $GOPATH/src/github.com/hyperledger/fabric

     ---> 3256b9d09eb7

    Step 11/23 : WORKDIR $GOPATH/src/github.com/hyperledger/fabric

     ---> Running in 0ecf2408f903

    Removing intermediate container 0ecf2408f903

     ---> b71277434086

    Step 12/23 : FROM golang as peer

     ---> b71277434086

    Step 13/23 : ARG GO_TAGS

     ---> Running in e4e1b1444dd6

    Removing intermediate container e4e1b1444dd6

     ---> 1107321849fe

    Step 14/23 : RUN make peer GO_TAGS=${GO_TAGS}

     ---> Running in 933c894fd931

    Building build/bin/peer

    GOBIN=/go/src/github.com/hyperledger/fabric/build/bin go install -tags "" -ldflags "-X github.com/hyperledger/fabric/common/metadata.Version=2.2.0 -X github.com/hyperledger/fabric/common/metadata.CommitSHA=2821cfc -X github.com/hyperledger/fabric/common/metadata.BaseDockerLabel=org.hyperledger.fabric -X github.com/hyperledger/fabric/common/metadata.DockerNamespace=hyperledger" github.com/hyperledger/fabric/cmd/peer

    Removing intermediate container 933c894fd931

     ---> 17261d0920cd

    Step 15/23 : FROM peer-base

     ---> bdce29fbd885

    Step 16/23 : ENV FABRIC_CFG_PATH /etc/hyperledger/fabric

     ---> Running in d17b454ee2a9

    Removing intermediate container d17b454ee2a9

     ---> 66b0a84c347c

    Step 17/23 : VOLUME /etc/hyperledger/fabric

     ---> Running in d818728054af

    Removing intermediate container d818728054af

     ---> a8fa400933b7

    Step 18/23 : VOLUME /var/hyperledger

     ---> Running in e9b3d1238318

    Removing intermediate container e9b3d1238318

     ---> f274cecf9214

    Step 19/23 : COPY --from=peer /go/src/github.com/hyperledger/fabric/build/bin /usr/local/bin

     ---> 346061aeba86

    Step 20/23 : COPY --from=peer /go/src/github.com/hyperledger/fabric/sampleconfig/msp ${FABRIC_CFG_PATH}/msp

     ---> 1c0399db48a2

    Step 21/23 : COPY --from=peer /go/src/github.com/hyperledger/fabric/sampleconfig/core.yaml ${FABRIC_CFG_PATH}

     ---> 4829e664812a

    Step 22/23 : EXPOSE 7051

     ---> Running in 3124c501cb78

    Removing intermediate container 3124c501cb78

     ---> 4cb6b0493242

    Step 23/23 : CMD ["peer","node","start"]

     ---> Running in b17cd5e39032

    Removing intermediate container b17cd5e39032

     ---> 76ba8ff5dfc4

    Successfully built 76ba8ff5dfc4

    Successfully tagged hyperledger/fabric-peer:latest

    docker tag hyperledger/fabric-peer hyperledger/fabric-peer:2.2.0

    docker tag hyperledger/fabric-peer hyperledger/fabric-peer:2.2

    docker tag hyperledger/fabric-peer hyperledger/fabric-peer:amd64-2.2.0-snapshot-2821cfcd1

    Building Docker image hyperledger/fabric-tools

    docker build --force-rm  -f images/tools/Dockerfile

            --build-arg GO_VER=1.14.4

            --build-arg ALPINE_VER=3.12

             

            -t hyperledger/fabric-tools ./

    Sending build context to Docker daemon  53.27MB

    Step 1/16 : ARG GO_VER

    Step 2/16 : ARG ALPINE_VER

    Step 3/16 : FROM golang:${GO_VER}-alpine${ALPINE_VER} as golang

     ---> 3289bf11c284

    Step 4/16 : RUN sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" /etc/apk/repositories

     ---> Using cache

     ---> 27edf383fb0b

    Step 5/16 : RUN apk add --no-cache      bash    gcc     git     make    musl-dev;

     ---> Running in 457aecc0b82f

    fetch http://mirrors.aliyun.com/alpine/v3.12/main/x86_64/APKINDEX.tar.gz

    fetch http://mirrors.aliyun.com/alpine/v3.12/community/x86_64/APKINDEX.tar.gz

    (1/23) Upgrading musl (1.1.24-r8 -> 1.1.24-r10)

    (2/23) Installing ncurses-terminfo-base (6.2_p20200523-r0)

    (3/23) Installing ncurses-libs (6.2_p20200523-r0)

    (4/23) Installing readline (8.0.4-r0)

    (5/23) Installing bash (5.0.17-r0)

    Executing bash-5.0.17-r0.post-install

    (6/23) Installing libgcc (9.3.0-r2)

    (7/23) Installing libstdc++ (9.3.0-r2)

    (8/23) Installing binutils (2.34-r1)

    (9/23) Installing gmp (6.2.0-r0)

    (10/23) Installing isl (0.18-r0)

    (11/23) Installing libgomp (9.3.0-r2)

    (12/23) Installing libatomic (9.3.0-r2)

    (13/23) Installing libgphobos (9.3.0-r2)

    (14/23) Installing mpfr4 (4.0.2-r4)

    (15/23) Installing mpc1 (1.1.0-r1)

    (16/23) Installing gcc (9.3.0-r2)

    (17/23) Installing nghttp2-libs (1.41.0-r0)

    (18/23) Installing libcurl (7.69.1-r3)

    (19/23) Installing expat (2.2.9-r1)

    (20/23) Installing pcre2 (10.35-r0)

    (21/23) Installing git (2.26.3-r0)

    (22/23) Installing make (4.3-r0)

    (23/23) Installing musl-dev (1.1.24-r10)

    Executing busybox-1.31.1-r16.trigger

    OK: 159 MiB in 37 packages

    Removing intermediate container 457aecc0b82f

     ---> fb5df2468731

    Step 6/16 : ADD . $GOPATH/src/github.com/hyperledger/fabric

     ---> 56e84dcf23a6

    Step 7/16 : WORKDIR $GOPATH/src/github.com/hyperledger/fabric

     ---> Running in 5dc617931219

    Removing intermediate container 5dc617931219

     ---> 7e20a82def1e

    Step 8/16 : FROM golang as tools

     ---> 7e20a82def1e

    Step 9/16 : RUN make configtxgen configtxlator cryptogen peer discover idemixgen

     ---> Running in c49fe3b4c348

    Building build/bin/configtxgen

    GOBIN=/go/src/github.com/hyperledger/fabric/build/bin go install -tags "" -ldflags "-X github.com/hyperledger/fabric/common/metadata.Version=2.2.0 -X github.com/hyperledger/fabric/common/metadata.CommitSHA=2821cfc -X github.com/hyperledger/fabric/common/metadata.BaseDockerLabel=org.hyperledger.fabric -X github.com/hyperledger/fabric/common/metadata.DockerNamespace=hyperledger" github.com/hyperledger/fabric/cmd/configtxgen

    Building build/bin/configtxlator

    GOBIN=/go/src/github.com/hyperledger/fabric/build/bin go install -tags "" -ldflags "-X github.com/hyperledger/fabric/common/metadata.Version=2.2.0 -X github.com/hyperledger/fabric/common/metadata.CommitSHA=2821cfc -X github.com/hyperledger/fabric/common/metadata.BaseDockerLabel=org.hyperledger.fabric -X github.com/hyperledger/fabric/common/metadata.DockerNamespace=hyperledger" github.com/hyperledger/fabric/cmd/configtxlator

    Building build/bin/cryptogen

    GOBIN=/go/src/github.com/hyperledger/fabric/build/bin go install -tags "" -ldflags "-X github.com/hyperledger/fabric/common/metadata.Version=2.2.0 -X github.com/hyperledger/fabric/common/metadata.CommitSHA=2821cfc -X github.com/hyperledger/fabric/common/metadata.BaseDockerLabel=org.hyperledger.fabric -X github.com/hyperledger/fabric/common/metadata.DockerNamespace=hyperledger" github.com/hyperledger/fabric/cmd/cryptogen

    Building build/bin/peer

    GOBIN=/go/src/github.com/hyperledger/fabric/build/bin go install -tags "" -ldflags "-X github.com/hyperledger/fabric/common/metadata.Version=2.2.0 -X github.com/hyperledger/fabric/common/metadata.CommitSHA=2821cfc -X github.com/hyperledger/fabric/common/metadata.BaseDockerLabel=org.hyperledger.fabric -X github.com/hyperledger/fabric/common/metadata.DockerNamespace=hyperledger" github.com/hyperledger/fabric/cmd/peer

    Building build/bin/discover

    GOBIN=/go/src/github.com/hyperledger/fabric/build/bin go install -tags "" -ldflags "-X github.com/hyperledger/fabric/common/metadata.Version=2.2.0 -X github.com/hyperledger/fabric/common/metadata.CommitSHA=2821cfc -X github.com/hyperledger/fabric/common/metadata.BaseDockerLabel=org.hyperledger.fabric -X github.com/hyperledger/fabric/common/metadata.DockerNamespace=hyperledger" github.com/hyperledger/fabric/cmd/discover

    Building build/bin/idemixgen

    GOBIN=/go/src/github.com/hyperledger/fabric/build/bin go install -tags "" -ldflags "-X github.com/hyperledger/fabric/common/metadata.Version=2.2.0 -X github.com/hyperledger/fabric/common/metadata.CommitSHA=2821cfc -X github.com/hyperledger/fabric/common/metadata.BaseDockerLabel=org.hyperledger.fabric -X github.com/hyperledger/fabric/common/metadata.DockerNamespace=hyperledger" github.com/hyperledger/fabric/cmd/idemixgen

    Removing intermediate container c49fe3b4c348

     ---> 7e3b495c2faf

    Step 10/16 : FROM golang:${GO_VER}-alpine

     ---> 3289bf11c284

    Step 11/16 : RUN sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" /etc/apk/repositories

     ---> Using cache

     ---> 27edf383fb0b

    Step 12/16 : RUN apk add --no-cache     bash    git     jq      tzdata;

     ---> Running in 5ac8e0d3eaad

    fetch http://mirrors.aliyun.com/alpine/v3.12/main/x86_64/APKINDEX.tar.gz

    fetch http://mirrors.aliyun.com/alpine/v3.12/community/x86_64/APKINDEX.tar.gz

    (1/12) Installing ncurses-terminfo-base (6.2_p20200523-r0)

    (2/12) Installing ncurses-libs (6.2_p20200523-r0)

    (3/12) Installing readline (8.0.4-r0)

    (4/12) Installing bash (5.0.17-r0)

    Executing bash-5.0.17-r0.post-install

    (5/12) Installing nghttp2-libs (1.41.0-r0)

    (6/12) Installing libcurl (7.69.1-r3)

    (7/12) Installing expat (2.2.9-r1)

    (8/12) Installing pcre2 (10.35-r0)

    (9/12) Installing git (2.26.3-r0)

    (10/12) Installing oniguruma (6.9.5-r2)

    (11/12) Installing jq (1.6-r1)

    (12/12) Installing tzdata (2021a-r0)

    Executing busybox-1.31.1-r16.trigger

    OK: 28 MiB in 27 packages

    Removing intermediate container 5ac8e0d3eaad

     ---> 979a3874a070

    Step 13/16 : ENV FABRIC_CFG_PATH /etc/hyperledger/fabric

     ---> Running in 1deb0626dc76

    Removing intermediate container 1deb0626dc76

     ---> fd0d714caf97

    Step 14/16 : VOLUME /etc/hyperledger/fabric

     ---> Running in 985a215a3194

    Removing intermediate container 985a215a3194

     ---> 295177c43d4a

    Step 15/16 : COPY --from=tools /go/src/github.com/hyperledger/fabric/build/bin /usr/local/bin

     ---> f9c2fee3a8cf

    Step 16/16 : COPY --from=tools /go/src/github.com/hyperledger/fabric/sampleconfig ${FABRIC_CFG_PATH}

     ---> 318cac467dcc

    Successfully built 318cac467dcc

    Successfully tagged hyperledger/fabric-tools:latest

    docker tag hyperledger/fabric-tools hyperledger/fabric-tools:2.2.0

    docker tag hyperledger/fabric-tools hyperledger/fabric-tools:2.2

    docker tag hyperledger/fabric-tools hyperledger/fabric-tools:amd64-2.2.0-snapshot-2821cfcd1

  • 相关阅读:
    Windows7 如何添加excel,word到鼠标右键
    Java程序安装失败
    交换机
    Hbase
    Hive
    Hdoop
    PL/SQL连不上,报 ORA-12170:TNS 连接超时
    Error in invoking target 'mkldflags ntcontab.o nnfgt.o' of mkdefile '/u01/app/oracle/product/11.2.0
    用js 的for循环打印三角形,提取水仙花数,求本月多少天
    JS循环、数组与练习题
  • 原文地址:https://www.cnblogs.com/jiftle/p/15330916.html
Copyright © 2011-2022 走看看