Giter VIP home page Giter VIP logo

swarm-docker's Introduction

Official Swarm Docker image

Dockerfile for swarm used on https://swarm-gateways.net and https://open.swarm-gateways.net

Docker tags

  • latest - latest stable release
  • edge - latest build from master
  • v0.x.y - specific stable release

Environment variables

  • PASSWORD - required - Used to setup a sample Ethereum account in the data directory. If a data directory is mounted with a volume, the first Ethereum account from it is loaded, and Swarm will try to decrypt it non-interactively with PASSWORD
  • DATADIR - optional - Defaults to /root/.ethereum
  • CONTAINER_NAME - optional - Defaults to localhost, used as a prefix for measurements and log lines

Swarm command line arguments

All Swarm command line arguments are supported and can be sent as part of the CMD field to the Docker container

Pulling the image

$ docker pull ethdevops/swarm:latest

Running a Swarm container from the command line

$ docker run -e PASSWORD=password123 -t ethdevops/swarm:latest -- \
                          --debug \
                          --verbosity 4

Running a Swarm container with custom ENS endpoint

$ docker run -e PASSWORD=password123 -t ethdevops/swarm:latest -- \
                          --ens-api http://1.2.3.4:8545 \
                          --debug \
                          --verbosity 4

Running a Swarm container with metrics enabled

$ docker run -e PASSWORD=password123 -t ethdevops/swarm:latest -- \
                          --debug \
                          --metrics \
                          --metrics.influxdb.export \
                          --metrics.influxdb.endpoint "http://localhost:8086" \
                          --metrics.influxdb.username "user" \
                          --metrics.influxdb.password "pass" \
                          --metrics.influxdb.database "metrics" \
                          --metrics.influxdb.host.tag "localhost" \
                          --verbosity 4

Running a Swarm container with tracing and pprof server enabled

$ docker run -e PASSWORD=password123 -t ethdevops/swarm:latest -- \
                          --debug \
                          --tracing \
                          --tracing.endpoint 127.0.0.1:6831 \
                          --tracing.svc myswarm \
                          --pprof \
                          --pprofaddr 0.0.0.0 \
                          --pprofport 6060

Running a Swarm container with custom data directory mounted from a volume

$ docker run -e DATADIR=/data -e PASSWORD=password123 -v /tmp/hostdata:/data -t ethdevops/swarm:latest -- \
                          --debug \
                          --verbosity 4

swarm-docker's People

Contributors

nonsense avatar janos avatar holisticode avatar

Watchers

James Cloos avatar Caspar Oostendorp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.