Skip to content

chore: add microservice architecture scaffolding#16

Closed
Patel230 wants to merge 6 commits into
mainfrom
chore/microservice-arch
Closed

chore: add microservice architecture scaffolding#16
Patel230 wants to merge 6 commits into
mainfrom
chore/microservice-arch

Conversation

@Patel230

@Patel230 Patel230 commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add Dockerfile, .dockerignore, .env.example
  • Add api/openapi.yaml (CLI command surface reference)
  • Add deploy/docker/docker-compose.yml
  • Add docs/architecture.md (modern, emoji-labeled)
  • Add .github/workflows/docker.yml (GHCR build+push CI)

Add Dockerfile, .dockerignore, .env.example, api/openapi.yaml,
deploy/docker/docker-compose.yml, docs/architecture.md, and
.github/workflows/docker.yml for GHCR build+push CI.
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v3

- name: Docker metadata
id: meta
uses: docker/metadata-action@v5
type=sha,prefix=sha-

- name: Build and push
uses: docker/build-push-action@v6
Patel230 added 5 commits June 1, 2026 23:36
The previous merge-commit build failed due to stale module cache.
This forces a clean rebuild with current go.mod state.
The Dockerfile was copying go.mod first, running go mod download,
then copying source. This meant the local perf/ package wasn't
available during go mod download. Copy everything first.
.dockerignore was excluding the perf/ directory which is
a local Go package required by cmd/trace.
Add explicit storer Close() via t.Cleanup to release git pack
file descriptors before t.TempDir() removes the directory.
Also disable git auto-GC in test repos to prevent background
goroutines from holding files open during cleanup.
@Patel230 Patel230 closed this Jun 2, 2026
@Patel230 Patel230 deleted the chore/microservice-arch branch June 2, 2026 00:54
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.

2 participants