mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 14:37:34 +00:00
wip
This commit is contained in:
31
apps/api/Dockerfile
Normal file
31
apps/api/Dockerfile
Normal file
@@ -0,0 +1,31 @@
|
||||
FROM debian:latest AS artifact
|
||||
ENV ZITADEL_ARGS=
|
||||
|
||||
RUN apt-get update && apt-get install ca-certificates -y
|
||||
|
||||
COPY entrypoint.sh /app/entrypoint.sh
|
||||
COPY zitadel /app/zitadel
|
||||
|
||||
RUN useradd -s "" --home / zitadel && \
|
||||
chown zitadel /app/zitadel && \
|
||||
chmod +x /app/zitadel && \
|
||||
chown zitadel /app/entrypoint.sh && \
|
||||
chmod +x /app/entrypoint.sh
|
||||
|
||||
WORKDIR /app
|
||||
ENV PATH="/app:${PATH}"
|
||||
|
||||
USER zitadel
|
||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||
|
||||
FROM scratch AS final
|
||||
|
||||
COPY --from=artifact /etc/passwd /etc/passwd
|
||||
COPY --from=artifact /etc/ssl/certs /etc/ssl/certs
|
||||
COPY --from=artifact /app/zitadel /app/zitadel
|
||||
|
||||
HEALTHCHECK NONE
|
||||
EXPOSE 8080
|
||||
|
||||
USER zitadel
|
||||
ENTRYPOINT ["/app/zitadel"]
|
17
apps/api/entrypoint.sh
Normal file
17
apps/api/entrypoint.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
case $@ in
|
||||
sh*)
|
||||
${@:3}
|
||||
;;
|
||||
bash*)
|
||||
${@:5}
|
||||
;;
|
||||
*)
|
||||
if [[ ! -z "$@" ]]
|
||||
then
|
||||
ZITADEL_ARGS="$@"
|
||||
fi
|
||||
/app/zitadel ${ZITADEL_ARGS}
|
||||
;;
|
||||
esac
|
41
apps/api/project.json
Normal file
41
apps/api/project.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"name": "@zitadel/api",
|
||||
"$schema": "node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": ".",
|
||||
"projectType": "application",
|
||||
"release": {
|
||||
"docker": {
|
||||
"repositoryName": "zitadel/api"
|
||||
}
|
||||
},
|
||||
"targets": {
|
||||
"build": {
|
||||
"command": "make compile",
|
||||
"options": {
|
||||
"command": "make compile"
|
||||
},
|
||||
"outputs": [
|
||||
"{workspaceRoot}/apps/api/zitadel"
|
||||
],
|
||||
"dependsOn": [
|
||||
"@zitadel/console:build"
|
||||
]
|
||||
},
|
||||
"docker:build": {
|
||||
"dependsOn": [
|
||||
"build"
|
||||
],
|
||||
"images": [
|
||||
"zitadel/zitadel:latest"
|
||||
]
|
||||
},
|
||||
"docker:run": {
|
||||
"options": {
|
||||
"args": [
|
||||
"-p",
|
||||
"3000:3000"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -12,40 +12,6 @@
|
||||
"lint:fix": "prettier --write src",
|
||||
"generate": "pnpm exec buf generate ../../proto --include-imports --include-wkt",
|
||||
"clean": "rm -rf dist .angular node_modules src/app/proto/generated"
|
||||
},
|
||||
"nx": {
|
||||
"release": {
|
||||
"docker": {
|
||||
"repositoryName": "zitadel/console"
|
||||
}
|
||||
},
|
||||
"targets": {
|
||||
"generate": {
|
||||
"outputs": [
|
||||
"{projectRoot}/src/app/proto/generated/**"
|
||||
]
|
||||
},
|
||||
"build": {
|
||||
"outputs": [
|
||||
"{projectRoot}/dist/**"
|
||||
],
|
||||
"dependsOn": [
|
||||
"generate",
|
||||
"@zitadel/client:build"
|
||||
]
|
||||
},
|
||||
"docker:build": {
|
||||
"dependsOn": ["build"]
|
||||
},
|
||||
"docker:run": {
|
||||
"options": {
|
||||
"args": [
|
||||
"-p",
|
||||
"3001:3001"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@angular/animations": "^16.2.12",
|
||||
|
46
apps/console/project.json
Normal file
46
apps/console/project.json
Normal file
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"name": "@zitadel/console",
|
||||
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": "apps/console",
|
||||
"projectType": "application",
|
||||
"release": {
|
||||
"docker": {
|
||||
"repositoryName": "zitadel/console"
|
||||
}
|
||||
},
|
||||
"targets": {
|
||||
"generate": {
|
||||
"outputs": [
|
||||
"{projectRoot}/src/app/proto/generated/**"
|
||||
]
|
||||
},
|
||||
"build": {
|
||||
"outputs": [
|
||||
"{projectRoot}/dist/**"
|
||||
],
|
||||
"dependsOn": [
|
||||
"generate",
|
||||
"@zitadel/client:build"
|
||||
]
|
||||
},
|
||||
"docker:build": {
|
||||
"dependsOn": [
|
||||
"build"
|
||||
],
|
||||
"options": {
|
||||
"push": false,
|
||||
"tags": [
|
||||
"zitadel/console:latest"
|
||||
]
|
||||
}
|
||||
},
|
||||
"docker:run": {
|
||||
"options": {
|
||||
"args": [
|
||||
"-p",
|
||||
"3001:3001"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -21,59 +21,6 @@
|
||||
"test:acceptance:setup": "cd ../.. && make login_test_acceptance_setup_env && NODE_ENV=test turbo run test:acceptance:setup:dev",
|
||||
"test:acceptance:setup:dev": "cd ../.. && make login_test_acceptance_setup_dev"
|
||||
},
|
||||
"nx": {
|
||||
"release": {
|
||||
"docker": {
|
||||
"repositoryName": "zitadel/login"
|
||||
}
|
||||
},
|
||||
"targets": {
|
||||
"build": {
|
||||
"outputs": [
|
||||
"{projectRoot}/dist/**"
|
||||
],
|
||||
"dependsOn": [
|
||||
"@zitadel/client:build"
|
||||
]
|
||||
},
|
||||
"build:login:standalone": {
|
||||
"outputs": [
|
||||
"{projectRoot}/dist/**"
|
||||
],
|
||||
"dependsOn": [
|
||||
"@zitadel/client#build"
|
||||
]
|
||||
},
|
||||
"dev": {
|
||||
"dependsOn": [
|
||||
"@zitadel/client#build"
|
||||
]
|
||||
},
|
||||
"test": {
|
||||
"dependsOn": [
|
||||
"@zitadel/client#build"
|
||||
]
|
||||
},
|
||||
"test:unit": {
|
||||
"dependsOn": [
|
||||
"@zitadel/client#build"
|
||||
]
|
||||
},
|
||||
"docker:build": {
|
||||
"dependsOn": [
|
||||
"build:login:standalone"
|
||||
]
|
||||
},
|
||||
"docker:run": {
|
||||
"options": {
|
||||
"args": [
|
||||
"-p",
|
||||
"3002:3002"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"git": {
|
||||
"pre-commit": "lint-staged"
|
||||
},
|
||||
|
63
apps/login/project.json
Normal file
63
apps/login/project.json
Normal file
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"name": "@zitadel/login",
|
||||
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": "apps/login",
|
||||
"projectType": "application",
|
||||
"release": {
|
||||
"docker": {
|
||||
"repositoryName": "zitadel/login"
|
||||
}
|
||||
},
|
||||
"targets": {
|
||||
"build": {
|
||||
"outputs": [
|
||||
"{projectRoot}/dist/**"
|
||||
],
|
||||
"dependsOn": [
|
||||
"@zitadel/client:build"
|
||||
]
|
||||
},
|
||||
"build:login:standalone": {
|
||||
"outputs": [
|
||||
"{projectRoot}/dist/**"
|
||||
],
|
||||
"dependsOn": [
|
||||
"@zitadel/client#build"
|
||||
]
|
||||
},
|
||||
"dev": {
|
||||
"dependsOn": [
|
||||
"@zitadel/client#build"
|
||||
]
|
||||
},
|
||||
"test": {
|
||||
"dependsOn": [
|
||||
"@zitadel/client#build"
|
||||
]
|
||||
},
|
||||
"test:unit": {
|
||||
"dependsOn": [
|
||||
"@zitadel/client#build"
|
||||
]
|
||||
},
|
||||
"docker:build": {
|
||||
"dependsOn": [
|
||||
"build:login:standalone"
|
||||
],
|
||||
"options": {
|
||||
"push": false,
|
||||
"tags": [
|
||||
"zitadel/login:latest"
|
||||
]
|
||||
}
|
||||
},
|
||||
"docker:run": {
|
||||
"options": {
|
||||
"args": [
|
||||
"-p",
|
||||
"3002:3002"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user