Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hey guys … I’m trying to deploy an App via Terraform. I want to use one of my public Images from DockerHub.
The DigitalOcean Provider works (confirmed that with an other PoC).
Now I want to deploy a Docker image as an App. I found the digitalocean_app resource (https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/app). The docs state, that I have to set “registry_type” to one of DOCR (DigitalOcean container registry) or DOCKER_HUB.
But I don’t really know how. This is my config.
resource "digitalocean_app" "docs-page-docker-app" {
spec {
name = "docs-page-docker-app"
region = "fra1"
# domain
service {
name = "docs-page-docker-app-image"
http_port = 3000
image {
registry_type = "DOCKER_HUB"
repository = "sommerfeldio/docs-website"
tag = "stable"
}
}
}
}
When I put DOCKER_HUB in quotation marks ("), I always get the error “Image does not exist or is private”. When I remove the quotation marks, my config is no longer valid.
From the docs I don’t really get how I have to specify that I want to use DockerHub as container registry. Anyone got an Idea on how I could tackle this issue?
lwmeozrcbh
d1dd3d9538cc4d06b53e6d1d338d3f
50ff4e4b3c6c4999a12403b1ecda95
a6309a057c3f4cb38fb2e7feb67236
72e571841e7f4a6881090a2f3e93c0
7ce6bf277bff4d429ba493dd750e35
57a72a98162f46a5a5cd04d9b
Thomas Brocken
11575c6d695643cdb40ad47d0f1aea
tez.saad