README (849B)
1 Index-Image 2 =========== 3 4 This image is designed to be used for indexing other tasks. It takes a task 5 definition as follows: 6 ```js 7 { 8 ..., 9 scopes: [ 10 'index:insert-task:my-index.namespace', 11 'index:insert-task:...', 12 ], 13 payload: { 14 image: '...', 15 env: { 16 TARGET_TASKID: '<taskId-to-be-indexed>', 17 }, 18 command: [ 19 'insert-indexes.js', 20 'my-index.namespace.one', 21 'my-index.namespace.two', 22 '....', 23 ], 24 features: { 25 taskclusterProxy: true, 26 }, 27 maxRunTime: 600, 28 }, 29 } 30 ``` 31 32 As can be seen the `taskId` to be indexed is given by the environment variable 33 `TARGET_TASKID` and the `command` arguments specifies namespaces that it must 34 be index under. It is **important** to also include scopes on the form 35 `index:insert-task:<...>` for all namespaces `<...>` given as `command` 36 arguments.