{"id":28520104,"url":"https://github.com/prometheus/golang-builder","last_synced_at":"2025-07-05T13:31:19.764Z","repository":{"id":3884143,"uuid":"51219324","full_name":"prometheus/golang-builder","owner":"prometheus","description":"Prometheus Golang builder Docker images","archived":false,"fork":false,"pushed_at":"2025-07-03T08:08:14.000Z","size":5486,"stargazers_count":71,"open_issues_count":7,"forks_count":41,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-07-03T09:23:49.189Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prometheus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-02-06T20:04:49.000Z","updated_at":"2025-07-03T08:08:17.000Z","dependencies_parsed_at":"2023-11-19T01:27:19.449Z","dependency_job_id":"120ec962-a14a-4bb7-b67d-a201d0087d23","html_url":"https://github.com/prometheus/golang-builder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/prometheus/golang-builder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prometheus%2Fgolang-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prometheus%2Fgolang-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prometheus%2Fgolang-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prometheus%2Fgolang-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prometheus","download_url":"https://codeload.github.com/prometheus/golang-builder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prometheus%2Fgolang-builder/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263749810,"owners_count":23505454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-09T06:38:17.509Z","updated_at":"2025-07-05T13:31:19.758Z","avatar_url":"https://github.com/prometheus.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prometheus Golang builder Docker images\n\n[![CircleCI](https://circleci.com/gh/prometheus/golang-builder/tree/master.svg?style=shield)][circleci]\n[![Docker Repository on Quay.io](https://quay.io/repository/prometheus/golang-builder/status)][quayio]\n\n## Details\n\nDocker Builder Image for cross-building Golang Prometheus projects.\n\n- `latest`, `main`, `1.24.4-main`, `1.24.4-main` ([1.24.4/main/Dockerfile](1.24.4/main/Dockerfile))\n- `arm`, `1.24.4-arm`, `1.24.4-arm` ([1.24.4/arm/Dockerfile](1.24.4/arm/Dockerfile))\n- `powerpc`, `1.24.4-powerpc`, `1.24.4-powerpc` ([1.24.4/powerpc/Dockerfile](1.24.4/powerpc/Dockerfile))\n- `mips`, `1.24.4-mips`, `1.24.4-mips` ([1.24.4/mips/Dockerfile](1.24.4/mips/Dockerfile))\n- `s390x`, `1.24.4-s390x`, `1.24.4-s390x` ([1.24.4/s390x/Dockerfile](1.24.4/s390x/Dockerfile))\n- `1.23-main`, `1.23.10-main` ([1.23/main/Dockerfile](1.23/main/Dockerfile))\n- `arm`, `1.23-arm`, `1.23.10-arm` ([1.23/arm/Dockerfile](1.23/arm/Dockerfile))\n- `powerpc`, `1.23-powerpc`, `1.23.10-powerpc` ([1.23/powerpc/Dockerfile](1.23/powerpc/Dockerfile))\n- `mips`, `1.23-mips`, `1.23.10-mips` ([1.23/mips/Dockerfile](1.23/mips/Dockerfile))\n- `s390x`, `1.23-s390x`, `1.23.10-s390x` ([1.23/s390x/Dockerfile](1.23/s390x/Dockerfile))\n\n## Usage\n\nChange the repository import path (`-i`) and target platforms (`-p`) according to your needs.\nYou can also use those images to run your tests by using the `-T` option.\n\n```\nUsage: builder.sh [args]\n  -i,--import-path arg  : Go import path of the project\n  -p,--platforms arg    : List of platforms (GOOS/GOARCH) to build separated by a space\n  -T,--tests            : Go run tests then exit\n```\n\n### Requirements\n\nThis building process is using make to build and run tests.\nTherefore a `Makefile` with `build` and `test` targets is needed into the root of your source files.\n\n### main/latest tag\n\n```\ndocker run --rm -ti -v $(pwd):/app quay.io/prometheus/golang-builder:main \\\n    -i \"github.com/prometheus/prometheus\" \\\n    -p \"linux/amd64 linux/386 darwin/amd64 darwin/386 windows/amd64 windows/386 freebsd/amd64 freebsd/386 openbsd/amd64 openbsd/386 netbsd/amd64 netbsd/386 dragonfly/amd64\"\n```\n\n### arm tag\n\n```\ndocker run --rm -ti -v $(pwd):/app quay.io/prometheus/golang-builder:arm \\\n    -i \"github.com/prometheus/prometheus\" \\\n    -p \"linux/arm linux/arm64 freebsd/arm openbsd/arm netbsd/arm\"\n```\n\n### powerpc tag\n\n```\ndocker run --rm -ti -v $(pwd):/app quay.io/prometheus/golang-builder:powerpc \\\n    -i \"github.com/prometheus/prometheus\" \\\n    -p \"linux/ppc64 linux/ppc64le\"\n```\n\n### mips tag\n\nmips64/mips64le cross-build is currently available with golang 1.6.\n\n```\ndocker run --rm -ti -v $(pwd):/app quay.io/prometheus/golang-builder:mips \\\n    -i \"github.com/prometheus/prometheus\" \\\n    -p \"linux/mips64 linux/mips64le\"\n```\n\n## Legal note\n\nOSX/Darwin/Apple builds:\n**[Please ensure you have read and understood the Xcode license\n   terms before continuing.](https://www.apple.com/legal/sla/docs/xcode.pdf)**\n\n## More information\n\n  * You will find a Circle CI configuration in `circle.yml`.\n  * All of the core developers are accessible via the [Prometheus Developers Mailinglist](https://groups.google.com/forum/?fromgroups#!forum/prometheus-developers) and the `#prometheus` channel on `irc.freenode.net`.\n\n## Contributing\n\nRefer to [CONTRIBUTING.md](CONTRIBUTING.md)\n\n## License\n\nApache License 2.0, see [LICENSE](LICENSE).\n\n[quayio]: https://quay.io/repository/prometheus/golang-builder\n[circleci]: https://circleci.com/gh/prometheus/golang-builder\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprometheus%2Fgolang-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprometheus%2Fgolang-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprometheus%2Fgolang-builder/lists"}