Deploy

To deploy an app run ./appctl deploy

The deploy command will deploy the specified container image using the provided name into Platform9 and automatically provision a fully qualified domain with a unique port to access the application.

Bash
Copy

Example Deploy (public registry)

Bash
Copy

Example Deploy (private registry)

Bash
Copy

Details on deploying app with a private container registry

RepositoryContainer image pathPrivate registry usernamePrivate registry passwordSample command
Dockerdocker.io/<username>/ <imagename>:<tag>Docker registry usernameDocker registry passwordappctl deploy -n dockerapp -i docker.io/<docker username>/helloworld-go -u <Docker username> -P <Docker password>
AWS ECR<aws account id>.dkr.ecr. region. amazonaws.com/ <repository>:<tag>

AWS

(Note: This is the default username and should be in capital)

aws ecr get-login-password --region <region name>

(Note: aws CLI needs to be installed. User should be logged into the AWS. Details here.)

appctl deploy -n ecrapp -i 110072563648.dkr.ecr.us-west-2.amazonaws.com/<image>:<tag> -u AWS -P <Password as obtained from AWS CLI>
GCRhttp://gcr.io/<GCP project ID>/<repository>

oauth2accesstoken

(Note: Access token method is used to provide credentials. Access token expires after one hour.)

gcloud auth login

gcloud auth print-access-token

(Note: gcloud CLI needs to be installed. Details here.)

appctl deploy -n gcrapp -i gcr.io/<GCP project ID>/<repository> -u oauth2accesstoken -P <Token as obtained from gcloud CLI>
ACRhttps://registry_name.azurecr.io/image:tag

Service Principal appId

(Note: Generating Service Principal requires Azure CLI. Details to install Azure CLI here.)

Password of the Service Principal.appctl deploy -n hello -i registry_name.azurecr.io -u <service principal appId> -p <service principal password>

Specifying Ports

If your application server listens on a specific port, then you can specify that while deploying the app using --port flag.

Bash
Copy

Using Environment Variables

Bash
Copy

Appctl supports multiple --env variables

Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated