File tree Expand file tree Collapse file tree 4 files changed +62
-0
lines changed Expand file tree Collapse file tree 4 files changed +62
-0
lines changed Original file line number Diff line number Diff line change
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
+
1
7
.git
8
+ ci
2
9
bin
3
10
target
4
11
demo /sovereign /target
12
+ demo /sovereign /demo-rollup /demo_data
5
13
zombienet /
6
14
** /* .txt
7
15
** /* .md
Original file line number Diff line number Diff line change 11
11
├──<a href =" ./demo " >demo</a >: Projects showcasing integration of RDKs with Sugondat.
12
12
│ ├── <a href =" ./demo/rollkit " >rollkit</a >: Rollkit's GM rollup.
13
13
│ ├── <a href =" ./demo/sovereign " >sovereign</a >: Sovereign Demo Rollup.
14
+ ├──<a href =" ./ci " >ci</a >: CI and testing infrastructure.
14
15
├──<a href =" ./sugondat-chain " >sugondat-chain</a >: Implementation of sugondat parachain.
15
16
├──<a href =" ./sugondat-shim " >sugondat-shim</a >: Shim between sugondat parachain RPC and RDK adapters.
16
17
├──<a href =" ./sugondat-subxt " >sugondat-subxt</a >: Bindings to Sugondat RPC.
Original file line number Diff line number Diff line change
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.
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments