Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
fix: docker katana (#696)
Browse files Browse the repository at this point in the history
* update katana docker

* disable fees on katana

* pin katana image to 0.4.4
  • Loading branch information
greged93 authored Jan 10, 2024
1 parent 1340f40 commit a6304b0
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 25 deletions.
9 changes: 3 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,13 @@ run-dev:

# Run Katana, Deploy Kakarot, Run Kakarot RPC
katana-rpc-up:
docker compose -f docker-compose.yaml -f docker-compose.katana.yaml up -d --force-recreate --pull always

katana-rpc-down:
docker compose -f docker-compose.yaml -f docker-compose.katana.yaml down --remove-orphans
docker compose -f docker-compose.katana.yaml up --force-recreate

# Run Madara, Deploy Kakarot, Run Kakarot RPC
madara-rpc-up:
docker compose up -d --force-recreate --pull always
docker compose up -d --force-recreate

madara-rpc-down:
docker-down:
docker compose down --remove-orphans

install-katana:
Expand Down
57 changes: 38 additions & 19 deletions docker-compose.katana.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,46 @@
version: '3.2'
version: "3.2"

services:
starknet:
image: ghcr.io/dojoengine/dojo:nightly-5cbe549ec0d8c17fe1abbddea36bf55228043107
image: greged93/katana:v0.4.4
command:
- 'katana'
- '--allow-zero-max-fee'
- '--validate-max-steps'
- '16777216'
- '--invoke-max-steps'
- '16777216'
- '--gas-price'
- '0'
- '--port'
- '9944'
environment:
- HEALTH_CHECK_PORT=9944
- "katana"
- "--disable-fee"
- "--validate-max-steps"
- "16777216"
- "--invoke-max-steps"
- "16777216"
- "--gas-price"
- "1"
ports:
- '9944:9944'
- "5050:5050"
networks:
- internal

kakarot-deployer:
extends:
file: docker-compose.yaml
service: kakarot-deployer
environment:
- ACCOUNT_ADDRESS=0x517ececd29116499f4a1b64b094da79ba08dfd54a3edaa316134c41f8160973
- PRIVATE_KEY=0x1800000000300000180000000000030000000000003006001800006600
# Custom RPC URL for docker
- RPC_URL=http://starknet:5050

deployments-parser:
extends:
file: docker-compose.yaml
service: deployments-parser

kakarot-rpc:
extends:
file: docker-compose.yaml
service: kakarot-rpc
environment:
- ACCOUNT_ADDRESS=0x03ee9e18edc71a6df30ac3aca2e0b02a198fbce19b7480a63a0d71cbd76652e0
- PRIVATE_KEY=0x0300001800000000300000180000000000030000000000003006001800006600
- CHECK_INTERVAL=0.1
- MAX_WAIT=5
- STARKNET_NETWORK=http://starknet:5050

networks:
internal:

volumes:
deployments:
8 changes: 8 additions & 0 deletions docker/katana/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM ghcr.io/dojoengine/dojo:v0.4.4 as dojo

RUN apt-get update && apt-get install -y curl

HEALTHCHECK --interval=10s --timeout=15s --start-period=1s --retries=5 \
CMD curl --request POST \
--header "Content-Type: application/json" \
--data '{"jsonrpc": "2.0", "method": "starknet_chainId", "id": 1}' http://0.0.0.0:5050 || exit 1
File renamed without changes.

0 comments on commit a6304b0

Please sign in to comment.