Skip to content
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

Update references, pass current user to docker compose #16

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 2 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
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ FROM golang:1.17.6 as builder
# Clone repositories
WORKDIR /repos
RUN git clone https://github.com/ElrondNetwork/rosetta-docker-scripts.git --branch=v0.2.1 --depth=1
RUN git clone https://github.com/ElrondNetwork/elrond-config-devnet --branch=D1.3.44.0-rosetta3 --depth=1
RUN git clone https://github.com/ElrondNetwork/elrond-config-mainnet --branch=v1.3.44.0-rosetta2 --depth=1
RUN git clone https://github.com/ElrondNetwork/elrond-config-devnet --branch=D1.3.48.0 --depth=1
RUN git clone https://github.com/ElrondNetwork/elrond-config-mainnet --branch=release-v1.3.48.0 --depth=1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have to use an actual tag here.


WORKDIR /go
RUN git clone https://github.com/ElrondNetwork/elrond-go.git --branch=v1.3.44-rosetta1 --depth=1
RUN git clone https://github.com/ElrondNetwork/elrond-go.git --branch=v1.3.48 --depth=1
RUN git clone https://github.com/ElrondNetwork/rosetta.git --branch=v0.3.0 --depth=1

# Build rosetta
Expand Down
1 change: 1 addition & 0 deletions devnet.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
DOCKER_USER=$(id -u):$(id -g)
OBSERVER_PUBKEY="PUBLIC_KEY_FROM_KEY_FILE"
OBSERVER_ACTUAL_SHARD=0
OBSERVER_PROJECTED_SHARD=0
Expand Down
3 changes: 3 additions & 0 deletions docker-compose-devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ services:
elrond-rosetta-observer-devnet:
ulimits:
nproc: 65535
user: ${DOCKER_USER}
image: elrond-rosetta:latest
container_name: elrond-rosetta-observer-devnet
ports:
Expand All @@ -17,6 +18,7 @@ services:
ipv4_address: 11.0.0.10

elrond-rosetta-online-devnet:
user: ${DOCKER_USER}
image: elrond-rosetta:latest
container_name: elrond-rosetta-online-devnet
ports:
Expand All @@ -29,6 +31,7 @@ services:
ipv4_address: 11.0.0.21

elrond-rosetta-offline-devnet:
user: ${DOCKER_USER}
image: elrond-rosetta:latest
container_name: elrond-rosetta-offline-devnet
ports:
Expand Down
3 changes: 3 additions & 0 deletions docker-compose-mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ services:
elrond-rosetta-observer-mainnet:
ulimits:
nproc: 65535
user: ${DOCKER_USER}
image: elrond-rosetta:latest
container_name: elrond-rosetta-observer-mainnet
ports:
Expand All @@ -17,6 +18,7 @@ services:
ipv4_address: 10.0.0.10

elrond-rosetta-online-mainnet:
user: ${DOCKER_USER}
image: elrond-rosetta:latest
container_name: elrond-rosetta-online-mainnet
ports:
Expand All @@ -29,6 +31,7 @@ services:
ipv4_address: 10.0.0.21

elrond-rosetta-offline-mainnet:
user: ${DOCKER_USER}
image: elrond-rosetta:latest
container_name: elrond-rosetta-offline-mainnet
ports:
Expand Down
1 change: 1 addition & 0 deletions mainnet.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
DOCKER_USER=$(id -u):$(id -g)
OBSERVER_PUBKEY="PUBLIC_KEY_FROM_KEY_FILE"
OBSERVER_ACTUAL_SHARD=0
OBSERVER_PROJECTED_SHARD=0
Expand Down