Skip to content

Commit

Permalink
BE-586 | Fix fillbot docker-compose (#538)
Browse files Browse the repository at this point in the history
* BE-586 | Fix fillbot docker-compose

Fixes errors running fillbot via docker-compose
  • Loading branch information
deividaspetraitis authored Oct 25, 2024
1 parent 1c29822 commit 6db9254
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ __debug_bin*
debug.test*

# Local env for the order book filler
ingest/usecase/plugins/orderbookfiller/.env
ingest/usecase/plugins/orderbook/fillbot/.env
config_orderbook_fill_plugin.json

.envrc
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -228,23 +228,26 @@ datadog-agent-start:
-e DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT=0.0.0.0:4317 \
gcr.io/datadoghq/agent:latest

#### Order Book Fill Bot Plugin

#### Orderbook plugins ####
####
#### Orderbook Fill Bot Plugin

# Starts the full-scale order fill bot.
# - Creates a copy of the config.json file with the updated
# order fill bot configuration.
# Starts node and SQS in the background.
# - Starts DataDog service
# Use ./ingest/usecase/plugins/orderbook/fillbot/.env to configure the keyring.
orderbook-filler-start:
orderbook-fillbot-start:
./ingest/usecase/plugins/orderbook/fillbot/create_copy_config.sh
cd ./ingest/usecase/plugins/orderbook/fillbot && docker compose up -d
cd ../../../../
echo "Order Book Filler Bot Started"
sleep 10 && osmosisd status
sleep 10 && docker logs -f osmosis-sqs

orderbook-filler-stop:
orderbook-fillbot-stop:
cd ./ingest/usecase/plugins/orderbook/fillbot && docker compose down
cd ../../../../
echo "Order Book Filler Bot Stopped"
4 changes: 2 additions & 2 deletions ingest/usecase/plugins/orderbook/fillbot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ of POC implementation. In the future, this can be improved to support multiple b
## Starting (via docker compose)

1. Ensure that the "Configuration" section is complete.
2. From project root, `cd` into `ingest/usecase/plugins/orderbookfiller`
2. From project root, `cd` into `ingest/usecase/plugins/orderbook/fillbot`
3. Update `.env` with your environment variables.
4. Run `make orderbook-filler-start`
4. Run `make orderbook-fillbot-start`
5. Run `osmosisd status` to check that the node is running and caught up to tip.
6. Curl `/healthcheck` to check that SQS is running `curl http://localhost:9092/healthcheck`
6 changes: 3 additions & 3 deletions ingest/usecase/plugins/orderbook/fillbot/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
command:
- start
- --home=/osmosis/.osmosisd
image: osmolabs/osmosis-dev:v25.x-c775cee7-1722825184
image: osmolabs/osmosis:26.0.2
container_name: osmosis
restart: always
ports:
Expand Down Expand Up @@ -61,7 +61,7 @@ services:
- --host
- sqs-fill-bot
build:
context: ../../../../
context: ../../../../../
dockerfile: Dockerfile
depends_on:
- osmosis
Expand Down Expand Up @@ -144,4 +144,4 @@ services:
logging:
driver: "json-file"
options:
max-size: "512m"
max-size: "512m"

0 comments on commit 6db9254

Please sign in to comment.