-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[INF-76] New Local Deployment Setup with docker-compose (#2988)
Co-authored-by: Raymond Jacobson <ray@audius.co>
- Loading branch information
1 parent
a3bc512
commit ba91046
Showing
55 changed files
with
80,542 additions
and
38,287 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM node:16 as builder | ||
COPY package*.json ./ | ||
RUN npm install --loglevel verbose | ||
|
||
FROM node:16-slim | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY --from=builder /node_modules ./node_modules | ||
COPY . . | ||
|
||
ARG bootstrapSPIds | ||
ARG bootstrapSPDelegateWallets | ||
ARG bootstrapSPOwnerWallets | ||
|
||
RUN ./scripts/setup-predeployed-ganache.sh /usr/db | ||
|
||
HEALTHCHECK --interval=5s --timeout=5s --retries=10 \ | ||
CMD node -e "require('http').request('http://localhost:8545').end()" || exit 1 | ||
|
||
CMD ["npx", "ganache", "--server.host", "0.0.0.0", "--database.dbPath", "/usr/db", "--wallet.deterministic", "--wallet.totalAccounts", "50"] |
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.