See the main gladius-node repository to see more.
Running the Network Gateway in a docker container
$ docker run -it -v YOUR_GLADIUS_PATH:/root/.gladius -p 7947:7947 \
-p 3001:3001 gladiusio/network-gateway:latest
$ 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
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
Check out the gladius-node repository for Dockerized cross compilation.
Optionally, you can install and run linting tools:
go get gopkg.in/alecthomas/gometalinter.v2
gometalinter.v2 --install
make lint
Slate docs coming soon
- 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"