-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add docker node deployment for old node. docker-compose up -d for sta…
…rting 0.4.2 node
- Loading branch information
1 parent
a160ef2
commit 64e54da
Showing
5 changed files
with
112 additions
and
39 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 |
---|---|---|
|
@@ -26,4 +26,6 @@ genesis/pylonsd | |
artifacts | ||
|
||
cmd/pylonsd/__debug_bin | ||
proto/dart/* | ||
proto/dart/* | ||
|
||
debug |
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,5 +1,38 @@ | ||
FROM starport/cli | ||
COPY . /app | ||
USER root | ||
EXPOSE $PORT | ||
ENTRYPOINT [ "starport", "chain", "serve", "-p", "/app" ] | ||
FROM golang:1.18-alpine3.16 AS go-builder | ||
|
||
RUN set -eux | ||
|
||
RUN apk add --no-cache ca-certificates git build-base linux-headers | ||
|
||
WORKDIR /code | ||
|
||
# Install babyd binary | ||
RUN echo "Installing pylonsd binary" | ||
ADD https://github.com/Pylons-tech/pylons/archive/refs/tags/v0.4.2.tar.gz /code/ | ||
RUN tar -xf v0.4.2.tar.gz -C /code/ --strip-components=1 | ||
RUN go build -o bin/pylonsd -mod=readonly ./cmd/pylonsd | ||
|
||
#------------------------------------------- | ||
FROM golang:1.18-alpine3.16 | ||
|
||
RUN apk add --no-cache bash py3-pip jq curl | ||
RUN pip install toml-cli | ||
|
||
WORKDIR / | ||
|
||
COPY --from=go-builder /code/bin/pylonsd /usr/bin/pylonsd | ||
COPY --from=go-builder /code/bin/pylonsd / | ||
COPY scripts/* / | ||
RUN chmod +x /*.sh | ||
|
||
# rest server | ||
EXPOSE 1317 | ||
# tendermint rpc | ||
EXPOSE 26657 | ||
# p2p address | ||
EXPOSE 26656 | ||
# gRPC address | ||
EXPOSE 9090 | ||
|
||
# wrong ENTRYPOINT can lead to executable not running | ||
ENTRYPOINT ["/bin/bash", "test_node_deploy.sh"] |
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,11 @@ | ||
version: '3' | ||
|
||
services: | ||
node0: | ||
container_name: pylonsnode0 | ||
image: "pylons-node" | ||
ports: | ||
- "26657:26657" | ||
- "1317:1317" | ||
volumes: | ||
- ./debug:/debug |
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