-
Notifications
You must be signed in to change notification settings - Fork 357
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
Alan
committed
Sep 30, 2020
1 parent
f448b54
commit beb8f5b
Showing
3 changed files
with
198 additions
and
45 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
**/target/ | ||
build | ||
**/node_modules/ | ||
Dockerfile |
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,41 @@ | ||
# Node for Moonbase Alphanet. | ||
# | ||
# Requires to run from repository root and to copy the binary in the build folder (part of the release workflow) | ||
|
||
FROM phusion/baseimage:0.11 | ||
LABEL maintainer "alan@purestake.com" | ||
LABEL description="this is the parachain node running Moonbase Alphanet" | ||
ARG PROFILE=release | ||
|
||
RUN mv /usr/share/ca* /tmp && \ | ||
rm -rf /usr/share/* && \ | ||
mv /tmp/ca-certificates /usr/share/ && \ | ||
rm -rf /usr/lib/python* && \ | ||
useradd -m -u 1000 -U -s /bin/sh -d /moonbase-alphanet moonbeam && \ | ||
mkdir -p /moonbase-alphanet/.local/share/moonbase-alphanet && \ | ||
chown -R moonbeam:moonbeam /moonbase-alphanet/.local && \ | ||
ln -s /moonbase-alphanet/.local/share/moonbase-alphanet /data && \ | ||
rm -rf /usr/bin /usr/sbin | ||
|
||
|
||
USER moonbeam | ||
|
||
COPY build/alphanet /moonbase-alphanet | ||
|
||
# 30333 for p2p traffic | ||
# 9933 for RPC call | ||
# 9944 for Websocket | ||
# 9615 for Prometheus (metrics) | ||
EXPOSE 30333 9933 9944 9615 | ||
|
||
VOLUME ["/data"] | ||
|
||
CMD ["/moonbase-alphanet/moonbase-alphanet", \ | ||
"--port","30333", \ | ||
"--rpc-port","9933", \ | ||
"--ws-port","9944", \ | ||
"--validator", \ | ||
"--chain", "/moonbase-alphanet/moonbase-alphanet-specs-plain.json", \ | ||
"--", \ | ||
"--chain", "/moonbase-alphanet/rococo-alphanet-specs-raw.json" \ | ||
] |