Docker-Compose Best Practice
Update Parameters provide an extremely useful capability to update deployments. Learn how to maximize efficiency by combining Docker Compose, Artifactory, and Update Parameters.

Overview

Update Parameters enable you to define a flexible value upon deployment of new updates.
Docker Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application's services.
Artifactory is a universal binary repository manager. Artifactory provides end-to-end automation and management of binaries and artifacts throughout the application delivery process.
By practicing these 3 tools, we are able to deploy multi-container docker applications on edge devices flexibly.

Deployment Configuration

Artifactory Path

When working with Connect's docker-compose integration, it's better to work directly with Artifactory in order to manage your binaries properly, as all YAML files are being stored with their respective version, before getting deployed to the edge device.
  1. 1.
    Create your application path inside Artifactory
2. Create a version hierarchy underneath your application path
3. Store every new docker-compose.yaml on a different version path, keeping all older versions intact.

Configuring the Deploy Container Block

Select the Deploy Container block, and define its parameters with Update Parameters as follows:
  1. 1.
    Select your JFrog Default registry and Docker-Compose
2. Define Artifactory Path from the example in the section above, with the addition of Update Parameters, defined by {{curly-braces}} for version.
3. Select the Destination Path and save the Update Flow.

Deploy Update

You may deploy an update using Rest API or through the UI. Define the version of your docker-compose.yaml at the moment of deployment
If using the API, you may send a request with 'deployment_configuration' and 'parameters_mapping' to define the parameter name and value, more information on Deploy Update.
Copy link
On this page
Overview
Deployment Configuration
Artifactory Path
Configuring the Deploy Container Block
Deploy Update