Skip to content

Conversation

hiento09
Copy link
Contributor

This pull request updates the Dockerfile for apps/jan-api-gateway to improve the build process and enable CGO support for the Go binary. The most important changes are:

Build environment and dependencies:

  • Added installation of the build-base package to provide necessary system libraries for CGO-enabled builds.

Go build configuration:

  • Enabled CGO by setting CGO_ENABLED=1 and specified the target OS and architecture (GOOS=linux, GOARCH=amd64) to ensure compatibility and external linking.
  • Updated the go build command to use -ldflags="-linkmode=external" for external linking, which is required when using CGO, and retained the version injection for the build.

@hiento09 hiento09 merged commit 892bffc into dev Aug 20, 2025
1 check passed
@hiento09 hiento09 deleted the chore/go-allow-beyla-auto-instrument branch August 20, 2025 11:09
jjchen01 added a commit that referenced this pull request Aug 26, 2025
* bump version

* version tag test

* bump version

* chore: keep DWARF for opentelemetry auto instrument (#44)

* chore: change go build flag (#45)

* chore: change go build flag (#46)

* bump version

* chore: allow grafana beyla auto-instrument (#50)

* chore: pprof (#56)

* chore: expose pprof endpoint (#57)

* chore: expose pprof endpoint (#57)

* chore: pprof listen on 0.0.0.0 (#59)

* Feat: domains for apikey management (#62)

* models for apikey management
* services for org
* management domains

* Feat: db-migration (#64)

* chore: generate .hcl

* migration script

* chore: code clean up

* chore: reset database (#65)

---------

Co-authored-by: hiento09 <[email protected]>
Co-authored-by: Hien To <[email protected]>
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