-
Notifications
You must be signed in to change notification settings - Fork 356
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 Sapede
authored
May 10, 2022
1 parent
d2d6625
commit 38ecad8
Showing
5 changed files
with
127 additions
and
21 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,26 @@ | ||
# Node for Moonbase Parachains. | ||
# | ||
# Requires to run from repository root and to copy the binary in the build folder (part of the release workflow) | ||
|
||
FROM node | ||
LABEL maintainer "alan@purestake.com" | ||
LABEL description="Node image use to run Moonbeam para-tests" | ||
|
||
ARG HOST_UID=1001 | ||
|
||
RUN ((getent passwd $HOST_UID > /dev/null) || \ | ||
useradd -m -u $HOST_UID -U -s /bin/sh -d /polkadot polkadot) && \ | ||
mkdir -p /polkadot/.local/share/polkadot && \ | ||
chown -R $HOST_UID /polkadot && \ | ||
ln -s /polkadot/.local/share/polkadot /data | ||
|
||
RUN mkdir -p /binaries | ||
COPY build/polkadot /binaries/ | ||
RUN chmod -R uog+rwX /binaries | ||
|
||
USER $HOST_UID | ||
|
||
WORKDIR /polkadot | ||
|
||
ENTRYPOINT ["docker-entrypoint.sh"] | ||
CMD [ "node" ] |
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