This commit is contained in:
parent
31cedc8a7e
commit
5a82c48046
|
@ -5,7 +5,7 @@ services:
|
|||
command: npx quasar serve --history --proxy ./proxy.mjs --hostname 127.0.0.1 --port 9000
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./Dockerfile.e2e
|
||||
dockerfile: ./Dockerfile
|
||||
network_mode: host
|
||||
e2e:
|
||||
command: npx cypress run
|
||||
|
|
39
e2e.sh
39
e2e.sh
|
@ -1,33 +1,6 @@
|
|||
git clone --branch dev https://gitea.verdnatura.es/verdnatura/salix.git
|
||||
cd front
|
||||
export VERSION=e2e-try
|
||||
export SHELL=/bin/sh
|
||||
export ENV=~/.profile
|
||||
touch ~/.profile
|
||||
apk add --no-cache curl
|
||||
apk add --no-cache ca-certificates
|
||||
update-ca-certificates
|
||||
curl -fsSL https://nodejs.org/dist/v20.18.1/node-v20.18.1.tar.gz -o node.tar.gz
|
||||
tar -xzf node.tar.gz -C /usr/local --strip-components=1
|
||||
apk add --no-cache python3 make gcc g++ libgcc libstdc++ linux-headers musl-dev
|
||||
./configure
|
||||
make -j$(nproc)
|
||||
make install
|
||||
|
||||
curl -fsSL https://get.pnpm.io/install.sh | env PNPM_VERSION=8.15.1 sh -
|
||||
|
||||
# DB
|
||||
pnpm i @verdnatura/myt
|
||||
cd salix && npx myt run -t --ci -d -n front_default
|
||||
|
||||
# Back
|
||||
docker buildx build -f salix/back/Dockerfile -t back ./salix
|
||||
docker run --net=host -v $(pwd)/test/cypress/storage:/salix/storage -d back
|
||||
|
||||
|
||||
# docker-compose -f docker-compose.e2e.yml -d up front
|
||||
# docker-compose -f docker-compose.e2e.yml up e2e --build
|
||||
|
||||
docker-compose -f docker-compose.e2e.yml up front --build -d
|
||||
docker-compose -f docker-compose.e2e.yml up e2e --build
|
||||
|
||||
cd salix && pnpm i --prefer-offline @verdnatura/myt && npx myt run -t -d
|
||||
cd .. && docker build -f ./salix/back/Dockerfile -t back ./salix
|
||||
docker run -d --name salix_e2e --net=host -v $(pwd)/test/cypress/storage:/salix/storage back
|
||||
quasar build
|
||||
docker-compose -f docker-compose.e2e.yml up -d --build front
|
||||
docker-compose -f docker-compose.e2e.yml up e2e
|
||||
|
|
Loading…
Reference in New Issue