-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #625 from threshold-network/taco
Add Taco application to dashboard
- Loading branch information
Showing
62 changed files
with
1,150 additions
and
465 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
REACT_APP_SUPPORTED_CHAIN_ID=1337 | ||
REACT_APP_MULTICALL_ADDRESS=0x086813525A7dC7dafFf015Cdf03896Fd276eab60 | ||
REACT_APP_TACO_DOMAIN=dashboard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,5 @@ cypress/plugins | |
# Yarn | ||
node_modules/ | ||
yarn-error.log | ||
.env | ||
.cosine/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Use the specified image | ||
FROM node:18-buster-slim | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Install dependencies | ||
RUN apt-get update && apt-get install -y python3 make g++ git openssh-client ca-certificates && \ | ||
git config --global url."https://".insteadOf git:// && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
apt-get clean | ||
|
||
# Set the environment variables | ||
ENV PYTHON=/usr/bin/python3 | ||
ENV NODE_OPTIONS=--max_old_space_size=3072 | ||
|
||
# Copy package files and install node modules | ||
COPY package*.json yarn.lock ./ | ||
RUN npm install -g node-gyp | ||
RUN yarn install --ignore-scripts | ||
RUN yarn upgrade @keep-network/coverage-pools@sepolia \ | ||
@keep-network/ecdsa@sepolia \ | ||
@keep-network/keep-core@sepolia \ | ||
@keep-network/keep-ecdsa@sepolia \ | ||
@keep-network/random-beacon@sepolia \ | ||
@keep-network/tbtc@sepolia \ | ||
@keep-network/tbtc-v2@sepolia \ | ||
@threshold-network/coverage-pools@npm:@keep-network/coverage-pools@sepolia \ | ||
@threshold-network/solidity-contracts@sepolia | ||
RUN yarn run postinstall | ||
|
||
# Expose port 3000 | ||
EXPOSE 3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: "3.8" | ||
|
||
services: | ||
threshold-dashboard: | ||
container_name: threshold-dashboard | ||
working_dir: /app | ||
environment: | ||
- PYTHON=/usr/bin/python3 | ||
- NODE_OPTIONS=--max_old_space_size=3072 | ||
ports: | ||
- "3000:3000" | ||
volumes: | ||
- .:/app # Bind mount the current directory to /app in the container | ||
- /app/node_modules # This will prevent node_modules from being overwritten by the local volume | ||
command: bash -c "yarn format:fix && yarn start" | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.