Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 1.24 KB

README.md

File metadata and controls

68 lines (45 loc) · 1.24 KB

graphelier Service

Specifications

  • Go version: 1.13
  • Python version: 3.5+

Runbook

All commands should be run from the core/ directory. This repo should be placed within your go workspace.

Install

Build and install the service executable inside your go bin directory:

go get -t graphelier/core/graphelier-service/...

Launching graphelier-service

$GOPATH/bin/graphelier-service

Testing

go test graphelier/core/graphelier-service/...

Linting

go fmt graphelier/core/graphelier-service/...

Golang ci bot

Run this command in the project's root

docker run --rm -v $(pwd):/goapp -e RUN=1 -e REPO=github.com/Lercerss/graphelier golangci/build-runner goenvbuild

Scripts

All scripts should be run from the core/scripts directory.

Loading Data

Load data from file containing messages

python -m importer <path_to_messages_file> <start_time> <instrument>

Linting with docker

docker build --target=lint -t graphelier-scripts-lint ./core/scripts
docker run graphelier-scripts-lint

Running tests with docker

docker build --target=test -t graphelier-scripts-test ./core/scripts
docker run graphelier-scripts-test