Skip to content

chore(environment): name containers after their service - #137

Merged
jravani merged 2 commits into
mainfrom
chore/container-names
Sep 21, 2026
Merged

jravani merged 2 commits into
mainfrom
chore/container-names

Conversation

@jravani

@jravani jravani commented Sep 21, 2026

Copy link
Copy Markdown
Member

Container names in environment/http/docker-compose.yml now say what each container is, matching the other heat-stack services (buem-gateway, buem-model).

Service Container Was Role
city2tabula city2tabula city2tabula-server HTTP API (cmd/server)
city2tabula-cli city2tabula-cli city2tabula-environment Interactive shell for c2t
city2tabula-db city2tabula-db unchanged PostGIS

The makefile, setup.ps1 and setup.bat exec into city2tabula-cli. The published image ghcr.io/thd-spatial-ai/city2tabula-server, the binary name and the CI workflow are unchanged.

Compatibility alias

city2tabula keeps city2tabula-server as a network alias on tentacron-net. TentaCron's proxy targets for runs, buildings, coverage and geometry resolve the old name until its container is recreated with the updated targets. The alias is removed in a follow-up once that has happened.

Dev shell host port

The CLI container runs bash and serves nothing, so its 5000:5000 mapping only occupied host port 5000. The mapping and the HOST_PORT variable in docker.env are removed.

Verified

  • docker compose --env-file docker.env config -q passes.
  • Recreated the stack: all three containers under project city2tabula, city2tabula healthy.
  • From inside the TentaCron container, both http://city2tabula-server:5000/api/v1/health and http://city2tabula:5000/api/v1/health return {"status":"ok"}.
  • city2tabula-cli carries c2t and resolves city2tabula-db.

The city2tabula-environment service runs bash for interactive CLI
use and serves nothing on port 5000, so publishing it only occupied
host port 5000. Remove the mapping and the HOST_PORT variable that
fed it.
The HTTP service's container becomes city2tabula, matching the other
heat-stack services such as buem-gateway, and the interactive CLI
shell becomes city2tabula-cli instead of city2tabula-environment. The
makefile and setup scripts exec into the new CLI name.

city2tabula-server stays as a network alias on tentacron-net so
existing TentaCron proxy targets keep resolving until they move to
the new name. The published image name is unchanged.
@jravani
jravani merged commit 63b5150 into main Sep 21, 2026
4 checks passed
@codecov

codecov Bot commented Sep 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@jravani
jravani deleted the chore/container-names branch September 23, 2026 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant