Closed veaceslavdoina closed 1 year ago
This is a follow up of the https://github.com/codex-storage/nim-codex/issues/412 and we added automated Docker builds.
Some information about performed experiments, because resulted image size is not so small
slim amd64
slim arm64
alpine amd64
alpine arm64
We chose the slim one, as a smallest officially supported - Choosing the best Node.js Docker image. Also multi-stage builds provides a smaller size.
slim
Images are published under Codex organization repository - codexstorage/codex-contracts-eth
Now, we use same approach as for nim-codex
# On commit sha-0a20b12 sha-0a20b12-linux-arm64 sha-0a20b12-linux-amd64 # On tag latest 0.0.1 0.0.1-linux-arm64 0.0.1-linux-amd64
Usage
# Run docker run \ --rm \ --name codex-contracts-eth \ codexstorage/codex-contracts-eth:sha-0a20b12 # Publish port docker run \ --rm \ --publish 8545:8545 \ --name codex-contracts-eth \ codexstorage/codex-contracts-eth:sha-0a20b12 # Check enpoint curl localhost:8545 \ --request POST \ --silent \ --data '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params":["latest", false], "id": 1}' | \ jq -r
This is a follow up of the https://github.com/codex-storage/nim-codex/issues/412 and we added automated Docker builds.
Some information about performed experiments, because resulted image size is not so small
slim amd64
slim arm64
alpine amd64
alpine arm64
slim amd64
slim arm64
alpine amd64
alpine arm64
We chose the
slim
one, as a smallest officially supported - Choosing the best Node.js Docker image. Also multi-stage builds provides a smaller size.Images are published under Codex organization repository - codexstorage/codex-contracts-eth
Now, we use same approach as for nim-codex
Usage