-
Notifications
You must be signed in to change notification settings - Fork 20
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
1 parent
cf375f9
commit 2a38f22
Showing
11 changed files
with
79 additions
and
73 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ ARG PROFILE | |
# ========================== | ||
FROM rust:bullseye as builder | ||
|
||
WORKDIR /litentry/parachain | ||
COPY . /litentry/ | ||
WORKDIR /heima/parachain | ||
COPY . /heima/ | ||
|
||
RUN apt-get update && apt-get install -yq clang libclang-dev cmake protobuf-compiler | ||
|
||
|
@@ -26,7 +26,7 @@ LABEL maintainer="Trust Computing GmbH <[email protected]>" | |
|
||
ARG PROFILE | ||
|
||
COPY --from=local-builder:latest /litentry/parachain/target/$PROFILE/heima-node /usr/local/bin/ | ||
COPY --from=local-builder:latest /heima/parachain/target/$PROFILE/heima-node /usr/local/bin/ | ||
|
||
# install netcat for healthcheck | ||
RUN apt-get update && \ | ||
|
@@ -36,14 +36,14 @@ RUN apt-get update && \ | |
rm -rf /var/cache/apt/lists && \ | ||
cp /usr/bin/nc /usr/local/bin/ | ||
|
||
RUN useradd -m -u 1000 -U -s /bin/sh -d /litentry litentry && \ | ||
mkdir -p /data /litentry/.local/share && \ | ||
chown -R litentry:litentry /data && \ | ||
ln -s /data /litentry/.local/share/heima-node && \ | ||
RUN useradd -m -u 1000 -U -s /bin/sh -d /heima heima && \ | ||
mkdir -p /data /heima/.local/share && \ | ||
chown -R heima:heima /data && \ | ||
ln -s /data /heima/.local/share/heima-node && \ | ||
# check if executable works in this container | ||
/usr/local/bin/heima-node --version | ||
|
||
USER litentry | ||
USER heima | ||
EXPOSE 30333 9944 9615 | ||
VOLUME ["/data"] | ||
|
||
|
@@ -92,24 +92,24 @@ RUN echo "downloading zombienet-linux-x64 ..." && \ | |
cp zombienet-linux-x64 /usr/local/bin/zombienet && \ | ||
zombienet version | ||
|
||
RUN useradd -m -u 1000 -U -s /bin/sh -d /litentry litentry && \ | ||
mkdir -p /opt/litentry/parachain /code && \ | ||
chown -R litentry:litentry /opt/litentry | ||
RUN useradd -m -u 1000 -U -s /bin/sh -d /heima heima && \ | ||
mkdir -p /opt/heima/parachain /code && \ | ||
chown -R heima:heima /opt/heima | ||
|
||
COPY --from=local-builder:latest /litentry/parachain/target/$PROFILE/heima-node /usr/local/bin/ | ||
COPY --from=local-builder:latest /heima/parachain/target/$PROFILE/heima-node /usr/local/bin/ | ||
RUN chmod +x /usr/local/bin/heima-node && \ | ||
# check if executable works in this container | ||
/usr/local/bin/heima-node --version | ||
|
||
COPY ./parachain /code/parachain | ||
COPY ./parachain/docker/entrypoint.sh /usr/local/bin/ | ||
COPY ./common /code/common | ||
RUN chown -R litentry:litentry /code | ||
RUN chown -R heima:heima /code | ||
RUN chmod +x /usr/local/bin/entrypoint.sh | ||
|
||
USER litentry | ||
USER heima | ||
|
||
EXPOSE 9615 9944 9946 9947 30332 30333 30336 30337 | ||
VOLUME ["/opt/litentry"] | ||
VOLUME ["/opt/heima"] | ||
|
||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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.