The repositories in Nexus

Unlocking the Potential of Data at Australia Data Forum
Post Reply
rosebaby3892
Posts: 59
Joined: Wed Dec 18, 2024 4:35 am

The repositories in Nexus

Post by rosebaby3892 »

 


The maven-central repository is of type proxy, which means that it doesn't store data locally, but instead it forwards all requests to the maven-central repository on the internet.
The maven repositories are using the format maven2, which means that artifacts are stored using the identifier  artifactid,groupid,version from the maven build system.
The maven-releases and maven-snapshots repositories are  hosted , which means that the files are stored and managed in this Nexus instance.
The maven-public repository is of type  group . The group consists of the other telegram data three maven repositories we just discussed above. (the group members are not visible on this screen). When a group repository receives a request, it tries all the member repositories to find a match, so it aggregates multiple other repositories into a single location.
The nugget repositories follow the same pattern with a proxy to the internet, a hosted repo for the local data and a group to aggregate both locations into one. It uses the nugget format to identify the artifacts.
Apart from the identification of the artifacts, each format also has it's own api used to store and retrieve binaries. By selecting the correct format, you enable the api.
Since we are storing docker images in our build, we will create four additional repositories:

A proxy repository to access the master docker repository on the internet
A releases repository where we store our final builds, this repo is write-once, read many, so that we can't accidentally overwrite a published artifact
A snapshots repository where we store our work in progress. This repo allows overwriting exiting binaries, so that we can rebuild fast and often.
A group repository to aggregate the three previous repositories in one place.
 

The proxy repository
Click on the “Create repository” button



Select docker (proxy)

Name your repo, for example “docker-hub”. It should be marked as Online.

Scroll down and enter the Proxy – Remote storage field. It should read https://hub.docker.com



Mark the checkbox “Use certificates stored in the Nexus truststore to connect to external systems” and click view certificate. It will show some certificate information like the screenshot shown here. Ensure that it is the certificate you expect to see, and press the Add button.

 

Leave the other options as-is, scroll down to the bottom of the page and press “ Create repository ” to finish.

You now have your first repository, which is a virtual read-only copy of docker hub.

 

The releases repository
Create a new repository. This time, we select type docker (hosted) and name it “ docker-releases “.

In the section Repository connectors, we mark the http checkbox, and enter the number 8082 in the data field behind the checkbox. This will make the repository available on the port number 8082 inside the docker container. This will allow us to connect to the repository later on.
Post Reply