-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: readme, chane specs, dockerfile
- Loading branch information
Showing
16 changed files
with
183 additions
and
171 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
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ permissions: | |
|
||
jobs: | ||
publish: | ||
runs-on: SubtensorCI | ||
runs-on: JungochainCI | ||
|
||
steps: | ||
- name: Checkout code | ||
|
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 |
---|---|---|
|
@@ -24,7 +24,7 @@ env: | |
|
||
jobs: | ||
run: | ||
runs-on: SubtensorCI | ||
runs-on: JungochainCI | ||
strategy: | ||
matrix: | ||
rust-branch: | ||
|
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 |
---|---|---|
|
@@ -11,44 +11,44 @@ env: | |
jobs: | ||
check-devnet: | ||
name: check devnet | ||
runs-on: SubtensorCI | ||
runs-on: JungochainCI | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run Try Runtime Checks | ||
uses: "paritytech/[email protected]" | ||
with: | ||
runtime-package: "node-subtensor-runtime" | ||
runtime-package: "jungochain-runtime" | ||
node-uri: "wss://dev.chain.opentensor.ai:443" | ||
checks: "all" | ||
extra-args: "--disable-spec-version-check --no-weight-warnings" | ||
|
||
check-testnet: | ||
name: check testnet | ||
runs-on: SubtensorCI | ||
runs-on: JungochainCI | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run Try Runtime Checks | ||
uses: "paritytech/[email protected]" | ||
with: | ||
runtime-package: "node-subtensor-runtime" | ||
runtime-package: "jungochain-runtime" | ||
node-uri: "wss://test.chain.opentensor.ai:443" | ||
checks: "all" | ||
extra-args: "--disable-spec-version-check --no-weight-warnings" | ||
|
||
check-finney: | ||
name: check finney | ||
runs-on: SubtensorCI | ||
runs-on: JungochainCI | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
- name: Run Try Runtime Checks | ||
uses: "paritytech/[email protected]" | ||
with: | ||
runtime-package: "node-subtensor-runtime" | ||
runtime-package: "jungochain-runtime" | ||
node-uri: "wss://archive.chain.opentensor.ai:443" | ||
checks: "all" | ||
extra-args: "--disable-spec-version-check --no-weight-warnings" |
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 |
---|---|---|
|
@@ -50,3 +50,5 @@ scripts/specs/local.json | |
|
||
# TODO rename temp to sth else | ||
temp/ | ||
|
||
archive |
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,21 +1,17 @@ | ||
ARG BASE_IMAGE=ubuntu:20.04 | ||
ARG BASE_IMAGE=ubuntu:24.04 | ||
|
||
FROM $BASE_IMAGE AS builder | ||
SHELL ["/bin/bash", "-c"] | ||
|
||
# Set noninteractive mode for apt-get | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
LABEL ai.opentensor.image.authors="[email protected]" \ | ||
ai.opentensor.image.vendor="Opentensor Foundation" \ | ||
ai.opentensor.image.title="opentensor/subtensor" \ | ||
ai.opentensor.image.description="Opentensor Subtensor Blockchain" \ | ||
ai.opentensor.image.documentation="https://docs.bittensor.com" | ||
# LABEL maintainer="[email protected]" # TODO | ||
|
||
# Set up Rust environment | ||
ENV RUST_BACKTRACE=1 | ||
RUN apt-get update && \ | ||
apt-get install -y curl build-essential protobuf-compiler clang git && \ | ||
apt-get install -y curl build-essential protobuf-compiler clang git libssl-dev pkg-config && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN set -o pipefail && curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
|
@@ -28,17 +24,19 @@ COPY . /build | |
WORKDIR /build | ||
|
||
# Build the project | ||
RUN cargo build -p node-subtensor --profile production --features="metadata-hash" --locked | ||
RUN cargo build -p jungochain-node --profile production --features metadata-hash --locked | ||
|
||
# Verify the binary was produced | ||
RUN test -e /build/target/production/node-subtensor | ||
RUN test -e /build/target/production/jungochain-node | ||
|
||
EXPOSE 30333 9933 9944 | ||
|
||
FROM $BASE_IMAGE AS subtensor | ||
FROM $BASE_IMAGE AS jungochain | ||
|
||
# Copy all chainspec files | ||
COPY --from=builder /build/*.json / | ||
|
||
# Copy final binary | ||
COPY --from=builder /build/target/production/node-subtensor /usr/local/bin | ||
COPY --from=builder /build/target/production/jungochain-node /usr/local/bin | ||
|
||
ENTRYPOINT ["/usr/local/bin/jungochain-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
Oops, something went wrong.