Creating a lockbox for docker-compose verdin imx8mp

Hey guys,

I am trying to create a lockbox for the docker-compose component, however after uploading my docker-compose.yml as a package it is not considered an “offline-update-ready” package without any details as to why that is.

What I did was simply upload a docker-compose.yml as follows in the torizon UI

version: "2.4"
services:
  grafana:
    container_name: grafana
    depends_on:
      - influxdb
    networks:
      - backend
      - frontend
    volumes:
      - "grafana-storage:/var/lib/grafana"
    ports:
      - "3000:3000"
    links:
      - influxdb
    image: grafana/grafana:6.7.1

  influxdb:
    container_name: influxdb
    networks:
      - backend
    volumes:
      - "influxdb-grafana:/var/lib/influxdb"
    image: influxdb:1.7.10


networks:
  backend:
    internal: true
  frontend:
    internal: false

volumes:
  grafana-storage:
  influxdb-grafana:

Then went to the lockboxes section and selected docker-compose, but within the second step it does not show my package. What am I missing here?

Kind regards,

SimplyMehmet

Hi, I’m the Toradex AI Assistant. I’m in early beta, and I would appreciate your feedback.
The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


:handshake:

To ensure your Docker Compose file is considered “offline-update-ready” and appears in the lockboxes section, you need to canonicalize the Docker Compose file before uploading it. This process generates a canonicalized version of the file, which is required for offline updates.

Here are the steps to canonicalize and upload your Docker Compose file:

  1. Canonicalize the Docker Compose File:
    Use the platform push command with the --canonicalize argument to generate a canonicalized version of your Docker Compose file. This will create a .lock.yml or .lock.yaml file.

    torizoncore-builder platform push --credentials credentials.zip --file docker-compose.yml --canonicalize
    
  2. Upload the Canonicalized File:
    After generating the canonicalized file, upload this new .lock.yml or .lock.yaml file to the Torizon Platform Services.

  3. Check the Lockboxes Section:
    Once the canonicalized file is uploaded, it should appear in the lockboxes section when you select Docker Compose.

By following these steps, your Docker Compose package should be recognized as “offline-update-ready” and be available for selection in the lockboxes section.

Best regards, Toradex AI Assistant

The answer from @ToradexAI is right.

You can check this article for a complete guide.

Hey Allan,

Yes that seemed to be the missing piece, should have looked more closer to the caution sign. My bad :blush: