Code Monkey home page Code Monkey logo

gladius-network-gateway's Introduction

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"

gladius-network-gateway's People

Contributors

code-merc avatar kleoken avatar overtfuture avatar speedaemon avatar

Watchers

 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.