Skip to content

fix: run with docker #9

fix: run with docker

fix: run with docker #9

Workflow file for this run

name: Starknet Installer
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install required packages
run: |
sudo apt-get update
sudo apt-get install -y curl git python3 python3-venv python3-dev build-essential libgmp-dev pkg-config libssl-dev zstd
- name: Install latest Protoc version
run: |
PROTOC_VERSION=23.3 # Specify the version you need here
PROTOC_ZIP=protoc-$PROTOC_VERSION-linux-x86_64.zip
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOC_VERSION/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*'
rm -f $PROTOC_ZIP
- name: Download and extract database file
run: |
mkdir -p ~/pathfinder/data
curl -L https://pub-1fac64c3c0334cda85b45bcc02635c32.r2.dev/sepolia-testnet_0.13.0_74494_pruned.sqlite.zst -o ~/pathfinder/data/sepolia-testnet.sqlite.zst
zstd -d ~/pathfinder/data/sepolia-testnet.sqlite.zst -o ~/pathfinder/data/sepolia-testnet.sqlite
- name: Pull Pathfinder Docker image
run: |
docker pull odesenfans/pathfinder:latest
- name: Run Pathfinder container in the background
run: |
docker run \
--name pathfinder \
--detach \
-p 127.0.0.1:9545:9545 \
--user "$(id -u):$(id -g)" \
-e RUST_LOG=info \
-e PATHFINDER_ETHEREUM_API_URL=${{ secrets.PATHFINDER_ETHEREUM_API_URL }} \
-v $HOME/pathfinder/data:/usr/share/pathfinder/data \
odesenfans/pathfinder:latest \
--storage.state-tries=archive