Skip to content

fix: embed compose files, fix PostgreSQL refs, align Go module path#46

Merged
mohit-nagaraj merged 1 commit into
mainfrom
fix/embed-compose-and-bugs
Apr 14, 2026
Merged

fix: embed compose files, fix PostgreSQL refs, align Go module path#46
mohit-nagaraj merged 1 commit into
mainfrom
fix/embed-compose-and-bugs

Conversation

@mohit-nagaraj

Copy link
Copy Markdown
Member

Summary

  • Embed docker-compose files into the binary via go:embed so orchcli init writes them to docker/ — fixes the broken orchcli init + orchcli start flow
  • Replace all PostgreSQL references with MongoDB (waitForMongoDB, exec service map, next-steps output) to match actual compose files
  • Align Go module path from github.com/kubeorchestra/cli to github.com/kubeorch/cli to match the GitHub org and fix version injection via ldflags in the release workflow

Test plan

  • go build compiles successfully
  • orchcli init creates compose files in docker/
  • orchcli start -d starts services without "compose file not found" error
  • orchcli status shows MongoDB health, not PostgreSQL
  • orchcli exec mongodb opens mongosh
  • After next release: orchcli --version shows actual version instead of dev

Fixes #45
Related: KubeOrch/docs#14

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Comment thread cmd/start.go Fixed
Comment thread cmd/utils.go Fixed

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request renames the project organization from kubeorchestra to kubeorch, updates the database from PostgreSQL to MongoDB, and introduces embedded Docker Compose configurations for various development and production environments. Key feedback includes updating image registry paths in the new Compose files to reflect the organization change, ensuring consistent environment variable naming for the UI service, and addressing hardcoded container names in the exec command that currently prevent it from working correctly in development or hybrid modes.

Comment thread cmd/docker/docker-compose.hybrid-core.yml Outdated
Comment thread cmd/docker/docker-compose.hybrid-ui.yml Outdated
Comment thread cmd/docker/docker-compose.prod.yml Outdated
Comment thread cmd/docker/docker-compose.prod.yml Outdated
Comment thread cmd/docker/docker-compose.hybrid-core.yml Outdated
Comment thread cmd/exec.go
Comment thread cmd/utils.go Fixed
@mohit-nagaraj mohit-nagaraj force-pushed the fix/embed-compose-and-bugs branch 4 times, most recently from 08665e8 to 2ad0bcb Compare April 14, 2026 16:55
…urity

- Embed all docker-compose files into binary via go:embed so
  orchcli init writes them to docker/ — fixes broken init+start flow
- Fix Go module path: github.com/kubeorchestra/cli → github.com/kubeorch/cli
  to match GitHub org; fixes version injection via ldflags in releases
- Replace all PostgreSQL references with MongoDB (waitForMongoDB,
  exec service map, next-steps output)
- Auto-generate core/config.yaml (with random secrets) and ui/.env.local
  during orchcli init based on dev mode
- Fix Docker image names: ghcr.io/kubeorchestra/* → ghcr.io/kubeorch/*
- Fix exec.go to use actual running container name (resolves -dev/-hybrid
  suffix issue in dev and hybrid modes)
- Fix API_URL_INTERNAL consistency across all compose files
- Fix lint: replace magic numbers with named constants (dirPerm,
  configFilePerm, composeFilePerm, secretKeyBytes)
- Fix gosec G306: add #nosec annotations for compose/env files
  (0644 is intentional — these files contain no secrets)
- Fix Windows CI: add shell: bash to steps using bash syntax

Fixes #45

Signed-off-by: Mohit Nagaraj <mohitnagaraj20@gmail.com>
@mohit-nagaraj mohit-nagaraj force-pushed the fix/embed-compose-and-bugs branch from 2ad0bcb to efcfd03 Compare April 14, 2026 17:01
@mohit-nagaraj mohit-nagaraj merged commit fef77ea into main Apr 14, 2026
8 checks passed
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.

Fix broken orchcli init/start flow, PostgreSQL refs, version injection, and module path

2 participants