2024-10-19 15:17:22 +00:00
|
|
|
FROM rust:1.82.0-slim-bookworm
|
2022-12-12 19:29:23 +00:00
|
|
|
|
2023-09-18 08:25:27 +00:00
|
|
|
LABEL maintainer="augustinas@status.im" \
|
|
|
|
source="https://github.com/logos-co/nomos-node" \
|
|
|
|
description="nomos-node ci build image"
|
2022-12-12 19:29:23 +00:00
|
|
|
|
2023-10-02 08:41:08 +00:00
|
|
|
# Dependecies for publishing documentation.
|
2022-12-12 19:29:23 +00:00
|
|
|
RUN apt-get update && apt-get install -yq \
|
2024-09-26 15:00:47 +00:00
|
|
|
libssl-dev openssh-client git gcc g++ \
|
|
|
|
clang pkg-config protobuf-compiler
|
2022-12-12 19:29:23 +00:00
|
|
|
|
|
|
|
RUN rustup component add rustfmt clippy
|
|
|
|
|
2024-09-26 15:00:47 +00:00
|
|
|
# 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
|
|
|
|
|
2024-09-25 17:18:56 +00:00
|
|
|
RUN cargo install cargo-binstall
|
|
|
|
RUN cargo binstall -y cargo-risczero
|
|
|
|
RUN cargo risczero install
|