refactor: refs #6695 update Docker setup for Cypress and remove obsolete files
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-02-20 15:32:04 +01:00
parent 28f2919b46
commit a4b0f6b9c6
3 changed files with 26 additions and 16 deletions

2
Jenkinsfile vendored
View File

@ -99,7 +99,7 @@ pipeline {
script {
sh "docker-compose ${env.COMPOSE_PARAMS} up -d"
def image = docker.build('cypress-setup', '-f ./test/cypress/Dockerfile .')
def image = docker.build('lilium-dev', '-f docs/Dockerfile docs')
image.inside("--network ${env.COMPOSE_PROJECT}_default -e TZ -e CI") {
sh 'pwd'
sh 'ls -l'

View File

@ -1,16 +1,20 @@
FROM node:lts-bookworm
FROM debian:12.9-slim
ENV SHELL bash
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
ARG DEBIAN_FRONTEND=noninteractive
RUN npm install -g pnpm@8.15.1 && \
pnpm setup && \
pnpm install -g @quasar/cli@2.2.1
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
gnupg2 \
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& npm install -g corepack@0.31.0 \
&& corepack enable pnpm \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get -y --fix-missing update && \
apt-get -y --fix-missing upgrade && \
apt-get -y --no-install-recommends install \
RUN apt-get update \
&& apt-get -y --no-install-recommends install \
apt-utils \
chromium \
libasound2 \
@ -25,3 +29,14 @@ RUN apt-get -y --fix-missing update && \
xvfb \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -r -u 1000 -m -d /home/dev-user dev-user
USER dev-user
ENV SHELL bash
ENV PNPM_HOME="/home/dev-user/.local/share/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN pnpm setup \
&& pnpm install --global cypress@13.6.6 \
&& cypress install

View File

@ -1,5 +0,0 @@
FROM alexmorenovn/vndev:latest
USER node
RUN pnpm install --global cypress@13.6.6 && cypress install
WORKDIR /app