openethereum/scripts/docker
Denis Granha f9633e69fe
vergen library seems to depend not only on the .git folder content but also on the git binary (#11651)
for generating COMMIT DATE and SHA reference used by the openethereum binary to display in the log. This commit
tries to solve it in the alpine docker image

Co-authored-by: Denis Granha <denis@gnosis.io>
2020-04-27 12:40:05 +02:00
..
alpine vergen library seems to depend not only on the .git folder content but also on the git binary (#11651) 2020-04-27 12:40:05 +02:00
centos Fix project name, links, rename the binaries (#11580) 2020-03-25 17:16:51 +01:00
hub Fix project name, links, rename the binaries (#11580) 2020-03-25 17:16:51 +01:00
ubuntu-aarch64 Fix project name, links, rename the binaries (#11580) 2020-03-25 17:16:51 +01:00
ubuntu-arm Fix project name, links, rename the binaries (#11580) 2020-03-25 17:16:51 +01:00
README.md Fix project name, links, rename the binaries (#11580) 2020-03-25 17:16:51 +01:00

Usage

docker build -f docker/ubuntu/Dockerfile --tag ethcore/openethereum:branch_or_tag_name .

Usage - CentOS

Builds a lightweight non-root OpenEthereum docker image:

git clone https://github.com/openethereum/openethereum.git
cd openethereum
./scripts/docker/centos/build.sh

Fully customised build:

OPENETHEREUM_IMAGE_REPO=my-personal/openethereum \
OPENETHEREUM_BUILDER_IMAGE_TAG=build-latest \
OPENETHEREUM_RUNNER_IMAGE_TAG=centos-openethereum-experimental \
./scripts/docker/centos/build.sh

Default values:

# The image name
OPENETHEREUM_IMAGE_REPO - openethereum/openethereum

# The tag to be used for builder image, git commit sha will be appended
OPENETHEREUM_BUILDER_IMAGE_TAG - build

# The tag to be used for runner image
OPENETHEREUM_RUNNER_IMAGE_TAG - latest

All default ports you might use will be exposed:

#      secret
#      store     ui   rpc  ws   listener  discovery
#      ↓    ↓         ↓    ↓    ↓    ↓         ↓
EXPOSE 8082 8083 8180 8545 8546 30303/tcp 30303/udp