{"id":13579506,"url":"https://github.com/hadim/docker-tensorflow-builder","last_synced_at":"2025-04-05T21:31:48.970Z","repository":{"id":140826791,"uuid":"135764303","full_name":"hadim/docker-tensorflow-builder","owner":"hadim","description":"Docker images to compile TensorFlow yourself.","archived":true,"fork":false,"pushed_at":"2019-12-28T11:04:56.000Z","size":91,"stargazers_count":163,"open_issues_count":5,"forks_count":48,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-02T11:49:26.321Z","etag":null,"topics":["docker","docker-image","tensorflow"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hadim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-06-01T21:19:07.000Z","updated_at":"2024-02-21T13:09:28.000Z","dependencies_parsed_at":"2024-01-16T21:04:43.406Z","dependency_job_id":"19ab4160-5186-47c2-a822-194bf0d84d10","html_url":"https://github.com/hadim/docker-tensorflow-builder","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/hadim%2Fdocker-tensorflow-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadim%2Fdocker-tensorflow-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadim%2Fdocker-tensorflow-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadim%2Fdocker-tensorflow-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hadim","download_url":"https://codeload.github.com/hadim/docker-tensorflow-builder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247405974,"owners_count":20933799,"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":["docker","docker-image","tensorflow"],"created_at":"2024-08-01T15:01:40.045Z","updated_at":"2025-04-05T21:31:48.700Z","avatar_url":"https://github.com/hadim.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# Compile Tensorflow on Docker\n\nDocker images to compile TensorFlow yourself.\n\nTensorflow only provide a limited set of build and it can be challenging to compile yourself on certain configuration. With this `Dockerfile`, you should be able to compile TensorFlow on any Linux platform that run Docker.\n\nCompilation images are provided for Ubuntu 18.10, Ubuntu 16.04, CentOS 7.4 and CentOS 6.6.\n\n## Requirements\n\n- `docker`\n- `docker-compose`\n\n## Usage\n\n- Clone this repository:\n\n```bash\ngit clone https://github.com/hadim/docker-tensorflow-builder.git\n```\n\n### TensoFlow CPU\n\n- Edit the `build.sh` file to modify TensorFlow compilation parameters. Then launch the build:\n\n```bash\nLINUX_DISTRO=\"ubuntu-16.04\"\n# or LINUX_DISTRO=\"ubuntu-18.10\"\n# or LINUX_DISTRO=\"centos-7.4\"\n# or LINUX_DISTRO=\"centos-6.6\"\ncd \"tensorflow/$LINUX_DISTRO\"\n\n# Set env variables\nexport PYTHON_VERSION=3.6\nexport TF_VERSION_GIT_TAG=v1.13.1\nexport BAZEL_VERSION=0.19\nexport USE_GPU=0\n\n# Build the Docker image\ndocker-compose build\n\n# Start the compilation\ndocker-compose run tf\n\n# You can also do:\n# docker-compose run tf bash\n# bash build.sh\n```\n\n### TensorFlow GPU\n\n- Edit the `build.sh` file to modify TensorFlow compilation parameters. Then launch the build:\n\n```bash\nLINUX_DISTRO=\"ubuntu-16.04\"\n# or LINUX_DISTRO=\"ubuntu-18.10\"\n# or LINUX_DISTRO=\"centos-7.4\"\n# or LINUX_DISTRO=\"centos-6.6\"\ncd \"tensorflow/$LINUX_DISTRO\"\n\n# Set env variables\nexport PYTHON_VERSION=3.6\nexport TF_VERSION_GIT_TAG=v1.13.1\nexport BAZEL_VERSION=0.19\nexport USE_GPU=1\nexport CUDA_VERSION=10.0\nexport CUDNN_VERSION=7.5\nexport NCCL_VERSION=2.4\n\n# Build the Docker image\ndocker-compose build\n\n# Start the compilation\ndocker-compose run tf\n\n# You can also do:\n# docker-compose run tf bash\n# bash build.sh\n```\n\n---\n\n- Refer to [tested build configurations](https://www.tensorflow.org/install/source#tested_build_configurations) to know which `BAZEL_VERSION` you need.\n- Be patient, the compilation can be long.\n- Enjoy your Python wheels in the `wheels/` folder.\n- *Don't forget to remove the container to free the space after the build: `docker-compose rm --force`.*\n\n## Builds\n\n| Tensorflow | Python | Distribution | Bazel | CUDA | cuDNN | NCCL | Comment |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n| v2.0.0-alpha0 | 3.6 | Ubuntu 18.10 | 0.20 | 10.0 | 7.5 | 2.4 | seg fault error  |\n| v2.0.0-alpha0 | 3.6 | Ubuntu 18.10 | 0.20 | - | - | - | OK |\n| v2.0.0-alpha0 | 3.6 | Ubuntu 16.04 | 0.20 | 10.0 | 7.5 | 2.4 | TODO |\n| v2.0.0-alpha0 | 3.6 | Ubuntu 16.04 | 0.20 | - | - | - | TODO |\n| 1.9.0 | 3.6 | Ubuntu 16.04 | - | - | 0.19 | - | OK |\n| 1.9.0 | 3.6 | Ubuntu 16.04 | 9.0 | 0.19 | 7.1 | - | OK |\n| 1.9.0 | 3.6 | Ubuntu 16.04 | 9.1 | 0.19 | 7.1 | - | OK |\n| 1.9.0 | 3.6 | Ubuntu 16.04 | 9.2 | 0.19 | 7.1 | - | OK |\n| 1.9.0 | 3.6 | CentOS 6.6 | - | - | 0.19 | - | OK |\n| 1.9.0 | 3.6 | CentOS 6.6 | 9.0 | 0.19 | 7.1 | - | OK |\n| 1.9.0 | 3.6 | CentOS 6.6 | 9.1 | 0.19 | 7.1 | - | OK |\n| 1.9.0 | 3.6 | CentOS 6.6 | 9.2 | 0.19 | 7.1 | - | OK |\n\n## Authors\n\n- Hadrien Mary \u003chadrien.mary@gmail.com\u003e\n\n## License\n\nMIT License. See [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadim%2Fdocker-tensorflow-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhadim%2Fdocker-tensorflow-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadim%2Fdocker-tensorflow-builder/lists"}