ethereumproject / go-ethereum

Go language implementation of the original/classic design of the Ethereum protocol
GNU Lesser General Public License v3.0
441 stars 166 forks source link

WIP: Add Dockerfile for autobuild #697

Closed realcodywburns closed 5 years ago

realcodywburns commented 5 years ago

Adds:

Build Geth in a stock Go builder container

FROM golang:1.11-alpine as builder

RUN apk add --no-cache bash git make gcc musl-dev linux-headers

RUN go get -v github.com/ethereumproject/go-ethereum/... RUN go install github.com/ethereumproject/go-ethereum/cmd/geth RUN cp -R ./bin /usr/local/bin/

EXPOSE 8545:8546 30303:30303/udp ENTRYPOINT ["geth"]

So hub.docker.com/r/ethereumclassic can do auto builds of geth

tzdybal commented 5 years ago

This is a bit more complicated than this ;) Because we probably want to build an image with SputnikVM enabled, and with correct version number compiled in geth binary. Best option would be to use Makefile for building, instead of plain go install. Rust/Cargo is another dependency to install.

realcodywburns commented 5 years ago

this isnt much more complicated. give me a bit

realcodywburns commented 5 years ago

Closing reopening on http://github.com/ethereumclassic/go-ethereum org repo