Skip to content

Commit

Permalink
forkless-update-data with two branches
Browse files Browse the repository at this point in the history
forkless-update-nodata with two branches
deleting unused entities
deleting Dockerfiles of third-party chains
  • Loading branch information
BuddyGlas committed Nov 22, 2024
1 parent f5f997c commit a4fedde
Show file tree
Hide file tree
Showing 14 changed files with 98 additions and 386 deletions.
47 changes: 0 additions & 47 deletions .docker/Dockerfile-acala.j2

This file was deleted.

46 changes: 0 additions & 46 deletions .docker/Dockerfile-astar.j2

This file was deleted.

46 changes: 0 additions & 46 deletions .docker/Dockerfile-cumulus.j2

This file was deleted.

50 changes: 0 additions & 50 deletions .docker/Dockerfile-hydradx

This file was deleted.

47 changes: 0 additions & 47 deletions .docker/Dockerfile-hydradx.j2

This file was deleted.

47 changes: 0 additions & 47 deletions .docker/Dockerfile-moonbeam.j2

This file was deleted.

47 changes: 0 additions & 47 deletions .docker/Dockerfile-polkadex.j2

This file was deleted.

4 changes: 2 additions & 2 deletions .docker/Dockerfile-unique
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ===== BUILD UNIQUE =====
FROM uniquenetwork/services:base-stable-1.77.0 AS builder
# ===== BUILD POLKADOT =====
FROM "uniquenetwork/services:base-nightly-1.67.0" as builder

WORKDIR /workdir

Expand Down
22 changes: 13 additions & 9 deletions .docker/Dockerfile-unique-release
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"]
Loading

0 comments on commit a4fedde

Please sign in to comment.