Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

feat: removal of local nix/pkgs folder #29

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,23 @@ export HOST_UID HOST_GID
export DOCKER_CONFIGS=${PRJ_ROOT}/docker/configs
export DOCKER_LOCAL_DATA=${PRJ_ROOT}/.local/docker/data

# used by geth setup in docker-compose
# used by procfile
export LOCAL_CONFIGS=${PRJ_ROOT}/procfile/configs
export LOCAL_DATA=${PRJ_ROOT}/.local

# geth
export GETH_NETWORK_ID=1214
export GETH_ACCOUNT_PASSWORD=!Pa55word

# erigon
export ERIGON_DATA=${DOCKER_LOCAL_DATA}/erigon
export GETH_DATA=${LOCAL_DATA}/geth
export GETH_IPC=${GETH_DATA}/geth.ipc

# prysm
export PRYSM_CHECKPOINT=${DOCKER_CONFIGS}/prysm/checkpoints
export PRYSM_CHECKPOINT_URL="https://sepolia.checkpoint-sync.ethdevops.io"
export PRYSM_CHECKPOINT=${LOCAL_CONFIGS}/genesis.ssz
export PRYSM_DATA=${DOCKER_LOCAL_DATA}/prysm

# nats
export NATS_DATA=${LOCAL_DATA}/nats-server

# allow local .envrc overrides
[[ -f .envrc.local ]] && source_env .envrc.local

# ensure local data directories exist
mkdir -p ${PRYSM_DATA}
mkdir -p ${ERIGON_DATA}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ node_modules/
/out

##############################
## Docker
## Docker & Procfile
##############################
/.local/
9 changes: 0 additions & 9 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,3 @@ nix-check:
clean:
rm -rf ./result*
alias c := clean

# Alias docker-compose up
up:
mkdir -p $PRYSM_DATA $ERIGON_DATA
docker-compose up -d

# Alias for docker-compose down
down:
docker-compose down --remove-orphans -v
10 changes: 10 additions & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Procfile - https://devcenter.heroku.com/articles/procfile

# Prysm / Sepolia / https://docs.prylabs.network/docs/install/install-with-script
prysm: beacon-chain --accept-terms-of-use --sepolia --datadir="${PRYSM_DATA}" --rpc-host="0.0.0.0" --execution-endpoint="${GETH_IPC}" --monitoring-host="0.0.0.0" --grpc-gateway-host="0.0.0.0" --grpc-gateway-corsdomain="*" --checkpoint-sync-url="${PRYSM_CHECKPOINT_URL}" --genesis-beacon-api-url="${PRYSM_CHECKPOINT_URL}" --genesis-state="${PRYSM_CHECKPOINT}"

# Geth / Sepolia
geth: geth --sepolia --datadir="${GETH_DATA}" --http --http.api eth,net,engine,admin --ws --override.terminaltotaldifficulty 17000000000000000

# NATS / Server / https://docs.nats.io/running-a-nats-service/introduction/running
nats: nats-server --addr="0.0.0.0" --port=4222 --http_port=8222 --jetstream --store_dir="${NATS_DATA}"
188 changes: 0 additions & 188 deletions docker-compose.eth1.yaml

This file was deleted.

Loading