Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create a docker hub repository #32

Closed
Michenux opened this issue May 11, 2020 · 2 comments
Closed

Can't create a docker hub repository #32

Michenux opened this issue May 11, 2020 · 2 comments

Comments

@Michenux
Copy link

Hi,

When creating the docker hub repository, it tells me about a missing "type" parameter :

  "id" : "PARAMETER type",
  "message" : "may not be empty"
} ]```

In my terraform script, the "type" is well specified : 
```resource "nexus_repository" "docker_hub" {
  name   = "%s"
  format = "docker"
  type   = "proxy"
...
}```

My Nexus version is 3.22.1

Best regards
@Nosmoht
Copy link
Contributor

Nosmoht commented May 12, 2020

Hi @Michenux ,

could you please show the complse resource definition of nexus_repository.docker_hub?

Here is the one i'm using:

resource "nexus_repository" "docker_hub" {
  name   = "docker-hub"
  format = "docker"
  type   = "proxy"
  online = true

  docker {
    force_basic_auth = true
    http_port        = 0
    https_port       = 0
    v1enabled        = false
  }

  docker_proxy {
    index_type = "HUB"
    index_url  = "https://index.docker.io/"
  }

  http_client {
    authentication {
      type = "username"
    }
  }

  negative_cache {
    enabled = true
    ttl     = 1440
  }

  proxy {
    content_max_age  = 1440
    metadata_max_age = 1440
    remote_url       = "https://registry-1.docker.io"
  }

  storage {
    blob_store_name                = nexus_blobstore.docker_hub.name
    strict_content_type_validation = true
    write_policy                   = "ALLOW"
  }
}

@Michenux
Copy link
Author

You can close this bug.

@Nosmoht Nosmoht closed this as completed May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants