34 lines
1.0 KiB
Bash
34 lines
1.0 KiB
Bash
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
|
|
|