-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial draft for renaming binary + docker * format rust code * Faster tests * Better fix for ts test speed * Fix parachain docker image * fix parachain docker name * Better entrypoint format in docker * Update docker/moonbase-parachain.Dockerfile Co-authored-by: Joshy Orndorff <[email protected]> * revert test filename check * Testing smaller docker image Co-authored-by: Joshy Orndorff <[email protected]>
- Loading branch information
1 parent
5308f49
commit 4253817
Showing
13 changed files
with
157 additions
and
81 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 |
---|---|---|
|
@@ -4,23 +4,23 @@ | |
|
||
FROM phusion/baseimage:0.11 | ||
LABEL maintainer "[email protected]" | ||
LABEL description="this is the parachain node running Moonbase Alphanet" | ||
LABEL description="Moonbeam network node. Supports Alphanet. Will support Moonriver and Moonbeam mainnet." | ||
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 && \ | ||
ln -s /moonbase-alphanet/.local/share/moonbase-alphanet /data && \ | ||
useradd -m -u 1000 -U -s /bin/sh -d /moonbase-parachain moonbeam && \ | ||
mkdir -p /moonbase-parachain/.local/share/moonbase-parachain && \ | ||
chown -R moonbeam:moonbeam /moonbase-parachain && \ | ||
ln -s /moonbase-parachain/.local/share/moonbase-parachain /data && \ | ||
rm -rf /usr/bin /usr/sbin | ||
|
||
USER moonbeam | ||
|
||
COPY --chown=moonbeam build/alphanet /moonbase-alphanet | ||
RUN chmod uog+x /moonbase-alphanet/moonbase-alphanet | ||
COPY --chown=moonbeam build /moonbase-parachain | ||
RUN chmod uog+x /moonbase-parachain/moonbeam | ||
|
||
# 30333 for parachain p2p | ||
# 30334 for relaychain p2p | ||
|
@@ -31,6 +31,4 @@ EXPOSE 30333 30334 9933 9944 9615 | |
|
||
VOLUME ["/data"] | ||
|
||
CMD ["/moonbase-alphanet/moonbase-alphanet", \ | ||
"--chain", "alphanet"\ | ||
] | ||
CMD ["/moonbase-parachain/moonbeam"] |
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 @@ | ||
# 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 debian:buster-slim | ||
LABEL maintainer "[email protected]" | ||
LABEL description="Binary for Moonbeam Collator" | ||
|
||
RUN useradd -m -u 1000 -U -s /bin/sh -d /moonbeam moonbeam && \ | ||
mkdir -p /moonbeam/.local/share && \ | ||
mkdir /data && \ | ||
chown -R moonbeam:moonbeam /data && \ | ||
ln -s /data /moonbeam/.local/share/moonbeam && \ | ||
rm -rf /usr/bin /usr/sbin | ||
|
||
USER moonbeam | ||
|
||
# 30333 for parachain p2p | ||
# 30334 for relaychain p2p | ||
# 9933 for RPC call | ||
# 9944 for Websocket | ||
# 9615 for Prometheus (metrics) | ||
EXPOSE 30333 30334 9933 9944 9615 | ||
|
||
VOLUME ["/data"] | ||
|
||
ENTRYPOINT ["/moonbeam/moonbeam"] |
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
Oops, something went wrong.