Introduced a "--controllers-only" mode in the API for serving OpenAPI endpoints exclusively. Added scripts, Docker configurations, and run settings to enable automated code generation for the Palantir client. Removed obsolete EF metadata target file.
42 lines
985 B
YAML
42 lines
985 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: >
|
|
config-help
|
|
-l typescript-angular
|
|
# generate
|
|
# -i http://palantir:5035/openapi/v1.json
|
|
# -l csharp
|
|
# -o /local
|
|
# -c /options.json
|
|
restart: no
|
|
depends_on:
|
|
palantir:
|
|
condition: service_healthy
|
|
volumes:
|
|
- ./palantir-client:/local
|
|
# - ./options.json:/options.json |