Question

App Platform App Spec with Image

I am currently trying to deploy a existing container image to app platform

I created a repository with nothing but the file .do/app.yaml, contents:

name: sample-metabase
services:
- name: metabase-app
  image:
    registry_type: "UNSPECIFIED"
    registry: "hub.docker.com"
    repository: "metabase/metabase"
    tag: "v0.37.2"
  instance_size_slug: "basic-xxs"
  instance_count: 1
  http_port: 3000
  routes:
  - path: /

From my, limited, understanding this should work. However app platform tells me “We’re sorry, but we weren’t able to detect anything that the App Platform can currently run in the repository you selected. Please try a different repository.” - What am I missing?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Currently, only DigitalOcean Container Registries (DOCR) registries are supported as an image source type. If you were to upload your metabase:v0.37.2 to your DOCR registry, you could reference it as follows:

name: sample-metabase
services:
- name: metabase-app
  image:
    registry_type: "DOCR"
    repository: "metabase"
    tag: "v0.37.2"
  instance_size_slug: "basic-xxs"
  instance_count: 1
  http_port: 3000
  routes:
  - path: /

We automatically infer the registry associated with your account and handle credential management.

Public Dockerhub image support is on the roadmap and will be available in the near future. Additionally, I will open up an internal support ticket to better handle the failure messaging in this case to make it more clear.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.