Use a 12-factor app rock

The following how-to guide provides instructions on using rocks for 12-factor apps.

Update and deploy the OCI image

After making a change to your app:

  1. Make sure that any new files will be included in the new OCI image.

  2. Run rockcraft pack to create the new OCI image.

  3. To upload the OCI image to the local Docker registry, run:

    rockcraft.skopeo --insecure-policy copy --dest-tls-verify=false \
    oci-archive:<path to rock file> \
    docker://localhost:32000/<rock name>:<rock version>
    
  4. To deploy the new OCI image, run:

    juju refresh <app name> --path=<relative path to .charm file> \
    --resource flask-app-image=<localhost:32000/<rock name>:<rock version>>