-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
84 lines (76 loc) · 2.36 KB
/
docker-compose.yml
File metadata and controls
84 lines (76 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: hypercore-sdk
x-hyper-env: &hyper-env
ALEATORIC_RPC_URL: ${ALEATORIC_RPC_URL:-}
ALEATORIC_MARKET_WS_URL: ${ALEATORIC_MARKET_WS_URL:-}
HYPER_MARKET_WS_URL: ${HYPER_MARKET_WS_URL:-}
ALEATORIC_DISK_WS_URL: ${ALEATORIC_DISK_WS_URL:-}
ALEATORIC_STREAM_URL: ${ALEATORIC_STREAM_URL:-}
ALEATORIC_GRPC_TARGET: ${ALEATORIC_GRPC_TARGET:-}
ALEATORIC_GRPC_SERVER_NAME: ${ALEATORIC_GRPC_SERVER_NAME:-}
ALEATORIC_GRPC_KEY: ${ALEATORIC_GRPC_KEY:-}
ALEATORIC_MARKET_WS_KEY: ${ALEATORIC_MARKET_WS_KEY:-}
API_KEY: ${API_KEY:-}
HYPER_API_KEY: ${HYPER_API_KEY:-}
RPC_GATEWAY_KEY: ${RPC_GATEWAY_KEY:-}
RPC_KEY: ${RPC_KEY:-}
GRPC_STREAM_KEY: ${GRPC_STREAM_KEY:-}
DISK_STREAM_KEY: ${DISK_STREAM_KEY:-}
UNIFIED_STREAM_KEY: ${UNIFIED_STREAM_KEY:-}
UNIFIED_KEY: ${UNIFIED_KEY:-}
api_keys: ${api_keys:-}
x-runtime-service: &runtime-service
build:
context: .
target: runtime
image: hypercore-sdk:runtime
working_dir: /app
environment: *hyper-env
init: true
services:
cli:
<<: *runtime-service
profiles: ["tools"]
command: ["--help"]
ws-console:
<<: *runtime-service
profiles: ["console"]
entrypoint: ["python", "examples/orderbook_trades_console.py"]
command: ["--coin", "BTC", "--depth", "12", "--trade-limit", "30"]
stdin_open: true
tty: true
grpc-console:
<<: *runtime-service
profiles: ["console"]
entrypoint: ["python", "examples/grpc_l2book_trades_console.py"]
command: ["--coin", "BTC", "--history-limit", "30"]
stdin_open: true
tty: true
benchmark:
<<: *runtime-service
profiles: ["bench"]
entrypoint: ["python", "examples/feed_latency_examples.py", "--out-json", "/output/hypercore_feed_compare.json"]
command: ["--coin", "BTC", "--runs", "5"]
volumes:
- ./artifacts:/output
validate:
build:
context: .
target: dev
image: hypercore-sdk:dev
profiles: ["validate"]
working_dir: /app
environment: *hyper-env
init: true
command: ["sh", "-lc", "pytest -q && mypy -p hypercore_sdk && python -m build && python -m twine check dist/*"]
package:
build:
context: .
target: dev
image: hypercore-sdk:dev
profiles: ["package"]
working_dir: /app
environment: *hyper-env
init: true
command: ["sh", "-lc", "python -m build --outdir /dist && python -m twine check /dist/*"]
volumes:
- ./dist:/dist