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

Order of repositories in docker repository group is not respected #25

Closed
matglas opened this issue May 4, 2020 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@matglas
Copy link

matglas commented May 4, 2020

Summary
When I define a docker repository group the order of the items in the member_names is not respected which leads to unreliable results when image are pulled.

Reproduce

  • Create two repos. One for a hosted variant and one for a proxy. As they are ordered by name please name the hosted repo z-repo and the proxy repo a-repo.

  • Define a repository group with the hosted as first item.

# ... repository definition for docker_hosted and docker_proxy. 

resource "nexus_repository" "docker_group" {
  depends_on = [nexus_repository.z_repo,nexus_repository.a_repo]
  name   = "docker-group"
	format = "docker"
	type   = "group"
	online = true

	group {
		member_names = ["z-repo","a-repo"]
	}

	# ... rest or resource configuration.
}
  • Create an image and push this to the proxied repo with the image tag test:a
  • Create an image and push this to the hosted repo on nexus with the same image tag.
  • Pull the image with the tag from the docker-group repo.

Expected result
The image from the z-repo would be pulled.

Actual result
The image from the a-repo is pulled.

@matglas
Copy link
Author

matglas commented May 8, 2020

Checked still a problem in v1.4.0.

@Nosmoht
Copy link
Contributor

Nosmoht commented May 13, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants