Skip to content

Gateway to the Gladius Network, handles communication between the blockchain, services, and p2p networking

License

Notifications You must be signed in to change notification settings

gladiusio/gladius-network-gateway

Repository files navigation

Gladius Network Gateway

See the main gladius-node repository to see more.

Docker

Running the Network Gateway in a docker container

From Docker Hub

$ docker run -it -v YOUR_GLADIUS_PATH:/root/.gladius -p 7947:7947 \
    -p 3001:3001 gladiusio/network-gateway:latest

Build from GitHub

$ docker build --tag=gladiusio/network-gateway .

$ docker run -it -v $(pwd)/gladius:/root/.gladius -p 7947:7947 -p 3001:3001 \
    gladiusio/network-gateway:latest
  • Runs the container mapping the local ./gladius folder in this directory to the Docker container
  • Sets both used ports to the relevant machine ports

Build from source

For your machine

You will need Go 1.11.4 or higher (some issues with go mod checksums below that)

Run make. The binary will be in ./build

Cross compile

Check out the gladius-node repository for Dockerized cross compilation.

Run linter

Optionally, you can install and run linting tools:

go get gopkg.in/alecthomas/gometalinter.v2
gometalinter.v2 --install
make lint

API Documentation

Slate docs coming soon

Known issues

  • You will need to install glibc on systems that don't have it by default (like alpine linux) to be able to run if the binary is dynamically linked. This is due to the C bindings that Ethereum has. One way to fix this is to statically compile the Go binary with -ldflags '-w -extldflags "-static"

About

Gateway to the Gladius Network, handles communication between the blockchain, services, and p2p networking

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •