gandalf-reborn/docker/code-gen/docker-compose.yml
chris ae59139fdf Update code-gen to generate Angular client for Palantir API
Modified the Docker setup to generate a TypeScript-Angular client from the Palantir API. Added configuration options via a new `options.json` file and updated paths to align with the Angular frontend. Adjusted the script to replace the old client location with the updated Angular client path.
2025-06-10 21:50:49 +02:00

42 lines
984 B
YAML

services:
palantir:
image: mcr.microsoft.com/dotnet/sdk:9.0
container_name: codegen-backend
volumes:
- ./dotnet:/app/
working_dir: /app
restart: no
command: >
dotnet
run
--project Suspectus.Gandalf.Palantir.Api
-v n
--urls "http://0.0.0.0:5035"
-- --controllers-only
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:5035/openapi/v1.json" ]
interval: 5s
timeout: 3s
retries: 100
start_period: 40s
start_interval: 20s
typescript-gen:
image: swaggerapi/swagger-codegen-cli-v3
container_name: codegen-cli
command: >
generate
-i http://palantir:5035/openapi/v1.json
-l typescript-angular
-o /local
-c /options.json
# config-help
# -l typescript-angular
restart: no
depends_on:
palantir:
condition: service_healthy
volumes:
- ./palantir-client:/local
# - ./options.json:/options.json