Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
6bb7e7a
transfers' widget MVP (#213)
enemycnt Feb 18, 2022
46e87fb
Bump simple-get from 2.8.1 to 2.8.2 (#218)
dependabot[bot] Feb 21, 2022
4b96ef3
Bump url-parse from 1.5.4 to 1.5.7 (#219)
dependabot[bot] Feb 21, 2022
bae987d
Wallet connect integration (#215)
wainola Feb 24, 2022
5a7f9cb
Widget config (#214)
enemycnt Feb 24, 2022
287125f
Responsive markup for widget (#220)
enemycnt Mar 2, 2022
3624e45
Bump url-parse from 1.5.7 to 1.5.10 (#223)
dependabot[bot] Mar 2, 2022
ef1e7fb
local guide documentation (#224)
wainola Mar 18, 2022
4dcee31
external wallet connection for widget (#229)
enemycnt Mar 24, 2022
ac33bcb
Replace onobard.js with own connection logic (#231)
enemycnt Apr 12, 2022
599f142
Replace NetworkManagerProvider and leave one single provider on App (…
enemycnt Apr 26, 2022
671dc60
running UI readme update
enemycnt May 11, 2022
01b1d49
fix event type name to "setDestinationChain" (#246)
enemycnt Jun 2, 2022
7dab007
UI explorer package (#245)
wainola Jun 2, 2022
fb36ff9
Bump eventsource from 1.1.0 to 1.1.1 (#248)
dependabot[bot] Jun 7, 2022
7543356
Bump cross-fetch from 2.2.5 to 2.2.6 (#238)
dependabot[bot] Jun 7, 2022
859a45d
Bump minimist from 1.2.5 to 1.2.6 (#232)
dependabot[bot] Jun 7, 2022
ac11bd6
SDK integration (#249)
wainola Jun 8, 2022
58da348
dockerfile for explorer ui (#253)
wainola Jun 8, 2022
13c5fca
Fee support (#254)
enemycnt Jun 10, 2022
cb6840b
removed obsolete substrate support (#256)
enemycnt Jun 10, 2022
76cfb15
bump version 1.1.0 for core package
enemycnt Jun 13, 2022
14c333b
version core 1.1.1
enemycnt Jun 14, 2022
470778e
remove references to linked package and use them from npm (#258)
wainola Jun 16, 2022
d921099
AWS SSM support (#263)
enemycnt Jul 8, 2022
e44be39
Update README.md
P1sar Jul 14, 2022
9afa504
updates on readme and several files (#270)
wainola Jul 19, 2022
54fe659
remove config since we are not using this from script (#272)
wainola Jul 19, 2022
126532e
company association fixes (#275)
Jul 21, 2022
645c3d8
SDK events support (#267)
enemycnt Jul 25, 2022
8b8cdef
Rename all packages in monorepo to use sygma (#279)
enemycnt Jul 27, 2022
da33ae3
Add ECS Apps (#255)
mschirbel Jul 27, 2022
4d7733b
Deployment readme for TransferUI and Config server (#281)
enemycnt Jul 27, 2022
210ed1a
ECS Services: Explorer, Transfer and ConfigServer (#282)
mschirbel Aug 11, 2022
5d70819
Bump terser from 4.8.0 to 4.8.1
dependabot[bot] Aug 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 1 addition & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
node_modules
/packages/core/node_modules
/packages/example/node_modules
**/node_modules
npm-debug.log
Dockerfile
.dockerignore
58 changes: 58 additions & 0 deletions .github/workflows/deploy_ecs-config-server_STAGE.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Deploy ECS Config Server

on:
push:
branches:
- main

# on:
# workflow_run:
# workflows:
# - Docker build and push
# branches:
# - main
# types:
# - completed

env:
AWS_REGION: "us-east-2"
ECR_REPOSITORY: config-server-stage
ENVIRONMENT: STAGE

jobs:
deploy:
name: Deploy Config Server
runs-on: ubuntu-18.04

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v2
- run: sleep 5
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::852551629426:role/github-actions-${{ env.ENVIRONMENT }}-chainbridge
aws-region: ${{ env.AWS_REGION }}
role-session-name: GithubActions

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Build, tag, and push image to Amazon ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
run: |
docker build -f ./server.dockerfile -t $ECR_REGISTRY/$ECR_REPOSITORY:${{ env.ENVIRONMENT }} .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:${{ env.ENVIRONMENT }}

- name: Deploy to Amazon ECS
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ecs/task_definition-config-server-${{ env.ENVIRONMENT }}.json
service: config-server-service-${{ env.ENVIRONMENT }}
cluster: config-server-${{ env.ENVIRONMENT }}
wait-for-service-stability: true
59 changes: 59 additions & 0 deletions .github/workflows/deploy_ecs-explorer-ui_STAGE.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# name: Deploy ECS Explorer UI

# on:
# push:
# branches:
# - devops/ecs-services
# # on:
# # workflow_run:
# # workflows:
# # - Docker build and push
# # branches:
# # - main
# # types:
# # - completed

# env:
# AWS_REGION: "us-east-2"
# ECR_REPOSITORY: explorer-ui-stage
# ENVIRONMENT: STAGE

# jobs:
# deploy:
# name: Deploy Explorer UI
# runs-on: ubuntu-18.04

# permissions:
# contents: read
# id-token: write

# steps:
# - uses: actions/checkout@v2
# - run: sleep 5
# - name: Configure AWS Credentials
# uses: aws-actions/configure-aws-credentials@v1
# with:
# role-to-assume: arn:aws:iam::852551629426:role/github-actions-${{ env.ENVIRONMENT }}-chainbridge
# aws-region: ${{ env.AWS_REGION }}
# role-session-name: GithubActions

# - name: Login to Amazon ECR
# id: login-ecr
# uses: aws-actions/amazon-ecr-login@v1

# - name: Build, tag, and push image to Amazon ECR
# env:
# ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
# run: |
# cp yarn.lock packages/explorer-ui
# cd packages/explorer-ui
# docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:${{ env.ENVIRONMENT }} .
# docker push $ECR_REGISTRY/$ECR_REPOSITORY:${{ env.ENVIRONMENT }}

# - name: Deploy to Amazon ECS
# uses: aws-actions/amazon-ecs-deploy-task-definition@v1
# with:
# task-definition: ecs/task_definition-explorer-ui-${{ env.ENVIRONMENT }}.json
# service: explorer-ui-service-${{ env.ENVIRONMENT }}
# cluster: explorer-ui-${{ env.ENVIRONMENT }}
# wait-for-service-stability: true
60 changes: 60 additions & 0 deletions .github/workflows/deploy_ecs-transfer-ui_STAGE.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Deploy ECS Transfer UI

on:
push:
branches:
- main

# on:
# workflow_run:
# workflows:
# - Docker build and push
# branches:
# - main
# types:
# - completed

env:
AWS_REGION: "us-east-2"
ECR_REPOSITORY: transfer-ui-stage
ENVIRONMENT: STAGE

jobs:
deploy:
name: Deploy Transfer UI
runs-on: ubuntu-18.04

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v2
- run: sleep 5
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::852551629426:role/github-actions-${{ env.ENVIRONMENT }}-chainbridge
aws-region: ${{ env.AWS_REGION }}
role-session-name: GithubActions

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Build, tag, and push image to Amazon ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
CONFIG_SERVER_HOST: config-server-stage.chainsafe.io
CONFIG_SERVER_PORT: 443
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:${{ env.ENVIRONMENT }} --build-arg CONFIG_SERVER_HOST=$CONFIG_SERVER_HOST --build-arg CONFIG_SERVER_PORT=$CONFIG_SERVER_PORT .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:${{ env.ENVIRONMENT }}

- name: Deploy to Amazon ECS
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ecs/task_definition-transfer-ui-${{ env.ENVIRONMENT }}.json
service: transfer-ui-service-${{ env.ENVIRONMENT }}
cluster: transfer-ui-${{ env.ENVIRONMENT }}
wait-for-service-stability: true
13 changes: 12 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,23 @@ FROM node:14-alpine AS builder
RUN apk --no-cache add git
WORKDIR /app
COPY . .
RUN yarn install --frozen-lockfile
RUN yarn install --frozen-lockfile --network-timeout 100000
RUN ls -al
RUN yarn build:core
RUN ls -al ./packages/core

ARG CONFIG_SERVER_HOST
ARG CONFIG_SERVER_PORT

RUN sh create-env-file.sh REACT_APP_CONFIG_SERVER_HOST=$CONFIG_SERVER_HOST REACT_APP_CONFIG_SERVER_PORT=$CONFIG_SERVER_PORT
CMD ["cat", "./packages/exmaple/.env"]

RUN yarn build:ui

# If you want to debug the .env file, uncomment the following line
# CMD ["cat", ".env"]

FROM nginx:1.19-alpine AS server
COPY ./etc/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder ./app/packages/example/build /usr/share/nginx/html
EXPOSE 8000
Loading