-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Network list by env * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix: Added testnet env file * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * changes to make test image for test environment, prod image that only has cc3 testnet * fix: Update order * fixed dockerfiles * fix: Default Network * fix: env back * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix: yarn build * fix: Lint * fix: Lint * fix: reverse yarn lock * fix: update yarn lock * fix: by node v21 --------- Co-authored-by: Frank Li <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Thomas McDonald <[email protected]>
- Loading branch information
1 parent
5f9b68c
commit 3482a7d
Showing
13 changed files
with
1,444 additions
and
1,282 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,15 +4,12 @@ | |
# build environment | ||
FROM node:21 as build | ||
|
||
WORKDIR /tmp | ||
RUN npm install yarn --legacy-peer-deps | ||
|
||
WORKDIR /app | ||
COPY . . | ||
RUN git config --global url."https://github.com/".insteadOf [email protected]: \ | ||
&& git config --global url."https://".insteadOf ssh://git \ | ||
&& yarn install \ | ||
&& yarn build | ||
RUN yarn policies set-version '3.3.1' | ||
|
||
RUN yarn install \ | ||
&& yarn run build | ||
|
||
# production environment | ||
FROM nginx:1.25.3-alpine | ||
|
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,19 @@ | ||
# hadolint global ignore=DL3016 | ||
# checkov:skip=CKV_DOCKER_3:Ensure that a user for the container has been created | ||
|
||
# build environment | ||
FROM node:21 as build | ||
|
||
WORKDIR /app | ||
COPY . . | ||
RUN yarn policies set-version '3.3.1' | ||
|
||
RUN yarn install \ | ||
&& yarn run build:testnet | ||
|
||
# test environment | ||
FROM nginx:1.25.3-alpine | ||
HEALTHCHECK CMD wget -O /dev/null http://localhost || exit 1 | ||
COPY --from=build /app/build /usr/share/nginx/html | ||
EXPOSE 80 | ||
CMD ["nginx", "-g", "daemon off;"] |
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
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
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
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,10 +1,10 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"path": "./" | ||
} | ||
"path": "./", | ||
}, | ||
], | ||
"settings": { | ||
"java.configuration.updateBuildConfiguration": "disabled" | ||
} | ||
"java.configuration.updateBuildConfiguration": "disabled", | ||
}, | ||
} |
Oops, something went wrong.