perf: refs #6695 only necessary
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-02-18 10:44:51 +01:00
parent 574ecba4d6
commit 66d623b883
10 changed files with 5 additions and 82 deletions

View File

@ -2,5 +2,5 @@ FROM node:stretch-slim
RUN corepack enable pnpm
RUN pnpm install -g @quasar/cli
WORKDIR /app
COPY dist/spa proxy.mjs ./
COPY dist/spa ./
CMD ["quasar", "serve", "./", "--history", "--hostname", "0.0.0.0"]

View File

@ -1,26 +0,0 @@
FROM node:lts-bookworm
ENV SHELL bash
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN npm install -g pnpm@8.15.1 && \
pnpm setup && \
pnpm install -g @quasar/cli@2.2.1
RUN apt-get -y --fix-missing update && \
apt-get -y --fix-missing upgrade && \
apt-get -y --no-install-recommends install \
apt-utils \
libgtk2.0-0 \
libgtk-3-0 \
libgbm-dev \
libnotify-dev \
libnss3 \
libxss1 \
libasound2 \
libxtst6 \
xauth \
xvfb \
chromium \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

View File

@ -1,5 +1,4 @@
import { defineConfig } from 'cypress';
import vitePreprocessor from 'cypress-vite';
// https://docs.cypress.io/app/tooling/reporters
// https://docs.cypress.io/app/references/configuration
// https://www.npmjs.com/package/cypress-mochawesome-reporter
@ -39,9 +38,8 @@ export default defineConfig({
supportFile: 'test/cypress/support/unit.js',
},
setupNodeEvents: async (on, config) => {
on('file:preprocessor', vitePreprocessor());
// const plugin = await import('cypress-mochawesome-reporter/plugin');
// plugin.default(on);
const plugin = await import('cypress-mochawesome-reporter/plugin');
plugin.default(on);
return config;
},
viewportWidth: 1280,

12
dind.sh
View File

@ -1,12 +0,0 @@
docker stop dind-container || true && docker rm dind-container || true
docker run --privileged -d \
-p 2376:2376 \
-e DOCKER_TLS_CERTDIR="" \
--name dind-container \
-v /home/alexm/Projects/salix-front:/front \
docker:dind \
dockerd -H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock
docker exec -it dind-container sh

5
e2e.sh
View File

@ -1,5 +0,0 @@
# Con un comando docker de usar y tirar instalar los node_modules + pnpm exec cypress install
docker-compose -p lilium-e2e -f docker-compose.e2e.yml up -d back
docker-compose -p lilium-e2e -f docker-compose.e2e.yml up -d db
docker-compose -p lilium-e2e -f docker-compose.e2e.yml up -d front
docker-compose -p lilium-e2e -f docker-compose.e2e.yml up e2e

View File

@ -48,7 +48,6 @@
"@vue/test-utils": "^2.4.4",
"autoprefixer": "^10.4.14",
"cypress": "^13.6.6",
"cypress-vite": "^1.6.0",
"cypress-mochawesome-reporter": "^3.8.2",
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.1",
@ -72,4 +71,4 @@
"vite": "^6.0.11",
"vitest": "^0.31.1"
}
}
}

View File

@ -76,9 +76,6 @@ devDependencies:
cypress-mochawesome-reporter:
specifier: ^3.8.2
version: 3.8.2(cypress@13.17.0)(mocha@11.0.1)
cypress-vite:
specifier: ^1.6.0
version: 1.6.0(vite@6.0.11)
eslint:
specifier: ^9.18.0
version: 9.18.0
@ -3341,18 +3338,6 @@ packages:
- mocha
dev: true
/cypress-vite@1.6.0(vite@6.0.11):
resolution: {integrity: sha512-6oZPDvHgLEZjuFgoejtRuyph369zbVn7fjh4hzhMar3XvKT5YhTEoA+KixksMuxNEaLn9uqA4HJVz6l7BybwBQ==}
peerDependencies:
vite: ^2.9.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0
dependencies:
chokidar: 3.6.0
debug: 4.4.0(supports-color@8.1.1)
vite: 6.0.11(@types/node@22.10.7)(sass-embedded@1.83.4)(sass@1.83.4)
transitivePeerDependencies:
- supports-color
dev: true
/cypress@13.17.0:
resolution: {integrity: sha512-5xWkaPurwkIljojFidhw8lFScyxhtiFHl/i/3zov+1Z5CmY4t9tjIdvSXfu82Y3w7wt0uR9KkucbhkVvJZLQSA==}
engines: {node: ^16.0.0 || ^18.0.0 || >=20.0.0}

View File

@ -1,3 +1,4 @@
reports/*
videos/*
screenshots/*
storage/*

View File

@ -1,4 +0,0 @@
FROM mariadb:10.11.6
ENV TZ Europe/Madrid
COPY --from=vn-database /data /var/lib/mysql
CMD ["mysqld"]

View File

@ -1,13 +0,0 @@
# npx myt run -t
# docker exec -it vn-database sh
# cp -r /var/lib/mysql /data
# exit
# FROM mariadb:latest
# COPY --from=vn_db /data /var/lib/mysql
# CMD ["mysqld"]
docker commit vn-database vn_db
docker build -t vn_db .
docker tag vn_db alexmorenovn/vn_db:latest
docker push alexmorenovn/vn_db:latest