get-java
Automatically generated README for this automation recipe: get-java
Category: Detection or installation of tools and artifacts
License: Apache 2.0
-
Notes from the authors, contributors and users: README-extra
-
CM meta description for this script: _cm.json
- Output cached? True
Reuse this script in your project
Install MLCommons CM automation meta-framework
Pull CM repository with this automation recipe (CM script)
cm pull repo mlcommons@cm4mlops
Print CM help from the command line
cmr "get java" --help
Run this script
Run this script via CLI
cm run script --tags=get,java[,variations] [--input_flags]
Run this script via CLI (alternative)
cmr "get java [variations]" [--input_flags]
Run this script from Python
import cmind
r = cmind.access({'action':'run'
'automation':'script',
'tags':'get,java'
'out':'con',
...
(other input keys for this script)
...
})
if r['return']>0:
print (r['error'])
Run this script via Docker (beta)
cm docker script "get java[variations]" [--input_flags]
Variations
-
No group (any combination of variations can be selected)
Click here to expand this section.
_install
- ENV variables:
- CM_JAVA_PREBUILT_INSTALL:
on
- CM_JAVA_PREBUILT_INSTALL:
- ENV variables:
Script flags mapped to environment
--install=value
→CM_JAVA_PREBUILT_INSTALL=value
Default environment
These keys can be updated via --env.KEY=VALUE
or env
dictionary in @input.json
or using script flags.
- CM_JAVA_PREBUILT_VERSION:
19
- CM_JAVA_PREBUILT_BUILD:
36
- CM_JAVA_PREBUILT_URL:
https://download.java.net/openjdk/jdk${CM_JAVA_PREBUILT_VERSION}/ri/
- CM_JAVA_PREBUILT_FILENAME:
openjdk-${CM_JAVA_PREBUILT_VERSION}+${CM_JAVA_PREBUILT_BUILD}_${CM_JAVA_PREBUILT_HOST_OS}-x64_bin
Native script being run
Script output
cmr "get java [variations]" [--input_flags] -j