-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use xud default ports like 8886, 18886, 28886 (#395)
* use xud default ports like 8886, 18886, 28886 * fix xucli create * remove --rpcport for xucli * use xud:latest (master) in testnet * Update images/xud/latest/xud-backup.sh Co-Authored-By: Kilian Rausch ⚡️ <kilian.rausch@gmail.com> Co-authored-by: Kilian Rausch ⚡️ <kilian.rausch@gmail.com>
- Loading branch information
Showing
15 changed files
with
303 additions
and
132 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
This file was deleted.
Oops, something went wrong.
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,27 @@ | ||
FROM node:12-alpine3.11 AS builder | ||
ARG REPO=ExchangeUnion/xud | ||
ARG BRANCH=master | ||
RUN apk add --no-cache git rsync bash musl-dev go python3 make g++ | ||
# This is a "hack" to automatically invalidate the cache in case there are new commits | ||
ADD https://api.github.com/repos/$REPO/commits/$BRANCH /dev/null | ||
RUN git clone -b $BRANCH --depth=2 https://github.com/$REPO | ||
WORKDIR /xud | ||
RUN npm install | ||
RUN npm run compile | ||
RUN npm run compile:seedutil | ||
RUN npm prune --production | ||
RUN rm -rf seedutil/go | ||
|
||
|
||
FROM node:12-alpine3.11 | ||
RUN apk add --no-cache bash supervisor tor | ||
COPY --from=builder /xud /app | ||
COPY entrypoint.sh xud-backup.sh /app/ | ||
COPY start_tor.sh update-backup-dir.sh / | ||
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf | ||
COPY torrc /etc/tor/torrc | ||
RUN ln -s /app/bin/xucli /usr/local/bin/xucli | ||
RUN mkdir -p /root/.xud/tor | ||
WORKDIR /app | ||
ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"] | ||
EXPOSE 8887 18887 28887 |
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,34 @@ | ||
FROM node:12-alpine3.11 AS builder | ||
ARG REPO=ExchangeUnion/xud | ||
ARG BRANCH=v1.0.0-beta.2 | ||
# Use pure JS implemented secp256k1 bindings | ||
RUN apk add --no-cache git rsync bash musl-dev go python3 make g++ | ||
# Pre-built binaries not found for sqlite3@4.1.0 and node@12.16.1 (node-v72 ABI, musl) (falling back to source compile with node-gyp) | ||
# python: not found | ||
RUN apk add --no-cache python | ||
# This is a "hack" to automatically invalidate the cache in case there are new commits | ||
ADD https://api.github.com/repos/$REPO/commits/$BRANCH /dev/null | ||
RUN git clone -b $BRANCH --depth=2 https://github.com/$REPO | ||
WORKDIR /xud | ||
RUN cp package.json /tmp/package.json | ||
RUN sed -Ei 's/"grpc-tools": "1.8.0",//g' package.json | ||
RUN npm install | ||
RUN cp /tmp/package.json package.json | ||
RUN npm run compile | ||
RUN npm run compile:seedutil | ||
RUN npm prune --production | ||
RUN rm -rf seedutil/go | ||
|
||
|
||
FROM node:12-alpine3.11 | ||
RUN apk add --no-cache bash supervisor tor | ||
COPY --from=builder /xud /app | ||
COPY entrypoint.sh xud-backup.sh /app/ | ||
COPY start_tor.sh update-backup-dir.sh / | ||
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf | ||
COPY torrc /etc/tor/torrc | ||
RUN ln -s /app/bin/xucli /usr/local/bin/xucli | ||
RUN mkdir -p /root/.xud/tor | ||
WORKDIR /app | ||
ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"] | ||
EXPOSE 8887 18887 28887 |
Oops, something went wrong.