{"id":16898731,"url":"https://github.com/chrischdi/bazel-hello-go-docker","last_synced_at":"2026-04-11T07:02:42.073Z","repository":{"id":78326109,"uuid":"118161653","full_name":"chrischdi/bazel-hello-go-docker","owner":"chrischdi","description":"A small, cross-compiling, dockerized application which is getting build by bazel.","archived":false,"fork":false,"pushed_at":"2018-01-19T18:48:08.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-25T12:11:12.680Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chrischdi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-19T18:19:16.000Z","updated_at":"2018-01-19T18:21:12.000Z","dependencies_parsed_at":"2023-03-08T14:30:20.294Z","dependency_job_id":null,"html_url":"https://github.com/chrischdi/bazel-hello-go-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrischdi%2Fbazel-hello-go-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrischdi%2Fbazel-hello-go-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrischdi%2Fbazel-hello-go-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrischdi%2Fbazel-hello-go-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrischdi","download_url":"https://codeload.github.com/chrischdi/bazel-hello-go-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244609425,"owners_count":20480781,"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":"2024-10-13T17:45:15.144Z","updated_at":"2026-04-11T07:02:37.032Z","avatar_url":"https://github.com/chrischdi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\n\nThis repository and its content shows a small example of creating a bazel-builded go project.\n\n# Hint:\nDue to a bug inside the bazel rules according to python3 the normal bazel commands may not work.\nAs workaround you can set `export BAZEL_PYTHON=/usr/bin/python2` (or to any other python2 binary).\n\n# step 1: [61183875](https://github.com/chrischdi/bazel-hello-go-docker/commit/61183875a45f0d5b6aed580b0826a5fcea2db944)\nThis steps adds a small hello-world application written in go.\nThe app can be built and run using `go run main.go`.\n\n# step 2: [7211b4df](https://github.com/chrischdi/bazel-hello-go-docker/commit/7211b4df77e7e9f57589cbcf1ca879b4bd546ad8)\nThis step initializes the `WORKSPACE`-file with some basic definitions.\n\n# step 3: [7f9f9304](https://github.com/chrischdi/bazel-hello-go-docker/commit/7f9f9304289e4e65c800fb6ee2fff7f12d7ec4b9)\nHere we add the initial `BUILD.bazel`.\nNow we are able to build the `main.go` for linux windows and darwin using a simple `bazel build //...`.\n\n# step 4: [60f3f2b5](https://github.com/chrischdi/bazel-hello-go-docker/commit/60f3f2b537fdde9e18d355befe89e7d4eec86318)\nThis step adds the `bazel_rules_docker` and uses `go_image` to build a go image for the application.\n\nThe following snippet creates the image, loads it into docker and runs the container:\n```\nbazel build //:main_image.tar\ndocker load -i bazel-bin/main_image.tar\ndocker run bazel:main_image\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrischdi%2Fbazel-hello-go-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrischdi%2Fbazel-hello-go-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrischdi%2Fbazel-hello-go-docker/lists"}