-
Notifications
You must be signed in to change notification settings - Fork 2
feat: cronos_1.5.0-testnet #83
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
Merged
Merged
Changes from all commits
Commits
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 hidden or 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,13 +1,30 @@ | ||
| FROM debian:bullseye-slim | ||
|
|
||
| RUN adduser --disabled-password --gecos "" --no-create-home --uid 1000 cronos | ||
| # Create user & directories | ||
| RUN adduser --disabled-password --gecos "" --no-create-home --uid 1000 cronos \ | ||
| && mkdir -p /home/cronos/data /home/cronos/config /home/cronos/bin | ||
|
|
||
| RUN mkdir -p /home/cronos/data && mkdir -p /home/cronos/config | ||
| RUN apt-get update -y && apt-get install wget curl procps net-tools jq lz4 -y | ||
| RUN cd /tmp && wget --no-check-certificate https://github.com/crypto-org-chain/cronos/releases/download/v1.5.0/cronos_1.5.0-testnet_Linux_x86_64.tar.gz && tar -xvf cronos_1.5.0-testnet_Linux_x86_64.tar.gz \ | ||
| && rm cronos_1.5.0-testnet_Linux_x86_64.tar.gz && mv ./* /home/cronos/ | ||
| # Install dependencies | ||
| RUN apt-get update -y && apt-get install -y wget curl procps net-tools jq lz4 | ||
|
|
||
| WORKDIR /tmp | ||
|
|
||
| # Download and verify tarball | ||
| RUN wget https://github.com/crypto-org-chain/cronos/releases/download/v1.5.0/cronos_1.5.0-testnet_Linux_x86_64.tar.gz \ | ||
| && echo "d917ca990ed2415905a44ec48d6047664dad06b3441cd09b116f86f1880b1c2b cronos_1.5.0-testnet_Linux_x86_64.tar.gz" | sha256sum -c - | ||
|
|
||
| # Extract and move binary | ||
| RUN tar -xzf cronos_1.5.0-testnet_Linux_x86_64.tar.gz \ | ||
| && mv bin/cronosd /home/cronos/bin/cronosd \ | ||
| && rm -rf cronos_1.5.0-testnet_Linux_x86_64 cronos_1.5.0-testnet_Linux_x86_64.tar.gz | ||
|
|
||
| # Validate binary hash | ||
| RUN sha256sum /home/cronos/bin/cronosd | ||
|
|
||
| # Set permissions | ||
| RUN chown -R cronos:cronos /home/cronos && chmod 1777 /tmp | ||
|
|
||
| USER root | ||
| USER cronos | ||
| WORKDIR /home/cronos | ||
|
|
||
| ENTRYPOINT ["/home/cronos/bin/cronosd"] | ||
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.
Uh oh!
There was an error while loading. Please reload this page.