Skip to content

Commit

Permalink
Add solc to docker container
Browse files Browse the repository at this point in the history
Signed-off-by: Silas Davis <[email protected]>
  • Loading branch information
Silas Davis committed Nov 14, 2018
1 parent 4d96509 commit f23fae1
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
- [EVM] state/Cache no longer allows SetStorage on accounts that do not exist
- [GRPC] GetAccount on unknown account no longer causes a panic

### Added
- [Docker] Added solc 0.4.25 binary to docker container so that burrow deploy has what it needs to function

### Added
- [Execution] panics from executors are captured and pushed to error sink of TxExecution

Expand Down
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# For solc binary
FROM ethereum/solc:0.4.25 as solc-builder
# We use a multistage build to avoid bloating our deployment image with build dependencies
FROM golang:1.10.3-alpine3.8 as builder

Expand All @@ -17,6 +19,8 @@ FROM alpine:3.8
ARG VERSION
ARG VCS_REF=master
ARG BUILD_DATE
ARG USER=burrow
ARG INSTALL_BASE=/usr/local/bin

# Fixed labels according to container label-schema
LABEL org.label-schema.schema-version="1.0"
Expand All @@ -30,13 +34,13 @@ LABEL org.label-schema.vcs-ref=$VCS_REF
LABEL org.label-schema.build-date=$BUILD_DATE

# Run burrow as burrow user; not as root user
ENV USER burrow
ENV BURROW_PATH /home/$USER
RUN addgroup -g 101 -S $USER && adduser -S -D -u 1000 $USER $USER
WORKDIR $BURROW_PATH

# Copy binaries built in previous stage
COPY --from=builder /go/src/github.com/hyperledger/burrow/bin/burrow /usr/local/bin/
COPY --from=builder /go/src/github.com/hyperledger/burrow/bin/burrow $INSTALL_BASE/
COPY --from=solc-builder /usr/bin/solc $INSTALL_BASE/

# Expose ports for 26656:peer; 26658:info; 10997:grpc
EXPOSE 26656
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ build_race: check build_race_db
.PHONY: build_burrow
build_burrow: commit_hash
go build -ldflags "-extldflags '-static' \
-X github.com/hyperledger/burrow/project.commit=$(shell cat commit_hash.txt)" \
-X github.com/hyperledger/burrow/project.commit=$(shell cat commit_hash.txt) \
-X github.com/hyperledger/burrow/project.date=$(shell date -I)" \
-o ${REPO}/bin/burrow ./cmd/burrow

.PHONY: install_burrow
Expand Down
3 changes: 3 additions & 0 deletions NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
- [EVM] state/Cache no longer allows SetStorage on accounts that do not exist
- [GRPC] GetAccount on unknown account no longer causes a panic

### Added
- [Docker] Added solc 0.4.25 binary to docker container so that burrow deploy has what it needs to function

### Added
- [Execution] panics from executors are captured and pushed to error sink of TxExecution

3 changes: 3 additions & 0 deletions project/history.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ var History relic.ImmutableHistory = relic.NewHistory("Hyperledger Burrow", "htt
- [EVM] state/Cache no longer allows SetStorage on accounts that do not exist
- [GRPC] GetAccount on unknown account no longer causes a panic
### Added
- [Docker] Added solc 0.4.25 binary to docker container so that burrow deploy has what it needs to function
### Added
- [Execution] panics from executors are captured and pushed to error sink of TxExecution
`,
Expand Down

0 comments on commit f23fae1

Please sign in to comment.