feat(jenkinsE2E): refs #6695 new image
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2024-10-07 12:01:28 +02:00
parent 99d0b0cb98
commit 779bc29a9f
2 changed files with 6 additions and 5 deletions

6
Jenkinsfile vendored
View File

@ -114,10 +114,10 @@ pipeline {
// sh 'cd front' // sh 'cd front'
// sh '# export VERSION=e2e-try' // sh '# export VERSION=e2e-try'
sh 'docker build -f salix/back/Dockerfile -t back ./salix' sh 'docker build -f salix/back/Dockerfile -t back ./salix'
sh 'docker compose -f docker-compose.e2e.yml up --build db' sh 'docker-compose -f docker-compose.e2e.yml up --build db'
sh 'docker run --net=host -v ./test/cypress/storage:/salix/storage -d back' sh 'docker run --net=host -v ./test/cypress/storage:/salix/storage -d back'
sh 'docker compose -f docker-compose.e2e.yml up -d --build front' sh 'docker-compose -f docker-compose.e2e.yml up -d --build front'
sh 'docker compose -f docker-compose.e2e.yml up e2e' sh 'docker-compose -f docker-compose.e2e.yml up e2e'
} }
post { post {

View File

@ -1,9 +1,10 @@
FROM node:lts-bookworm FROM node:20-bookworm-slim
ENV DEBIAN_FRONTEND=noninteractive
ENV SHELL bash ENV SHELL bash
ENV PNPM_HOME="/pnpm" ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH" ENV PATH="$PNPM_HOME:$PATH"
RUN apt-get update RUN apt-get update
RUN apt install libkrb5-dev libssl-dev RUN apt install -y libkrb5-dev libssl-dev
RUN npm install -g pnpm@8.15.1 RUN npm install -g pnpm@8.15.1
RUN pnpm setup RUN pnpm setup
RUN npm i -g pnpm RUN npm i -g pnpm