-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (38 loc) · 1.19 KB
/
Makefile
File metadata and controls
52 lines (38 loc) · 1.19 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
# StockSim Docker Commands
# Build and start everything
build:
docker-compose build
up:
docker-compose up -d
# Interactive access to simulation container
shell:
docker exec -it stocksim-simulation bash
# Run simulation with specified config (default: demo_config.yaml)
run:
docker exec -it stocksim-simulation python main_launcher.py configs/$(or $(CONFIG),demo_config.yaml)
# Monitoring commands
monitor:
docker stats stocksim-simulation stocksim-rabbitmq
logs:
docker-compose logs -f stocksim
rabbitmq-logs:
docker-compose logs -f rabbitmq
# Resource monitoring during simulation
monitor-csv:
@echo "Logging container stats to monitor.log..."
docker stats --format "table {{.Container}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.NetIO}}\t{{.BlockIO}}" --no-stream >> monitor.log
# Utility commands
charts:
docker exec -it stocksim-simulation python utils/plot_charts.py --help
edit-config:
docker exec -it stocksim-simulation nano configs/demo.yaml
# Cleanup
down:
docker-compose down
clean:
docker-compose down -v
docker system prune -f
# Show current resource usage
stats:
docker stats --no-stream
.PHONY: build up shell run monitor logs rabbitmq-logs monitor-csv charts edit-config down clean stats