Copyright (c) 2022, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Note: Before you can use the models plug-in CLI to create a publishing destination, you must complete the prerequisites in the README.md file.
To list the models plug-in CLI help for the destination create commands, use one of the following commands:
sas-viya models destination create --help
sas-viya models destination createPD --help
For more information about the models plug-in CLI commands and options, see SAS Viya: Models Command-Line Interface.
Here are some examples of using the models plug-in to the SAS Viya CLI to create a Private Docker publishing destination.
Note: For the following CLI examples, you will be prompted to enter a registry ID and password, as well as a Kubernetes key and certificate after the command is submitted.
sas-viya models destination create --type privateDocker --name MyPrivateDocker --description "Private Docker container publishing destination."
--identityId SASAdministrators --identityType group
--baseRepoURL registry.myserver.com/mmrepo --kubeURL https://k8s-master.modelmanager.myserver.com:6443 --credDomainID pdOracleDomain
--validationNamespace default
OR
sas-viya models destination createPD --name MyPrivateDocker --description "Private Docker container publishing destination."
--identityId SASAdministrators --identityType group
--baseRepoURL registry.myserver.com/mmrepo --kubeURL https://k8s-master.modelmanager.myserver.com:6443 --credDomainID pdOracleDomain
--validationNamespace default
sas-viya models destination createPD --name MyPrivateDocker
--identityId SASAdministrators --identityType group --baseRepoURL registry.myserver.com/mmrepo
--kubeURL https://k8s-master.modelmanager.myserver.com:6443 --credDomainID pdOracleDomain
--remoteRepoURL https://gitlab.myserver.com/sasdemo/sasdemo.git --gitUserEmail [email protected]
--gitUserId sasdemo --gitAccessToken D4bPHJvByqSFnxGBrQ73
sas-viya models destination createPD --name MyPrivateDocker
--identityId SASAdministrators --identityType group --baseRepoURL registry.myserver.com/mmrepo
--kubeURL https://k8s-master.modelmanager.myserver.com:6443 --credDomainID pdOracleDomain
--remoteRepoURL https://gitlab.myserver.com/sasdemo/sasdemo.git --gitUserEmail [email protected]
--gitUserId sasdemo --gitAccessToken D4bPHJvByqSFnxGBrQ73
--dbSecret oracle-secret-decision --dbConfigMap oracle-config