init commit #20

Merged
Ghost merged 8 commits from feature/test into rc 2025-01-13 16:59:26 +03:00
3 changed files with 10 additions and 7 deletions

View File

@ -9,6 +9,9 @@ RUN apt update && apt install -y \
pkg-config \ pkg-config \
libudev-dev \ libudev-dev \
procps \ procps \
gcc-riscv64-unknown-elf \
gcc-riscv64-linux-gnu \
binutils-riscv64-linux-gnu \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

10
Jenkinsfile vendored
View File

@ -1,7 +1,7 @@
pipeline { pipeline {
agent any agent any
stages { stages {
stage('Tests and compiling binaries1') { stage('Tests and compiling binaries') {
when { when {
expression { env.CHANGE_BRANCH?.startsWith('feature/') } expression { env.CHANGE_BRANCH?.startsWith('feature/') }
} }
@ -9,14 +9,14 @@ pipeline {
script { script {
echo "Building and running tests in Docker for feature branch..." echo "Building and running tests in Docker for feature branch..."
try { try {
def targetDirAmd = "${env.WORKSPACE}/${env.CHANGE_BRANCH}/x86" def targetDirAmd = "${env.WORKSPACE}/${env.CHANGE_BRANCH}/x86/"
def targetDirRisc = "${env.WORKSPACE}/${env.CHANGE_BRANCH}/riscv" def targetDirRisc = "${env.WORKSPACE}/${env.CHANGE_BRANCH}/riscv/"
sh "mkdir -p ${targetDir}" sh "mkdir -p ${targetDirAmd}"
sh "mkdir -p ${targetDirRisc}"
sh """ sh """
docker build --network=host -t e-monitor . docker build --network=host -t e-monitor .
docker run --name e-monitor --dns 8.8.8.8 --network=host e-monitor:latest docker run --name e-monitor --dns 8.8.8.8 --network=host e-monitor:latest
""" """

View File

@ -10,7 +10,7 @@ const SOCKET_PATH: &str = "/var/run/enode/hostagent.sock";
/// ## for setting up metrics mode as preboot param from command prompt /// ## for setting up metrics mode as preboot param from command prompt
/// ///
/// examples: /// examples:
/// ``` /// ``` bash
/// noxis-rs ... --metrics full /// noxis-rs ... --metrics full
/// noxis-rs ... --metrics system /// noxis-rs ... --metrics system
/// noxis-rs ... --metrics processes /// noxis-rs ... --metrics processes