forked from logos-co/nomos-node
-
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.
CI: Jenkins risczero setup (logos-co#770)
* Remove dep * Use cargo as jenkins user * Ensure that toolchain directory is setup before installation * Debian 12 and gcc deps * Env variables for risc zero dev mode * Update testnet and base dockerfiles * Env vars comments
- Loading branch information
Showing
4 changed files
with
25 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
FROM rust:1.80.0-slim-bullseye | ||
FROM rust:1.80.0-slim-bookworm | ||
|
||
LABEL maintainer="augustinas@status.im" \ | ||
source="https://github.com/logos-co/nomos-node" \ | ||
description="nomos-node ci build image" | ||
|
||
# Dependecies for publishing documentation. | ||
RUN apt-get update && apt-get install -yq \ | ||
libssl-dev openssh-client git python3-pip clang \ | ||
pkg-config protobuf-compiler | ||
libssl-dev openssh-client git gcc g++ \ | ||
clang pkg-config protobuf-compiler | ||
|
||
RUN pip install ghp-import | ||
RUN rustup component add rustfmt clippy | ||
|
||
# Jenkins user needs a specific UID/GID to work. | ||
RUN groupadd -g 1001 jenkins \ | ||
&& useradd -u 1001 -g jenkins jenkins | ||
|
||
# Create necessary directories and assign correct permissions | ||
RUN mkdir -p /home/jenkins/.local/share/cargo-risczero/toolchains \ | ||
&& chown -R jenkins:jenkins /home/jenkins/.local \ | ||
&& mkdir -p /home/jenkins/.cargo \ | ||
&& chown -R jenkins:jenkins /home/jenkins/.cargo | ||
|
||
USER jenkins | ||
|
||
RUN cargo install cargo-binstall | ||
RUN cargo binstall -y cargo-risczero | ||
RUN cargo risczero install | ||
|
||
# Jenkins user needs a specific UID/GID to work. | ||
RUN groupadd -g 1001 jenkins \ | ||
&& useradd -u 1001 -g jenkins jenkins |
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