Module Title: dgt_devops06 – Artifact Repositories – Nexus
Module Description:
The module “dgt_devops06 – Artifact Repositories – Nexus” covers artifact repository management with Sonatype Nexus. As organizations increasingly adopt continuous integration/continuous deployment (CI/CD) practices, managing artifacts efficiently becomes critical. This module covers the essential concepts of artifact repositories and how Nexus is used within CI/CD pipelines.
After the theory, every exercise is done in natural language. You ask the machine to set up a hosted Maven repository, a proxy for npm, and a group that combines them, then to make the pipeline publish releases there. You read the repository settings, the pipeline steps, and the credentials handling it produces, and check them against what you know: are snapshots and releases kept apart, is the proxy caching what it should, can an anonymous user pull something they should not?
Module Objectives:
- Understand what artifact repositories are and why they are crucial in modern software development.
- Learn about the various types of artifacts that need to be managed, including binaries, libraries, Docker images, and more.
- Explore the features and architecture of Sonatype Nexus as a repository manager.
- Direct the machine to set up and configure Nexus for different types of repositories (e.g., Maven, npm, NuGet), and verify each configuration.
- Describe how Nexus should fit into your CI/CD pipelines for artifact storage, sharing, and versioning, and validate the integration the machine builds.
Key Topics Covered:
- Introduction to Artifact Repositories
- Definition and significance in DevOps.
-
Comparison between different types of repositories (private vs. public).
-
Understanding Nexus Repository Manager
- Overview of Sonatype Nexus features.
-
Benefits of using Nexus for artifact management.
-
Types of Artifacts
- Managing build outputs, libraries, Docker images, and other software components.
-
Use cases and best practices for each type.
-
Setting Up Nexus
- What an installation involves, and how to instruct the machine to carry it out and check the result.
-
Creating and managing different types of repositories within Nexus through natural-language requests.
-
Nexus in CI/CD Pipelines
- Integrating Nexus with popular CI/CD tools (e.g., Jenkins, GitLab CI).
- Automating artifact storage and retrieval processes.
-
Strategies for version control and release management with Nexus.
-
Security and Access Control
- User permissions and access controls in Nexus: specifying them to the machine and auditing what it configures.
-
Ensuring the security of your artifacts through authentication and authorization mechanisms.
-
Optimizing Performance and Scalability
- Techniques to improve Nexus performance.
- Scaling Nexus for large deployments.
Target Audience:
This module is intended for DevOps engineers, software developers, system administrators, and IT professionals who work on artifact repository management and on integrating Nexus into CI/CD workflows.
By the end of this module, participants will understand Sonatype Nexus well enough to use it as part of their DevOps toolchain, instructing the machine and verifying its work to obtain efficient, secure storage and management of artifacts across different project environments. The module applies both to managing libraries for software builds and to storing Docker images for containerized applications.
The students can push their exercises to the Academy DevOps & SRE Git project. For this module, create a folder with your username as its name in the following subfolder: https://github.com/Garanti-Del-Talento/gdt_academy
