diff options
-rw-r--r-- | GNUmakefile | 4 | ||||
-rwxr-xr-x | bin/install_dkg_dep.sh | 4 | ||||
-rw-r--r-- | images/dexon-alpine/Dockerfile | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/GNUmakefile b/GNUmakefile index e1fc38a..bbf6c9f 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -7,7 +7,7 @@ else BINDIR := $(abspath $(BINDIR)) endif PROJECT_ROOT=github.com/dexon-foundation/dexon-consensus-core -BUILDER_REPO = cobinhooddev/ci-base-alpine +BUILDER_REPO = dexonfoundation/dexon-alpine ifeq ($(DOCKER),true) GO_LDFLAGS += -linkmode external -extldflags \"-static\" @@ -30,6 +30,8 @@ ifeq ($(DOCKER),true) -e "GOPATH=/go" \ -w /go/src/$(PROJECT_ROOT) \ $(BUILDER_REPO):latest sh -c "\ + cd .dep/dkg/mcl && make clean; cd -; \ + cd .dep/dkg/bls && make clean && make test_go DOCKER=alpine -j; cd -; \ go build -o /artifacts/$1 $(PROJECT_ROOT)/cmd/$1" else @mkdir -p $(BINDIR) diff --git a/bin/install_dkg_dep.sh b/bin/install_dkg_dep.sh index 56ac6b3..40ae2be 100755 --- a/bin/install_dkg_dep.sh +++ b/bin/install_dkg_dep.sh @@ -4,7 +4,6 @@ if [ -e .dep/dkg ]; then exit 0 fi -rm -rf vendor/github.com/herumi/* if [ ! -d .dep/dkg ]; then mkdir -p .dep/dkg cd .dep/dkg @@ -17,4 +16,5 @@ if [ ! -d .dep/dkg ]; then make test_go -j cd ../../../ fi -cp -r .dep/dkg/* vendor/github.com/Spiderpowa +cd vendor/github.com/Spiderpowa && rm -rf * +ln -s ../../../.dep/dkg/* . diff --git a/images/dexon-alpine/Dockerfile b/images/dexon-alpine/Dockerfile new file mode 100644 index 0000000..1b4f9b3 --- /dev/null +++ b/images/dexon-alpine/Dockerfile @@ -0,0 +1,4 @@ +FROM golang:alpine +MAINTAINER Jimmy Hi <jimmy.hu@dexon.org> + +RUN apk add --update-cache build-base gmp-dev openssl-dev |