You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 6, 2023. It is now read-only.
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Jan 14 2019 10:51:10 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
166
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Feb 11 2019 13:09:54 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
Copy file name to clipboardExpand all lines: docs/jobs.html
+201-3Lines changed: 201 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1519,7 +1519,7 @@ <h6>Properties</h6>
1519
1519
1520
1520
1521
1521
1522
-
<tdclass="description last"><p>A required reference to a docker image in a public or private docker registry, or a container name provided by Paperspace. Docker image repository references must be in lowercase and may include a tag and a hostname prefix followed by a slash; if ommitted the hostname defaults to that of the public Docker Hub registry. An example docker image reference: 'docker.io/mynamespace/myimage:mytag'. A container name may be mixed case. (Designated container names are currently only provided as part of various Gradient tutorials and samples.)</p></td>
1522
+
<tdclass="description last"><p>A reference to a docker image in a public or private docker registry, or a container name provided by Paperspace. Docker image repository references must be in lowercase and may include a tag and a hostname prefix followed by a slash; if ommitted the hostname defaults to that of the public Docker Hub registry. An example docker image reference: 'docker.io/mynamespace/myimage:mytag'. A container name may be mixed case. (Designated container names are currently only provided as part of various Gradient tutorials and samples.)</p></td>
1523
1523
</tr>
1524
1524
1525
1525
@@ -2212,7 +2212,205 @@ <h6>Properties</h6>
2212
2212
2213
2213
2214
2214
2215
-
<tdclass="description last"><p>Optional; if included job will be sent to a preemptible VM only. Defaults to false.</p></td>
2215
+
<tdclass="description last"><p>Optional; if true job will be sent to a preemptible VM only. Defaults to false.</p></td>
2216
+
</tr>
2217
+
2218
+
2219
+
2220
+
<tr>
2221
+
2222
+
<tdclass="name"><code>useDockerfile</code></td>
2223
+
2224
+
2225
+
<tdclass="type">
2226
+
2227
+
2228
+
<spanclass="param-type">boolean</span>
2229
+
2230
+
2231
+
2232
+
</td>
2233
+
2234
+
2235
+
<tdclass="attributes">
2236
+
2237
+
<optional><br>
2238
+
2239
+
2240
+
2241
+
2242
+
2243
+
</td>
2244
+
2245
+
2246
+
2247
+
2248
+
<tdclass="description last"><p>Optional; if true the job will use the Dockerfile provided in the workspace to build a docker image and optionally run the resulting image as a container</p></td>
2249
+
</tr>
2250
+
2251
+
2252
+
2253
+
<tr>
2254
+
2255
+
<tdclass="name"><code>buildOnly</code></td>
2256
+
2257
+
2258
+
<tdclass="type">
2259
+
2260
+
2261
+
<spanclass="param-type">boolean</span>
2262
+
2263
+
2264
+
2265
+
</td>
2266
+
2267
+
2268
+
<tdclass="attributes">
2269
+
2270
+
<optional><br>
2271
+
2272
+
2273
+
2274
+
2275
+
2276
+
</td>
2277
+
2278
+
2279
+
2280
+
2281
+
<tdclass="description last"><p>Optional; if this option is selected the job will build the Dockerfile and push to a selected remote registry only, without actually running the container. A registry target must be provided.</p></td>
2282
+
</tr>
2283
+
2284
+
2285
+
2286
+
<tr>
2287
+
2288
+
<tdclass="name"><code>registryTarget</code></td>
2289
+
2290
+
2291
+
<tdclass="type">
2292
+
2293
+
2294
+
<spanclass="param-type">string</span>
2295
+
2296
+
2297
+
2298
+
</td>
2299
+
2300
+
2301
+
<tdclass="attributes">
2302
+
2303
+
<optional><br>
2304
+
2305
+
2306
+
2307
+
2308
+
2309
+
</td>
2310
+
2311
+
2312
+
2313
+
2314
+
<tdclass="description last"><p>Optional; a location to push docker images built from a Dockerfile. Must be included with a buildOnly flag. If useDockerfile is true and registryTarget is false the built container will be run but not pushed to a remote registry.</p></td>
<tdclass="description last"><p>Optional; relative location of Dockefile in the workspace. Defaults to the top level "./Dockerfile" if not specified.</p></td>
2216
2414
</tr>
2217
2415
2218
2416
@@ -4766,7 +4964,7 @@ <h5>Returns:</h5>
4766
4964
<brclass="clear">
4767
4965
4768
4966
<footer>
4769
-
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Jan 14 2019 10:51:10 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
4967
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Feb 11 2019 13:09:54 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Jan 14 2019 10:51:10 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
105
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Feb 11 2019 13:09:54 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Jan 14 2019 10:51:10 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
283
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Feb 11 2019 13:09:54 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Jan 14 2019 10:51:10 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
136
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Feb 11 2019 13:09:54 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Jan 14 2019 10:51:10 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
133
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Feb 11 2019 13:09:54 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
* @description Create a new Paperspace job, and tail its log output if run at the command line. To disable the tailing behavior specify '--tail false'. Note: if a project is not defined for the current working directory, and you are running in command line mode, a project configuration settings file will be created. Use '--init false' or specify '--project [projectname]' to override this behavior.
* @param {string} params.container - A required reference to a docker image in a public or private docker registry, or a container name provided by Paperspace. Docker image repository references must be in lowercase and may include a tag and a hostname prefix followed by a slash; if ommitted the hostname defaults to that of the public Docker Hub registry. An example docker image reference: 'docker.io/mynamespace/myimage:mytag'. A container name may be mixed case. (Designated container names are currently only provided as part of various Gradient tutorials and samples.)
63
+
* @param {string} params.container - A reference to a docker image in a public or private docker registry, or a container name provided by Paperspace. Docker image repository references must be in lowercase and may include a tag and a hostname prefix followed by a slash; if ommitted the hostname defaults to that of the public Docker Hub registry. An example docker image reference: 'docker.io/mynamespace/myimage:mytag'. A container name may be mixed case. (Designated container names are currently only provided as part of various Gradient tutorials and samples.)
64
64
* @param {string} [params.cluster] - An optional cluster name of a cluster to run the job on. Only one of cluster or clusterId may be specified.
65
65
* @param {string} [params.clusterId] - An optional cluster id of a cluster to run the job on. Only one of cluster or clusterId may be specified.
66
66
* @param {string} [params.machineType] - An optional machine type to run the job on: either 'GPU+', 'P4000', 'P5000', 'P6000', 'V100', 'K80', 'P100', 'TPU', or 'GradientNode'.<p>Defaults to 'K80'. <P>Note: the 'K80', 'P100', and 'TPU' machineTypes run on Google Cloud Platform (GCP). The other machineTypes run on the Paperspace Cloud. Google Cloud platform and Paperspace Cloud have distict Job Storage spaces; Job storage is not currently shared between these two cloud environments.
* @param {number} [params.nodeAttrs] - Optional; a JSON expression describing the node attributes for a compatible GradientNode machine to run this job. See the Gradient-Node documentation for more info.
82
82
* @param {boolean} [params.tail] - Optional; defaults to true in command line mode only. Specify false to disable automatic tailing.
83
83
* @param {boolean} [params.json] - Optional; if true, do not write progress to standard out. '--json' with no value is equivalent to true.
84
-
* @param {boolean} [params.isPreemptible] - Optional; if included job will be sent to a preemptible VM only. Defaults to false.
84
+
* @param {boolean} [params.isPreemptible] - Optional; if true job will be sent to a preemptible VM only. Defaults to false.
85
+
* @param {boolean} [params.useDockerfile] - Optional; if true the job will use the Dockerfile provided in the workspace to build a docker image and optionally run the resulting image as a container
86
+
* @param {boolean} [params.buildOnly] - Optional; if this option is selected the job will build the Dockerfile and push to a selected remote registry only, without actually running the container. A registry target must be provided.
87
+
* @param {string} [params.registryTarget] - Optional; a location to push docker images built from a Dockerfile. Must be included with a buildOnly flag. If useDockerfile is true and registryTarget is false the built container will be run but not pushed to a remote registry.
* @param {string} [params.relDockerfilePath] - Optional; relative location of Dockefile in the workspace. Defaults to the top level "./Dockerfile" if not specified.
85
91
* @param {function} cb - Node-style error-first callback function
86
92
* @returns {object} job - The created job JSON object
if (params.useDockerfile && !params.buildOnly && !params.command) {
239
+
return ifCliPrintErrorOnly(new Error('Missing required parameter: --command. Use the buildOnly flag or pass a command to execute against the container.'));
240
+
} else if (params.useDockerfile && params.buildOnly) {
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Jan 14 2019 10:51:10 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
583
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Feb 11 2019 13:09:54 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Jan 14 2019 10:51:10 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
106
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Feb 11 2019 13:09:54 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Jan 14 2019 10:51:10 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
72
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Feb 11 2019 13:09:54 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
0 commit comments