Skip to content

Commit

Permalink
[DOCKER] Use clear name that is separate from ASF brand for cache (ap…
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen authored and kevinthesun committed Sep 17, 2020
1 parent 082f867 commit 196b434
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 13 deletions.
18 changes: 9 additions & 9 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
//
// - Send PR to upgrade build script in the repo
// - Build the new docker image
// - Tag the docker image with a new version and push to tvmai
// - Tag the docker image with a new version and push to a binary cache.
// - Update the version in the Jenkinsfile, send a PR
// - Fix any issues wrt to the new image version in the PR
// - Merge the PR and now we are in new version
Expand All @@ -44,11 +44,11 @@
//

// NOTE: these lines are scanned by docker/dev_common.sh. Please update the regex as needed. -->
ci_lint = "tvmai/ci-lint:v0.61"
ci_gpu = "tvmai/ci-gpu:v0.64"
ci_cpu = "tvmai/ci-cpu:v0.65"
ci_wasm = "tvmai/ci-wasm:v0.60"
ci_i386 = "tvmai/ci-i386:v0.52"
ci_lint = "tlcpack/ci-lint:v0.61"
ci_gpu = "tlcpack/ci-gpu:v0.64"
ci_cpu = "tlcpack/ci-cpu:v0.65"
ci_wasm = "tlcpack/ci-wasm:v0.60"
ci_i386 = "tlcpack/ci-i386:v0.52"
// <--- End of regex-scanned config.

// tvm libraries
Expand Down Expand Up @@ -289,13 +289,13 @@ stage('Integration Test') {
stage('Build packages') {
parallel 'conda CPU': {
node('CPU') {
sh "${docker_run} tvmai/conda-cpu ./conda/build_cpu.sh
sh "${docker_run} tlcpack/conda-cpu ./conda/build_cpu.sh
}
},
'conda cuda': {
node('CPU') {
sh "${docker_run} tvmai/conda-cuda90 ./conda/build_cuda.sh
sh "${docker_run} tvmai/conda-cuda100 ./conda/build_cuda.sh
sh "${docker_run} tlcpack/conda-cuda90 ./conda/build_cuda.sh
sh "${docker_run} tlcpack/conda-cuda100 ./conda/build_cuda.sh
}
}
// Here we could upload the packages to anaconda for releases
Expand Down
19 changes: 15 additions & 4 deletions docs/install/docker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ We can then use the following command to launch a docker image.
/path/to/tvm/docker/bash.sh <image-name>
Here the image-name can be a local docker image name, e.g. `tvm.ci_cpu` after you have done
the local build. Or a pre-built third party image (`tvmai/demo-cpu` or `tvmai/ci-gpu`).
Here the image-name can be a local docker image name, e.g. `tvm.ci_cpu` after you have done the local build.

This auxiliary script does the following things:

Expand All @@ -65,10 +64,22 @@ Note that on macOS, because we use bridge network, jupyter notebook will be repo
at an URL like ``http://{container_hostname}:8888/?token=...``. You should replace the ``container_hostname``
with ``localhost`` when pasting it into browser.

You can find some un-official prebuilt images in `<https://hub.docker.com/r/tvmai/>`_.
Note that these are convenience images and are not part of the ASF release.

Docker Source
-------------
Check out `The docker source <https://github.com/apache/incubator-tvm/tree/master/docker>`_ if you are interested in
building your own docker images.


Run the following command to build the docker image.

.. code:: bash
/path/to/tvm/docker/build.sh <image-name>
You can find some un-official thirdparty prebuilt images.
These images are used for test purposes and are NOT of the ASF release.


`<https://hub.docker.com/r/tlpack/>`_.

0 comments on commit 196b434

Please sign in to comment.