How do I deploy a generated service and connect to it from Hub?
Generate a service from a Hub project plus generator (ol generate-service or Designer Generate), then deploy (Hub Deploy button, CLI, or your pipeline). The Deploy button needs Hub configured for that environment (SaaS vs on-prem). See CLI for Automation and SaaS Platform & Deployment.
Which Docker image
Use the image that matches the generator (for example CICS TS vs a generic spring-java-rest RPC image). A Dockerfile that does not match the template usually means a custom template was not applied, or generate was run with a different generator.
Connection profile hostname
For a REST service deployed in Hub, the connection profile host is the service’s public URL (Hub/SaaS route or your ingress), not the Hub UI URL and not localhost from another machine.
Test the service’s Swagger/OpenAPI first. If that works and Hub Test Asset fails, the connection profile (URL, TLS, API key) is wrong.