Skip to content

Commit

Permalink
fix makefile to support single cert dockerfile support debian aliyun …
Browse files Browse the repository at this point in the history
…source

Signed-off-by: guijun chen <877020907@qq.com>
Signed-off-by: 陈桂军 <chengj16@bngrp.com>
  • Loading branch information
guijunchen authored and 陈桂军 committed Feb 26, 2021
1 parent 18be2c4 commit f21fdd1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,14 @@ bin/%: $(GO_SOURCE)
# directory so that subsequent builds are faster
build/docker/bin/%:
@echo "Building $@"
@mkdir -p $(@D) build/docker/$(@F)/pkg build/docker/cache
@$(DRUN) \
mkdir -p $(@D) build/docker/$(@F)/pkg build/docker/cache
$(DRUN) \
-v $(abspath build/docker/bin):/opt/gopath/bin \
-v $(abspath build/docker/$(@F)/pkg):/opt/gopath/pkg \
-v $(abspath build/docker/cache):/opt/gopath/cache \
-e GOCACHE=/opt/gopath/cache \
$(BASE_DOCKER_NS)/fabric-baseimage:$(BASE_DOCKER_TAG) \
go install -ldflags "$(DOCKER_GO_LDFLAGS)" $(PKGNAME)/$(path-map.${@F})
go install -tags=single_cert -ldflags "$(DOCKER_GO_LDFLAGS)" $(PKGNAME)/$(path-map.${@F})
@touch $@

build/image/%/$(DUMMY): Makefile build/image/%/payload
Expand Down
4 changes: 2 additions & 2 deletions images/fabric-ca/Dockerfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ RUN chmod +x /usr/local/bin/fabric-ca-client
COPY payload/fabric-ca-server /usr/local/bin
RUN chmod +x /usr/local/bin/fabric-ca-server
#use aliyun source
sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list
sed -i 's/security.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list
RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list
RUN sed -i 's/security.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list
RUN apt-get update && apt-get install -y netcat && rm -rf /var/cache/apt

# Copy the same certificates that are currently hardcoded into the peers
Expand Down

0 comments on commit f21fdd1

Please sign in to comment.