Skip to content

Commit

Permalink
Merge pull request #3115 from mnaamani/playground-fix
Browse files Browse the repository at this point in the history
Giza: Playground fix
  • Loading branch information
mnaamani committed Jan 26, 2022
2 parents b8e020a + 91a9ba2 commit 00a9e1b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/deploy-playground.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@ on:
description: 'AWS EC2 instance type (t2.micro, t2.large)'
required: false
default: 't2.micro'

stackNamePrefix:
description: 'Additional identifier to include in stack name'
required: false
default: 'playground'
# TODO: customDomain instead of ip_address.nip.io
# customDomain:
# description: 'DNS hostname to use for deployment'
# required: false
# default: ''
defaults:
run:
working-directory: devops/aws
Expand All @@ -29,7 +37,7 @@ jobs:
name: Create an EC2 instance and configure docker-compose stack
runs-on: ubuntu-latest
env:
STACK_NAME: joystream-playground-${{ github.event.inputs.branchName }}-${{ github.run_number }}
STACK_NAME: ${{ github.event.inputs.stackNamePrefix }}-${{ github.event.inputs.branchName }}-${{ github.run_number }}
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions devops/aws/deploy-playground-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
chdir: '{{ remote_code_path }}'
environment:
PERSIST: 'true'
COLOSSUS_1_NODE_URI: 'https://{{ inventory_hostname }}.nip.io/colossus-1/'
DISTRIBUTOR_1_NODE_URI: 'https://{{ inventory_hostname }}.nip.io/distributor-1/'
COLOSSUS_1_URL: 'https://{{ inventory_hostname }}.nip.io/colossus-1/'
DISTRIBUTOR_1_URL: 'https://{{ inventory_hostname }}.nip.io/distributor-1/'
async: 1800
poll: 0
register: compose_result
Expand Down
4 changes: 2 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ docker-compose up -d joystream-node
## Init the chain with some state
export SKIP_MOCK_CONTENT=true
HOST_IP=$(tests/network-tests/get-host-ip.sh)
export COLOSSUS_1_URL="http://${HOST_IP}:3333"
export COLOSSUS_1_URL=${COLOSSUS_1_URL:="http://${HOST_IP}:3333"}
export COLOSSUS_1_TRANSACTOR_KEY=$(docker run --rm --pull=always docker.io/parity/subkey:2.0.1 inspect ${COLOSSUS_1_TRANSACTOR_URI} --output-type json | jq .ss58Address -r)
export DISTRIBUTOR_1_URL="http://${HOST_IP}:3334"
export DISTRIBUTOR_1_URL=${DISTRIBUTOR_1_URL:="http://${HOST_IP}:3334"}
./tests/network-tests/run-test-scenario.sh ${INIT_CHAIN_SCENARIO}

## Set sudo as the membership screening authority
Expand Down

0 comments on commit 00a9e1b

Please sign in to comment.