Skip to content

Commit

Permalink
Make nitro-contracts branch configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
gvladika committed Mar 28, 2024
1 parent 3b3ce1a commit 6f70432
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,10 @@ services:
- geth
- sequencer
pid: host
build: rollupcreator/
build:
context: rollupcreator/
args:
NITRO_CONTRACTS_BRANCH: ${NITRO_CONTRACTS_BRANCH:-main}
volumes:
- "config:/config"
- "rollupcreator-data:/workspace"
Expand Down
3 changes: 2 additions & 1 deletion rollupcreator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM node:16-bullseye-slim
ARG NITRO_CONTRACTS_BRANCH=main
RUN apt-get update && \
apt-get install -y git docker.io python3 build-essential curl jq
WORKDIR /workspace
RUN git clone -b testnode-deploy https://github.com/OffchainLabs/nitro-contracts.git ./
RUN git clone -b ${NITRO_CONTRACTS_BRANCH} https://github.com/OffchainLabs/nitro-contracts.git ./
RUN curl -L https://foundry.paradigm.xyz | bash
ENV PATH="${PATH}:/root/.foundry/bin"
RUN foundryup
Expand Down
4 changes: 4 additions & 0 deletions test-node.bash
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ if $force_build; then
docker build blockscout -t blockscout -f blockscout/docker/Dockerfile
fi
fi

NITRO_CONTRACTS_BRANCH="testnode-deploy"
export NITRO_CONTRACTS_BRANCH

LOCAL_BUILD_NODES="scripts rollupcreator"
if $tokenbridge || $l3_token_bridge; then
LOCAL_BUILD_NODES="$LOCAL_BUILD_NODES tokenbridge"
Expand Down

0 comments on commit 6f70432

Please sign in to comment.