Skip to content

Commit 97df529

Browse files
committed
WIP
1 parent 8ec4649 commit 97df529

File tree

4 files changed

+62
-0
lines changed

4 files changed

+62
-0
lines changed

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
# This file is used to configure what files will get into the docker context. Specifically,
2+
# everything that is listed here will get transferred into the docker build context.
3+
#
4+
# Ignoring the right items in here will make not only make transfer times shorter, but also make
5+
# docker images smaller and trigger less rebuilds.
6+
17
.git
8+
ci
29
bin
310
target
411
demo/sovereign/target
12+
demo/sovereign/demo-rollup/demo_data
513
zombienet/
614
**/*.txt
715
**/*.md

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
├──<a href="./demo">demo</a>: Projects showcasing integration of RDKs with Sugondat.
1212
│ ├── <a href="./demo/rollkit">rollkit</a>: Rollkit's GM rollup.
1313
│ ├── <a href="./demo/sovereign">sovereign</a>: Sovereign Demo Rollup.
14+
├──<a href="./ci">ci</a>: CI and testing infrastructure.
1415
├──<a href="./sugondat-chain">sugondat-chain</a>: Implementation of sugondat parachain.
1516
├──<a href="./sugondat-shim">sugondat-shim</a>: Shim between sugondat parachain RPC and RDK adapters.
1617
├──<a href="./sugondat-subxt">sugondat-subxt</a>: Bindings to Sugondat RPC.

ci/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CI infrastructure
2+
3+
## Notes
4+
5+
To check the docker layers, use `dive`.
6+
To see what files gets into the docker context, use `ncdu`.
7+
8+
ncdu -X .gitignore -X .dockerignore
9+
10+
Docker builds use the repository root as context, so we need to use .dockerignore to exclude files.

ci/demo-sov.Dockerfile

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
FROM ubuntu:20.04
2+
3+
# TODO: update this
4+
LABEL org.opencontainers.image.source=https://github.com/pepyakin/bfb
5+
6+
ARG RUSTC_VERSION=nightly-2023-10-16
7+
8+
ENV CARGO_INCREMENTAL=0
9+
ENV CARGO_HOME=/cargo
10+
ENV CARGO_TARGET_DIR=/cargo_target
11+
ENV RUSTFLAGS=""
12+
ENV RUSTUP_HOME=/rustup
13+
14+
RUN mkdir -p /cargo && \
15+
mkdir -p /cargo_target && \
16+
mkdir -p /rustup
17+
18+
RUN \
19+
apt-get update && \
20+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
21+
ca-certificates \
22+
protobuf-compiler \
23+
curl \
24+
git \
25+
llvm \
26+
clang \
27+
cmake \
28+
make \
29+
libssl-dev \
30+
pkg-config
31+
32+
RUN \
33+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain $RUSTC_VERSION
34+
RUN $CARGO_HOME/bin/rustup target add wasm32-unknown-unknown
35+
36+
RUN $CARGO_HOME/bin/cargo install cargo-risczero
37+
RUN $CARGO_HOME/bin/cargo risczero build-toolchain
38+
39+
WORKDIR /sugondat
40+
COPY . /sugondat
41+
42+
ENV CONSTANTS_MANIFEST=/sugondat/demo/sovereign/constants.json
43+
RUN cd demo/sovereign && $CARGO_HOME/bin/cargo build --locked --release

0 commit comments

Comments
 (0)