@@ -43,18 +43,26 @@ To make changes to the CI container, carry out the following steps:
43
43
Consult :ref: `build_run_docker_locally ` for this step.
44
44
4. Submit a pull request to `dmlc/xgboost-devops <https://github.com/dmlc/xgboost-devops >`_ with
45
45
the proposed changes to the Dockerfile. Make note of the pull request number. Example: ``#204 ``
46
- 5. Clone `dmlc/xgboost <https://github.com/dmlc/xgboost >`_ and update all references to the
47
- old container to point to the new container. More specifically, all container image URIs of form
48
- ``492475357299.dkr.ecr.us-west-2.amazonaws.com/[image_repo]:main `` should have its image tag
49
- (last component) replaced with ``PR-# ``, where ``# `` is the pull request number.
50
- For the example above,
51
- we'd replace ``492475357299.dkr.ecr.us-west-2.amazonaws.com/xgb-ci.gpu:main `` with
52
- ``492475357299.dkr.ecr.us-west-2.amazonaws.com/xgb-ci.gpu:PR-204 ``.
46
+ 5. Clone `dmlc/xgboost <https://github.com/dmlc/xgboost >`_. Locate the file
47
+ ``ops/pipeline/get-image-tag.sh ``, which should have a single line
48
+
49
+ .. code-block :: bash
50
+
51
+ IMAGE_TAG=main
52
+
53
+ To use the new container, revise the file as follows:
54
+
55
+ .. code-block :: bash
56
+
57
+ IMAGE_TAG=PR-XX
58
+
59
+ where ``XX `` is the pull request number.
60
+
53
61
6. Now submit a pull request to `dmlc/xgboost <https://github.com/dmlc/xgboost >`_. The CI will
54
62
run tests using the new container. Verify that all tests pass.
55
63
7. Merge the pull request in ``dmlc/xgboost-devops ``. Wait until the CI completes on the ``main `` branch.
56
- 8. Go back to the the pull request for ``dmlc/xgboost `` and revise all the container references to use
57
- the old tag `` : main ``.
64
+ 8. Go back to the the pull request for ``dmlc/xgboost `` and change `` ops/pipeline/get-image-tag.sh ``
65
+ back to `` IMAGE_TAG= main ``.
58
66
9. Merge the pull request in ``dmlc/xgboost ``.
59
67
60
68
.. _build_run_docker_locally :
0 commit comments