Getting started

Quickstart

Step 1: Install and Set Up the Deckrun CLI

Follow the instructions on the Install Deck CLI page to install the Deckrun CLI, then sign in:

deck auth login

It opens your browser to approve the access. To use an API token instead, see Sign in with an API token.

Step 2: Add a Provider

In your favorite Cloud Provider follow the instructions:

DigitalOcean: Create a new Personal Access Token in DigitalOcean with full access permissions and save it for the next step.

Scaleway: Create a new pair of Access Key and Secret Key and save it for the next step. Also copy your Organization ID and your Project ID.

Add your provider credentials using the CLI with the following command:

deck providers add

Step 3: Create a Cluster

The next step is to create the cluster where your applications will run. This process takes about 10 minutes.

Specify the provider, the cluster name, the number of nodes, and their size:

deck clusters create

Once the cluster is created, Deckrun will automatically install additional components. If a Container Registry does not exist in your provider, Deckrun will provision one.

Step 4: Initialize an Application

Navigate to your project directory and initialize a new application in Deckrun:

cd my-app/
deck init

Your application is now created in Deckrun and ready to be deployed.

Step 5: Deploy an Application

deck deploy builds the image on your machine, so Docker must be running. deck uses the same Docker daemon as the docker command: the one in DOCKER_HOST if it's set, otherwise your active Docker context (docker context ls). If docker ps works, deck deploy can build.

Deploy the application using:

deck deploy

Deckrun will analyze your code, generate a Docker image, upload it to the registry, and deploy it automatically.

Step 6: Access Your Application

Once deployed, Deckrun provides a public URL to access your application. Open the URL in your browser to see your application live.

Previous
Introduction