You need to publish a Docker image to Nexus and also keep a copy of base images internally.
IntermediateScenarioBuilds, Artifacts, Nexus, SonarQube and Testing
Answer
Situation read → Private registry plus proxy.
What I'd do →
- Create a Docker hosted repo for your images and a Docker proxy repo for Docker Hub, grouped under one endpoint.
- Configure CI to pull base images from the proxy; set
FROM nexus.example.com/library/node:22. - Add cleanup policies to expire old tags and run the compact blob store task.
Why → This avoids Docker Hub rate limits and gives control over upstream images.
Interview tip → Cleanup policies stop storage from growing without bound.
More on Builds, Artifacts, Nexus, SonarQube and Testing
A Maven project resolves dependencies from Maven Central on every build and a left-pad style outage would stop all builds.BeginnerYou must publish snapshot and release artifacts without overwriting a released version.IntermediateEvery merge to main should produce a unique semantic version automatically.IntermediateAn npm build is non-reproducible: different versions install on different days.BeginnerThe SonarQube quality gate must block merging PRs that add new bugs, vulnerabilities or uncovered code.IntermediateCoverage shows 0% in SonarQube although tests run in CI.Intermediate