Skip to content
This repository was archived by the owner on Apr 11, 2021. It is now read-only.
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
1 change: 1 addition & 0 deletions docker-compose.env
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ MAX_BATCH_SUBMISSION_TIME=240

L1_NODE_WEB3_URL=http://l1_chain:9545
L2_NODE_WEB3_URL=http://geth_l2:8545
SYNTHETIX_DEPLOYER_URL=http://synthetix_deployer:8081
13 changes: 13 additions & 0 deletions optional/synthetix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: "3"

services:
synthetix_deployer:
image: ethereumoptimism/synthetix-deployer:${SYNTHETIX_DEPLOYER_TAG:-master}
env_file:
- docker-compose.env
environment:
# derived key from mnemonic that is seeded with ETH on L1
- DEPLOYER_PRIVATE_KEY_2=0x23d9aeeaa08ab710a57972eb56fc711d9ab13afdecc92c89586e0150bfa380a6

ports:
- 8081:8081
2 changes: 2 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ INTEGRATION_TESTS_TAG=$(echo $INTEGRATION_TESTS_TAG | sed 's/\//_/g')

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )"

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )"

function run {
cmd="docker-compose -f $DIR/$DOCKERFILE"
if [ -f "$DIR/optional/$PKGS-service.yml" ]; then
Expand Down
38 changes: 38 additions & 0 deletions up-synthetix.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/bash

# Start services without the integration tests
# The `-s` flag takes a string of services to run.
# The `-l` flag will use mounted code.

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )"
SERVICES='geth_l2 l1_chain batch_submitter deployer message_relayer synthetix_deployer'
DOCKERFILE="docker-compose.yml"

while (( "$#" )); do
case "$1" in
-l|--local)
DOCKERFILE="docker-compose.local.yml"
shift 1
;;
-s|--services)
SERVICES="$2"
shift 2
;;
*)
echo "Unknown argument $1" >&2
shift
;;
esac
done

docker-compose \
-f $DIR/$DOCKERFILE \
-f $DIR/optional/tx-ingestion-service.yml \
-f $DIR/optional/synthetix.yml \
down -v --remove-orphans

docker-compose \
-f $DIR/$DOCKERFILE \
-f $DIR/optional/tx-ingestion-service.yml \
-f $DIR/optional/synthetix.yml \
up $SERVICES