Skip to content

Commit

Permalink
fix: typo, human readable bug, and latest image push (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa committed Aug 13, 2024
1 parent cdedbc5 commit b045792
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/actions/prepare/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ runs:
uses: docker/metadata-action@v5
with:
images: ethpandaops/ethereum-genesis-generator
flavor: latest=true
flavor: latest=auto
tags: |
type=semver,pattern={{version}}
type=ref,event=branch
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Create a ethereum consensus/execution layer testnet genesis and optionally expos

### Examples

You can provide your own configuration directory. Have a look at the example in [`config-example`](config-example).
Create a new file with your custom configuration in /config/values.env. You can use the [values.env](config-example/values.env) file as a template.

```sh
# Create the output directory
Expand All @@ -13,17 +13,17 @@ mkdir output
# Overwriting the config files and generating the EL and CL genesis
docker run --rm -it -u $UID -v $PWD/output:/data \
-v $PWD/config/values.env:/config/values.env \
ethpandaops/ethereum-genesis-generator:latest all
ethpandaops/ethereum-genesis-generator:master all

# Just creating the EL genesis
docker run --rm -it -u $UID -v $PWD/output:/data \
-v $PWD/config/values.env:/config/values.env \
ethpandaops/ethereum-genesis-generator:latest el
ethpandaops/ethereum-genesis-generator:master el

# Just creating the CL genesis
docker run --rm -it -u $UID -v $PWD/output:/data \
-v $PWD/config/values.env:/config/values.env \
ethpandaops/ethereum-genesis-generator:latest cl
ethpandaops/ethereum-genesis-generator:master cl
```
### Environment variables

Expand Down
2 changes: 1 addition & 1 deletion defaults/defaults.env
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ export SHARD_COMMITTEE_PERIOD="${SHARD_COMMITTEE_PERIOD:-256}"
export SAMPLES_PER_SLOT="${SAMPLES_PER_SLOT:-8}"
export CUSTODY_REQUIREMENT="${CUSTODY_REQUIREMENT:-4}"
export DATA_COLUMN_SIDECAR_SUBNET_COUNT="${DATA_COLUMN_SIDECAR_SUBNET_COUNT:-128}"
export MAX_BLOBS_PER_BLOCK:"${MAX_BLOBS_PER_BLOCK:-6}"
export MAX_BLOBS_PER_BLOCK="${MAX_BLOBS_PER_BLOCK:-6}"
export EL_PREMINE_ADDRS="${EL_PREMINE_ADDRS:-"{}"}"
export ADDITIONAL_PRELOADED_CONTRACTS="${ADDITIONAL_PRELOADED_CONTRACTS:-"{}"}" # '{"0x123463a4B065722E99115D6c222f267d9cABb524": {"balance": "1ETH","code": "0x123465","storage": {},"nonce": 0,"secretKey": "0x"}}'
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ gen_cl_config(){
mkdir -p /data/parsed
HUMAN_READABLE_TIMESTAMP=$(date -u -d @"$GENESIS_TIMESTAMP" +"%Y-%b-%d %I:%M:%S %p %Z")
COMMENT="# $HUMAN_READABLE_TIMESTAMP"
sed -i "s/#HUMAN_TIME_PLACEHOLDER/$COMMENT/" /config/cl/config.yaml
envsubst < /config/cl/config.yaml > /data/metadata/config.yaml
sed -i "s/#HUMAN_TIME_PLACEHOLDER/$COMMENT/" /data/metadata/config.yaml
envsubst < /config/cl/mnemonics.yaml > $tmp_dir/mnemonics.yaml
# Conditionally override values if preset is "minimal"
if [[ "$PRESET_BASE" == "minimal" ]]; then
Expand Down

0 comments on commit b045792

Please sign in to comment.