This repository has been archived by the owner on May 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
82 changed files
with
2,944 additions
and
1,609 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
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,20 @@ | ||
FROM node:12.13.0-alpine3.10 | ||
WORKDIR /root | ||
ENV HOME /root | ||
RUN apk add --update --no-cache bash curl g++ gcc git jq make python | ||
RUN npm config set unsafe-perm true | ||
RUN npm install -g [email protected] | ||
RUN curl https://raw.githubusercontent.com/vishnubob/wait-for-it/ed77b63706ea721766a62ff22d3a251d8b4a6a30/wait-for-it.sh > /bin/wait-for && chmod +x /bin/wait-for | ||
|
||
COPY modules/bot/package.json package.json | ||
RUN npm install --only=production > /dev/null 2>&1 | ||
# In staging mode we bundle source from @connext packages into the node bundle | ||
# This means the node bundle needs access to the deps for @connext packages too | ||
RUN cp -r node_modules/@connext/*/node_modules/* node_modules | ||
COPY modules/bot/ops ops | ||
COPY modules/bot/dist dist | ||
# used to fund agents | ||
COPY modules/contracts/dist contracts/dist | ||
ENV PATH="./node_modules/.bin:${PATH}" | ||
EXPOSE 3333 | ||
ENTRYPOINT ["bash", "ops/entry.sh"] |
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,12 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
echo "Bot registry container launched!" | ||
|
||
function finish { | ||
echo && echo "Bot container exiting.." && exit | ||
} | ||
|
||
trap finish SIGTERM SIGINT | ||
echo "Launching registry!";echo | ||
npm run start:registry |
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.