Skip to content

Commit

Permalink
Merge pull request #425 from aesirxio/develop
Browse files Browse the repository at this point in the history
Deploy to master
  • Loading branch information
NguyenBao10 authored Aug 9, 2024
2 parents 0d78715 + cb6cae6 commit 2036a56
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,15 @@ EXPOSE 3000

ENTRYPOINT npx react-inject-env set && npx serve -s build

ARG REACT_APP_ENDPOINT_URL
ARG REACT_APP_BI_ENDPOINT_URL
ARG REACT_APP_WEB3_API_ENDPOINT
ARG REACT_APP_ENDPOINT_ANALYTICS_URL
ARG REACT_APP_SSO_CLIENT_ID
ARG REACT_APP_SSO_CLIENT_SECRET
ARG REACT_APP_SSO_CONCORDIUM_NETWORK
ARG REACT_APP_WOOCOMMERCE_MENU
ARG REACT_APP_DATA_STREAM
ARG REACT_APP_DEMO_USER
ARG REACT_APP_DEMO_PASSWORD
ARG REACT_APP_LOGIN_EMAIL
18 changes: 15 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,21 @@ services:
image: aesirxio/bi-app:latest
pull_policy: always
environment:
REACT_APP_ENDPOINT_URL: ${REACT_APP_BI_ENDPOINT_URL}
REACT_APP_BI_ENDPOINT_URL: ${REACT_APP_BI_ENDPOINT_URL}
REACT_APP_SSO_CLIENT_ID: ${REACT_APP_SSO_CLIENT_ID}
REACT_APP_SSO_CLIENT_SECRET: ${REACT_APP_SSO_CLIENT_SECRET}
REACT_APP_HEADER_JWT: ${REACT_APP_HEADER_JWT}
REACT_APP_DATA_STREAM: ${REACT_APP_DATA_STREAM}
REACT_APP_DEFAULT_USER: ${REACT_APP_DEFAULT_USER}
REACT_APP_DEFAULT_PASSWORD: ${REACT_APP_DEFAULT_PASSWORD}

# ---- Optional ----
# REACT_APP_WEB3_API_ENDPOINT: ${REACT_APP_WEB3_API_ENDPOINT}
# REACT_APP_ENDPOINT_ANALYTICS_URL: ${REACT_APP_ENDPOINT_ANALYTICS_URL}
# REACT_APP_SSO_CONCORDIUM_NETWORK: ${REACT_APP_SSO_CONCORDIUM_NETWORK}
# REACT_APP_ENDPOINT_URL: ${REACT_APP_ENDPOINT_URL}
# REACT_APP_WOOCOMMERCE_MENU: ${REACT_APP_WOOCOMMERCE_MENU}
# REACT_APP_DEMO_USER: ${REACT_APP_DEMO_USER}
# REACT_APP_DEMO_PASSWORD: ${REACT_APP_DEMO_PASSWORD}
# REACT_APP_LOGIN_EMAIL: ${REACT_APP_LOGIN_EMAIL}
ports:
- "${PORT-3000}:3000"

4 changes: 2 additions & 2 deletions packages/aesirx-bi-app/.env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
REACT_APP_BI_ENDPOINT_URL=[1st party server for AesirX Analytics]
REACT_APP_ENDPOINT_ANALYTICS_URL=[1st party server for AesirX Analytics]
REACT_APP_DATA_STREAM=[{"name": "Domain name", "domain": "example.com"},{"name": "Domain name 2", "domain": "example2.com"}]
REACT_APP_SSO_CLIENT_ID=[REPLACE THIS WITH THE PROVIDED REACT_APP_SSO_CLIENT_ID from https://bi.aesirx.io/]
REACT_APP_SSO_CLIENT_SECRET=[REPLACE THIS WITH THE PROVIDED REACT_APP_SSO_CLIENT_SECRET from https://bi.aesirx.io/]
REACT_APP_SSO_CLIENT_ID=[Replace this with the provided SSO CLIENT ID from https://dapp.shield.aesirx.io/licenses]
REACT_APP_SSO_CLIENT_SECRET=[Replace this the provided SSO CLIENT SECRECT from https://dapp.shield.aesirx.io/licenses]
REACT_APP_HEADER_JWT=true
PORT=3000

0 comments on commit 2036a56

Please sign in to comment.