This repository has been archived by the owner on May 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #759 from hyperledger/develop
Merge develop to master for release
- Loading branch information
Showing
1,553 changed files
with
564,781 additions
and
25,907 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM golang:1.10.1-alpine3.7 | ||
MAINTAINER Monax <[email protected]> | ||
|
||
ENV DOCKER_VERSION "17.12.1-ce" | ||
# This is the image used by the Circle CI config in this directory pushed to quay.io/monax/bosmarmot:ci | ||
# docker build -t quay.io/monax/burrow:ci -f ./.circleci/Dockerfile . | ||
RUN apk add --update --no-cache nodejs netcat-openbsd git openssh-client make bash gcc g++ jq curl | ||
# get docker client | ||
RUN curl -L -o /tmp/docker-$DOCKER_VERSION.tgz https://download.docker.com/linux/static/stable/x86_64/docker-$DOCKER_VERSION.tgz \ | ||
&& tar -xz -C /tmp -f /tmp/docker-$DOCKER_VERSION.tgz \ | ||
&& mv /tmp/docker/docker /usr/bin \ | ||
&& rm -rf /tmp/docker-$DOCKER_VERSION /tmp/docker | ||
RUN go get github.com/jstemmer/go-junit-report | ||
RUN go get -u github.com/golang/dep/cmd/dep | ||
RUN npm install -g mocha | ||
RUN npm install -g mocha-circleci-reporter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,10 @@ | |
.project | ||
run.sh | ||
build_tool.sh | ||
Makefile | ||
Vagrantfile | ||
Dockerfile | ||
CHANGELOG.md | ||
README.md | ||
.circleci | ||
docs | ||
vendor | ||
bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
# do not vendor in dependencies | ||
vendor | ||
|
||
# build target | ||
target | ||
bin/ | ||
|
||
# tests | ||
test_scratch/ | ||
*.log | ||
.burrow | ||
|
||
# Temporary / cached | ||
*.swp | ||
debug | ||
.idea | ||
.vscode | ||
|
||
.gopath_bos | ||
burrow.toml | ||
|
||
commit_hash.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,18 @@ | ||
# We use a multistage build to avoid bloating our deployment image with build dependencies | ||
FROM golang:1.9.0-alpine3.6 as builder | ||
FROM golang:1.10.1-alpine3.7 as builder | ||
MAINTAINER Monax <[email protected]> | ||
|
||
RUN apk add --no-cache --update git | ||
RUN go get github.com/Masterminds/glide | ||
RUN apk add --no-cache --update git bash make | ||
|
||
ARG REPO=$GOPATH/src/github.com/hyperledger/burrow | ||
COPY . $REPO | ||
WORKDIR $REPO | ||
RUN glide install | ||
|
||
# Build purely static binaries | ||
RUN go build --ldflags '-extldflags "-static"' -o bin/burrow ./cmd/burrow | ||
RUN go build --ldflags '-extldflags "-static"' -o bin/burrow-client ./client/cmd/burrow-client | ||
RUN make build | ||
|
||
# This will be our base container image | ||
FROM alpine:3.6 | ||
FROM alpine:3.7 | ||
|
||
ARG REPO=/go/src/github.com/hyperledger/burrow | ||
|
||
|
@@ -27,10 +24,11 @@ USER $USER:$USER | |
|
||
# Copy binaries built in previous stage | ||
COPY --from=builder $REPO/bin/* /usr/local/bin/ | ||
#RUN chown $USER:$USER /usr/local/bin/burrow* | ||
|
||
# Expose ports for 1337:burrow API; 46656:tendermint-peer; 46657:tendermint-rpc | ||
EXPOSE 1337 | ||
EXPOSE 46656 | ||
EXPOSE 46657 | ||
|
||
CMD [ "burrow", "serve" ] | ||
CMD [ "burrow" ] |
Oops, something went wrong.