Skip to content

[DO NOT MERGE] [Rosetta] Builds docker with local API and rosetta balance deltas #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN apt-get update && apt-get install -y librocksdb-dev curl xxd openssl
# Install chainweb applications
WORKDIR /chainweb
# RUN curl -Ls "https://github.com/kadena-io/chainweb-node/releases/download/<chaineweb-version>/<chainweb-binary-version>" | tar -xzC "/chainweb/"
RUN curl -Ls "https://kadena-cabal-cache.s3.amazonaws.com/chainweb-node/chainweb.8.6.5.ubuntu-18.04.d75df80.tar.gz" | tar -xzC "/chainweb/"
RUN curl -Ls "https://kadena-cabal-cache.s3.amazonaws.com/chainweb-node/chainweb.8.6.5.ubuntu-18.04.1d32f09.tar.gz" | tar -xzC "/chainweb/"

COPY check-reachability.sh .
COPY run-chainweb-node.sh .
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ such a version, you can continue to use it by mounting it via
4. Start Chainweb node:

```sh
docker run -d -p 443:443 -v chainweb-data:/data kadena/chainweb-node
docker run -d -p 1848:1848 -p 443:443 -v chainweb-data:/data kadena/chainweb-node
```

For explanations and additional configuration options (like, for instance, using
Expand All @@ -34,7 +34,7 @@ only have to ensure that it can be reached on the default port 443. You can use
the following shell command to start the node.

```sh
docker run -d -p 443:443 kadena/chainweb-node
docker run -d -p 1848:1848 -p 443:443 kadena/chainweb-node
```

If you are running the node from a local network with NAT (network address
Expand All @@ -45,7 +45,7 @@ Using a different port is possible, too. For that the public port number must be
provided the Chainweb node in the environment.

```sh
docker run -d -p 1789:1789 -e "CHAINWEB_PORT=1789" kadena/chainweb-node
docker run -d -p 1848:1848 -p 1789:1789 -e "CHAINWEB_PORT=1789" kadena/chainweb-node
```

More options to configure the node are described at the bottom of this document.
Expand Down Expand Up @@ -86,6 +86,7 @@ follows:
```sh
docker run \
--detach \
--publish 1848:1848 \
--publish 443:443 \
--name chainweb-node \
chainweb-node-with-db \
Expand All @@ -111,6 +112,7 @@ docker run -ti --rm \
# 2. Use the database volume with a Chainweb node
docker run \
--detach \
--publish 1848:1848 \
--publish 443:443 \
--name chainweb-node \
--mount type=volume,source=chainweb-data,target=/data \
Expand All @@ -134,6 +136,7 @@ The following example provides a public miner key and an account name:
```sh
docker run \
--detach \
--publish 1848:1848 \
--publish 443:443 \
-e "MINER_KEY=26a9285cd8db34702cfef27a5339179b5a26373f03dd94e2096b0b3ba6c417da" \
-e "MINER_ACCOUNT=merle" \
Expand Down Expand Up @@ -218,6 +221,7 @@ Here is an example for how to use these settings:
```sh
docker run \
--detach \
--publish 1848:1848 \
--publish 1789:1789 \
--name chainweb-node \
--env "CHAINWEB_PORT=1789" \
Expand Down
3 changes: 3 additions & 0 deletions chainweb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ chainweb:
fetchTimeout: 3000000
initialCutHeightLimit: null
rosetta: true
localApi:
interface: '*'
port: 1848
logging:
telemetryBackend:
enabled: true
Expand Down