-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upgrade handler flag #706
Merged
Merged
upgrade handler flag #706
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
f2c7ec0
Update root.go
faddat 56b55be
Update root.go
faddat 292aee8
add flags to start cmd. next: handle logic
hieuvubk d97f5cc
remove println
hieuvubk 7091b8f
fix
hieuvubk a91a273
add logic
hieuvubk 50d82ec
update add flag
0e397f6
resolve conflict
hieuvubk d9e4677
Merge branch 'upgrade-handler-flag' of https://github.com/Pylons-tech…
hieuvubk 290aae2
remove duplicate
hieuvubk ffc5127
fumpt
faddat a160ef2
Merge branch 'main' of github.com:Pylons-tech/pylons into upgrade-han…
nghuyenthevinh2000 64e54da
add docker node deployment for old node. docker-compose up -d for sta…
nghuyenthevinh2000 1d8e0d8
set plan for upgrade
hieuvubk 66f9424
Merge branch 'upgrade-handler-flag' of https://github.com/Pylons-tech…
hieuvubk c6f5c1c
format
hieuvubk ad55792
flexible version
nghuyenthevinh2000 315b11a
Merge branch 'upgrade-handler-flag' of github.com:Pylons-tech/pylons …
nghuyenthevinh2000 2a60674
add comment
hieuvubk f8763fb
minor change to docker
nghuyenthevinh2000 3ff8f50
Merge branch 'upgrade-handler-flag' of github.com:Pylons-tech/pylons …
nghuyenthevinh2000 04d17a6
check err
hieuvubk d599476
Merge branch 'upgrade-handler-flag' of https://github.com/Pylons-tech…
hieuvubk 842d40a
gofumpt
nghuyenthevinh2000 0f1faf8
Merge branch 'upgrade-handler-flag' of github.com:Pylons-tech/pylons …
nghuyenthevinh2000 53a9bcb
add CHANGELOG
nghuyenthevinh2000 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,37 @@ | ||
FROM starport/cli | ||
COPY . /app | ||
USER root | ||
EXPOSE $PORT | ||
ENTRYPOINT [ "starport", "chain", "serve", "-p", "/app" ] | ||
FROM golang:1.18-alpine3.16 AS go-builder | ||
ARG BINARY_VERSION=v0.4.2 | ||
|
||
RUN set -eux | ||
|
||
WORKDIR /code | ||
|
||
# Install babyd binary | ||
RUN echo "Installing pylonsd binary" | ||
ADD https://github.com/Pylons-tech/pylons/archive/refs/tags/${BINARY_VERSION}.tar.gz /code/ | ||
RUN tar -xf ${BINARY_VERSION}.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 git 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"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: '3' | ||
|
||
services: | ||
node0: | ||
container_name: pylonsnode | ||
build: | ||
context: . | ||
args: | ||
- BINARY_VERSION=v0.4.2 | ||
command: test_node_deploy.sh | ||
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods