mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 13:07:46 +00:00
npm store as build cache
This commit is contained in:
@@ -8,9 +8,11 @@ ENV SHELL=/bin/bash \
|
|||||||
PNPM_HOME=/home/node/.local/share/pnpm \
|
PNPM_HOME=/home/node/.local/share/pnpm \
|
||||||
PATH=/home/node/.local/share/pnpm:$PATH
|
PATH=/home/node/.local/share/pnpm:$PATH
|
||||||
|
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get --no-install-recommends install -y \
|
apt-get --no-install-recommends install -y \
|
||||||
libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb && \
|
libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
corepack enable && COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack prepare pnpm@9.1.2 --activate
|
corepack enable && COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack prepare pnpm@9.1.2 --activate
|
||||||
|
|
||||||
|
RUN --mount=type=cache,id=pnpm,target=/home/node/.local/share/pnpm/store \
|
||||||
|
pnpm install --frozen-lockfile --recursive
|
@@ -6,14 +6,11 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
volumes:
|
volumes:
|
||||||
- ../../:/workspaces:cached
|
- ../../:/workspaces:cached
|
||||||
- /tmp/.X11-unix:/tmp/.X11-unix:cached
|
|
||||||
- home-dir:/home/node:delegated
|
|
||||||
command: sleep infinity
|
command: sleep infinity
|
||||||
working_dir: /workspaces
|
working_dir: /workspaces
|
||||||
environment:
|
environment:
|
||||||
ZITADEL_DATABASE_POSTGRES_HOST: db
|
ZITADEL_DATABASE_POSTGRES_HOST: db
|
||||||
ZITADEL_EXTERNALSECURE: false
|
ZITADEL_EXTERNALSECURE: false
|
||||||
PNPM_HOME: $PNPM_HOME
|
|
||||||
|
|
||||||
db:
|
db:
|
||||||
container_name: db
|
container_name: db
|
||||||
|
@@ -9,11 +9,11 @@
|
|||||||
"runServices": [
|
"runServices": [
|
||||||
"login-integration"
|
"login-integration"
|
||||||
],
|
],
|
||||||
"workspaceFolder": "/workspaces",
|
"workspaceFolder": "/workspaces/apps/login",
|
||||||
"forwardPorts": [
|
"forwardPorts": [
|
||||||
3001
|
3001
|
||||||
],
|
],
|
||||||
"onCreateCommand": "pnpm install --recursive && cd apps/login/integration && pnpm cypress install",
|
"onCreateCommand": "pnpm cypress install",
|
||||||
"postAttachCommand": "pnpm turbo daemon clean || true; pnpm turbo test:integration:login",
|
"postAttachCommand": "pnpm turbo daemon clean || true; pnpm turbo test:integration:login",
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"jetbrains": {
|
"jetbrains": {
|
||||||
|
@@ -8,11 +8,11 @@
|
|||||||
"runServices": [
|
"runServices": [
|
||||||
"login-integration"
|
"login-integration"
|
||||||
],
|
],
|
||||||
"workspaceFolder": "/workspaces",
|
"workspaceFolder": "/workspaces/apps/login",
|
||||||
"forwardPorts": [
|
"forwardPorts": [
|
||||||
3001
|
3001
|
||||||
],
|
],
|
||||||
"onCreateCommand": "pnpm install --frozen-lockfile --recursive && cd apps/login/packages/integration && pnpm cypress install && pnpm test:integration:login",
|
"onCreateCommand": "pnpm cypress install && pnpm test:integration:login",
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"jetbrains": {
|
"jetbrains": {
|
||||||
"settings": {
|
"settings": {
|
||||||
|
@@ -6,10 +6,13 @@
|
|||||||
"docker-compose.yml"
|
"docker-compose.yml"
|
||||||
],
|
],
|
||||||
"service": "turbo-lint-unit-debug",
|
"service": "turbo-lint-unit-debug",
|
||||||
"runServices": ["turbo-lint-unit-debug"],
|
"runServices": [
|
||||||
|
"turbo-lint-unit-debug"
|
||||||
|
],
|
||||||
"workspaceFolder": "/workspaces",
|
"workspaceFolder": "/workspaces",
|
||||||
"forwardPorts": [3001],
|
"forwardPorts": [
|
||||||
"onCreateCommand": "pnpm install --recursive",
|
3001
|
||||||
|
],
|
||||||
"postAttachCommand": "pnpm turbo daemon clean || true; pnpm turbo watch lint test:unit",
|
"postAttachCommand": "pnpm turbo daemon clean || true; pnpm turbo watch lint test:unit",
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"jetbrains": {
|
"jetbrains": {
|
||||||
@@ -18,4 +21,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -5,9 +5,11 @@
|
|||||||
"../base/docker-compose.yml"
|
"../base/docker-compose.yml"
|
||||||
],
|
],
|
||||||
"service": "devcontainer",
|
"service": "devcontainer",
|
||||||
"runServices": ["devcontainer"],
|
"runServices": [
|
||||||
|
"devcontainer"
|
||||||
|
],
|
||||||
"workspaceFolder": "/workspaces",
|
"workspaceFolder": "/workspaces",
|
||||||
"postStartCommand": "pnpm install --frozen-lockfile --recursive && pnpm turbo lint test:unit",
|
"postStartCommand": "pnpm turbo lint test:unit",
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"jetbrains": {
|
"jetbrains": {
|
||||||
"settings": {
|
"settings": {
|
||||||
@@ -15,4 +17,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user