-
Notifications
You must be signed in to change notification settings - Fork 0
/
cheat_sheet.txt
70 lines (47 loc) · 4.74 KB
/
cheat_sheet.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# specify if not in watson studio
export CPD_BASE_URL=https://*****
export CPD_USERNAME=
export CPD_APIKEY=
## latest cpd version
python cli_ws_image.py default list --cpu
python cli_ws_image.py default list --service ws --cpu # default service is ws
python cli_ws_image.py default list --service wml --cpu
python cli_ws_image.py default list --gpu
python cli_ws_image.py default list -a
python cli_ws_image.py default list --rstudio
python cli_ws_image.py default list --cpu --export-fn base_images_nongpu_408.txt -o
python cli_ws_image.py default list --cpu --export-fn base_images_nongpu_408.txt
python cli_ws_image.py default list --cpu --cpd-version 4.0.7 --export-fn base_images_nongpu_407.txt
python cli_ws_image.py default list --cpu --cpd-version 4.0.8 --export-fn base_images_nongpu_408.txt
python cli_ws_image.py default list --cpu --cpd-version 4.5.1 --export-fn base_images_nongpu_451.txt
python cli_ws_image.py default list --rstudio --cpd-version 4.0.7 --export-fn base_images_rstudio_407.txt
python cli_ws_image.py default list --rstudio --cpd-version 4.0.8 --export-fn base_images_rstudio_408.txt
python cli_ws_image.py default list --rstudio --cpd-version 4.5.1 --export-fn base_images_rstudio_451.txt
python cli_ws_image.py default list --service wml --cpu --cpd-version 4.0.8 --export-fn base_images_wmlpython_408.txt
python cli_ws_image.py default list --service wml --cpu --cpd-version 4.5.1 --export-fn base_images_wmlpython_451.txt
## historical cpd version
python cli_ws_image.py default list -a --cpd-version 4.0.6
## list custom configs
python cli_ws_image.py custom list -r ws-applications-408-{filename}
python cli_ws_image.py custom list -r ws-applications-408-{filename} -v 4.0.6
## view custom configs
python cli_ws_image.py custom view --name ws-applications-408-jupyter-lab-py39-server.json
python cli_ws_image.py custom view --name ws-applications-408-jupyter-lab-py39-server.json --image-name
python cli_ws_image.py custom view --name ws-applications-jupyter-py39-server.json
## build and push custom images
python cli_ws_image.py custom build --dir-dockerfile ../custom-image --base-image-list base_images_nongpu_408.txt --custom-image-name-pattern {image_name}-ws-applications
python cli_ws_image.py custom build --dir-dockerfile ../custom-image --base-image-list base_images_nongpu_408.txt --custom-image-name-pattern {image_name}-ws-applications --push --registry-url us.icr.io --registry-namespace custom-image-cli-test
python cli_ws_image.py custom build --dir-dockerfile ../custom-image --base-image-list base_images_nongpu_408.txt --custom-image-name-pattern {image_name}-ws-applications --push --registry-url us.icr.io --registry-namespace custom-image-cli-test
python cli_ws_image.py custom build --dir-dockerfile ../CPD-custom-image/WML-Python --base-image-list ../CPD-custom-image/WML-Python/base_images_wmlpython_407.txt --custom-image-name-pattern {image_name}-custom --push --registry-url us.icr.io --registry-namespace cpd-custom-image
python cli_ws_image.py custom build --dir-dockerfile . --base-image-list base_images_wmlpython_407.txt --custom-image-name-pattern {image_name}-custom --push --registry-url us.icr.io --registry-namespace cpd-custom-image
python3 cli_ws_image.py custom build --dir-dockerfile . --base-image-list ./base_images_wmlpython_408.txt --custom-image-name-pattern {image_name}-custom --push --registry-url us.icr.io --registry-namespace cpd-custom-image
## register custom images in watson studio
python cli_ws_image.py custom register --jupyter --dry-run
python cli_ws_image.py custom register --jupyterlab --dry-run
python cli_ws_image.py custom register --jupyter-all --dry-run
python cli_ws_image.py custom register --jupyter-all -py 3.8 -v 4.0.6 --dry-run
python cli_ws_image.py custom register --jupyter-all -r ws-applications-408-{filename} -d "{display_name} (ws applications)" -i us.icr.io/custom-image-ws-applications/{image_name}-ws-applications:4.0.8 -v 4.0.8 --dry-run
python cli_ws_image.py custom register --cpu --jupyter-all -r ws-applications-451-{filename} -d "{display_name} (ws applications)" -i us.icr.io/custom-image-ws-applications/{image_name}-ws-applications:4.5.1 -v 4.5.1 --dry-run
python cli_ws_image.py custom register --rstudio -r custom-407-{filename} -d "{display_name} (custom)" -i us.icr.io/cpd-custom-image/{image_name}-custom:4.0.7 -v 4.0.7 --dry-run
python cli_ws_image.py custom register --rstudio -r custom-408-{filename} -d "{display_name} (custom)" -i us.icr.io/custom-image-ws-applications/{image_name}-custom:23 -v 4.0.8 --dry-run
python cli_ws_image.py custom register --service wml --storage-volume cpd-instance::cc-home-pvc-sv -s runtime22.1-py3.9 -ss r-452-software-spec-{image_name}.json -r r-452-{filename} -d "{display_name} (r)" -i us.icr.io/cpd-custom-image/{image_name}-r:1 -v 4.5.2 --dry-run