{"id":15482444,"url":"https://github.com/uchuhimo/docker-bazel","last_synced_at":"2026-02-08T21:32:16.858Z","repository":{"id":81116332,"uuid":"145135702","full_name":"uchuhimo/docker-bazel","owner":"uchuhimo","description":null,"archived":false,"fork":false,"pushed_at":"2018-10-23T12:10:38.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-20T01:27:32.424Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/uchuhimo.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-08-17T15:14:21.000Z","updated_at":"2020-09-21T11:43:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"57684b7d-aa29-4d58-8f55-d029017db8a5","html_url":"https://github.com/uchuhimo/docker-bazel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uchuhimo/docker-bazel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchuhimo%2Fdocker-bazel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchuhimo%2Fdocker-bazel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchuhimo%2Fdocker-bazel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchuhimo%2Fdocker-bazel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uchuhimo","download_url":"https://codeload.github.com/uchuhimo/docker-bazel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchuhimo%2Fdocker-bazel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29244653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T21:00:43.743Z","status":"ssl_error","status_checked_at":"2026-02-08T20:59:20.374Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-02T05:09:12.691Z","updated_at":"2026-02-08T21:32:16.832Z","avatar_url":"https://github.com/uchuhimo.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-bazel\n\nConfigure user:\n\n- change `RUN useradd -m -u 2001 yxqiu` in Dockerfile to your user name/id.\n\nStart container:\n\n```\nexport BAZEL_WORKSPACE=/path/to/tensorflow\ndocker-compose build\ndocker-compose down\ndocker-compose up -d\n```\n\nExecute command in container:\n\n```\ndocker-compose exec --user \u003cuser-name\u003e bazel python -V\n```\n\nBuild TensorFlow from source (use v1.10.0 as example, check https://www.tensorflow.org/install/source for more details):\n\n```\ncd /path/to/tensorflow\ngit checkout v1.10.0\ndocker-compose exec --user \u003cuser-name\u003e bazel ./configure\n# if GPU\ndocker-compose exec --user \u003cuser-name\u003e bazel bazel --output_user_root=/tmp/user_bazel/ build --config=mkl --config=cuda --config=opt //tensorflow/tools/pip_package:build_pip_package\n# else if CPU\ndocker-compose exec --user \u003cuser-name\u003e bazel bazel --output_user_root=/tmp/user_bazel/ build --config=mkl --config=opt //tensorflow/tools/pip_package:build_pip_package\n# end\ndocker-compose exec --user \u003cuser-name\u003e bazel bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg\ndocker-compose exec --user \u003cuser-name\u003e bazel cp /tmp/tensorflow_pkg/tensorflow-1.10.0-cp36-cp36m-linux_x86_64.whl /workspace/build/\n# you can find the generated `.whl` file in /path/to/tensorflow/build/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuchuhimo%2Fdocker-bazel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuchuhimo%2Fdocker-bazel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuchuhimo%2Fdocker-bazel/lists"}