Deployer guide

Before deploying

The checked-in configuration is an example. In particular, quarkus.hibernate-orm.schema-management.strategy=drop-and-create and the corresponding uwsstore setting can delete and recreate database objects. Do not use these settings against production data. Manage schema creation and migrations separately and explicitly configure both persistence units, for example:

%prod.quarkus.hibernate-orm.schema-management.strategy=none
%prod.quarkus.hibernate-orm."uwsstore".schema-management.strategy=none
%prod.quarkus.hibernate-orm.scripts.generation=none
%prod.quarkus.hibernate-orm.log.sql=false
%prod.quarkus.hibernate-orm.log.bind-parameters=false

These settings do not create or migrate the schemas. Provision a compatible PostgreSQL database, pgSphere extension, TAP schema/data and UWS job-store tables first. The default datasource is shared with the UWS persistence unit; configure a named datasource and point the uwsstore unit to it if separation is needed. Supply credentials through a secret manager or environment variables, not committed files. Replace the DemoDM VO-DML TAP schema and ensure it describes the actual database.

Set ivoa.baseAddress to the externally visible application root, including a trailing slash; generated service and capability URLs use it. Configure reverse proxies and ingress consistently, and follow Quarkus guidance for trusted proxy headers. The service needs a writable temporary directory for jobs. The sample creates a new local directory at startup; database-backed job metadata does not by itself make temporary files durable or shared between replicas. Plan storage, cleanup and scaling accordingly.

Packaging options

  • Development: ./gradlew quarkusDev enables live reload and the dev UI. Dev Services can start the configured PostgreSQL/pgSphere image; this mode is not a production deployment.

  • JVM fast jar: ./gradlew build creates build/quarkus-app/quarkus-run.jar. Deploy the entire build/quarkus-app directory, not just the runner, and run java -jar build/quarkus-app/quarkus-run.jar.

  • JVM uber jar: ./gradlew build -Dquarkus.package.jar.type=uber-jar creates a runner jar in build/; run it with java -jar.

  • Native: ./gradlew build -Dquarkus.native.enabled=true requires a compatible native-image toolchain. Add -Dquarkus.native.container-build=true to build in a container instead. Run the resulting build/*-runner executable; its name includes the project version.

  • Containers: after a fast-jar build, use docker build -f src/main/docker/Dockerfile.jvm -t tap-server:jvm .. After a native build, use docker build -f src/main/docker/Dockerfile.native -t tap-server:native .. The repository also contains legacy-jar and native-micro Dockerfiles; use the package type and prerequisites described in each file. Supply network, configuration and secrets explicitly when running an image.

For example, after provisioning a database and production configuration:

docker run --rm -p 8080:8080 \
  -e QUARKUS_DATASOURCE_JDBC_URL=jdbc:postgresql://db.example:5432/tap \
  -e QUARKUS_DATASOURCE_USERNAME=tap \
  -e QUARKUS_DATASOURCE_PASSWORD="$DB_PASSWORD" \
  -e IVOA_BASEADDRESS=https://tap.example.org/ \
  tap-server:jvm

The database hostname must resolve from inside the container. Provide the production schema settings above through a mounted configuration file or other Quarkus configuration source; the command alone does not make the example configuration production-safe. Environment variables can be visible to container administrators; use your platform’s secret mechanism.

Kubernetes and Helm

The repository includes a Kubernetes ConfigMap fragment and Helm/ingress properties. The build exposes a prepareHelmChart task and may generate manifests and chart files under build/kubernetes and build/helm. Inspect the outputs of the actual build and enabled extensions before deploying: the checked-in ConfigMap is not a complete deployment, and its presence does not guarantee that its values are mounted or injected. Review image name, ingress, secrets, database access and persistence in generated resources before applying them. Quarkus’ Kubernetes and Helm extension guides describe their respective generation and configuration options.

Operations and checks

Configure resource limits and TAP/UWS policies to match available capacity. Review logs and protect them from exposing query parameters or credentials. Check /tap/availability, /tap/capabilities and /tap/tables, then submit a representative sync and async query as shown in Developer guide. The Configuration reference reference describes application properties and configuration sources.