-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
forkless-update-data with two branches
forkless-update-nodata with two branches deleting unused entities deleting Dockerfiles of third-party chains
- Loading branch information
Showing
14 changed files
with
98 additions
and
386 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,22 +1,26 @@ | ||
# ===== BUILD POLKADOT ===== | ||
FROM uniquenetwork/services:base-stable-1.77.0 as builder | ||
FROM "uniquenetwork/services:base-nightly-1.67.0" as builder | ||
|
||
WORKDIR /workdir | ||
|
||
ARG UNIQUE_VERSION | ||
RUN git clone -b "$UNIQUE_VERSION" --depth 1 https://github.com/uniquenetwork/unique-chain.git | ||
|
||
ARG UNIQUE_HASH | ||
ARG FEATURES | ||
RUN --mount=type=cache,target=/cargo-home/registry \ | ||
|
||
RUN git clone -b "$UNIQUE_VERSION" --depth 1 https://github.com/uniquenetwork/unique-chain.git && \ | ||
cd unique-chain && git checkout "$UNIQUE_HASH" && \ | ||
--mount=type=cache,target=/cargo-home/registry \ | ||
--mount=type=cache,target=/cargo-home/git \ | ||
--mount=type=cache,target=/workdir/unique-chain/target \ | ||
cd unique-chain && \ | ||
CARGO_INCREMENTAL=0 cargo build --release --features="${FEATURES}" --locked && \ | ||
mv ./target/release/unique-collator /workdir/unique-chain/ | ||
mv ./target/release/unique-collator /workdir/unique-chain/ && \ | ||
cd target/release/wbuild && find . -name "*.wasm" -exec sh -c 'mkdir -p "../../../wasm/$(dirname {})"; cp {} "../../../wasm/{}"' \; | ||
|
||
# ===== BIN ====== | ||
|
||
FROM ubuntu:24.04 as builder-polkadot | ||
FROM ubuntu:24.04 | ||
LABEL maintainer="Unique.Network" | ||
|
||
COPY --from=builder-polkadot-bin /workdir/unique-chain/unique-collator /bin/unique-collator | ||
ENTRYPOINT ["/bin/unique-collator"] | ||
COPY --from=builder /workdir/unique-chain/unique-collator /bin/unique-collator | ||
COPY --from=builder /workdir/unique-chain/wasm /wasm | ||
ENTRYPOINT ["/bin/unique-collator"] |
Oops, something went wrong.