This repo is for testing private Nexus registry locally.
The official sonartype/nexus3 image doesn't support the M1 chip. Therefore, we use the klo2k/nexus3 image.
The official sonartype/nexus image somehow works with ARM, but a bit wobbly. Sometimes it gets stuck and we might have to restart the container.
Documentation for running Snyk Nexus broker.
docker-compose -f docker-compose-nexusX.yaml up --build
Then follow this tutorial to create a local npm registry.
Follow this guide to set up NPM registry mirror.
To publish packages into the local private Nexus registry, I had auth issue with Nexus 2, and to solve it in my local lodash package directory I need to manually create a .npmrc
file:
registry=http://localhost:8081/nexus/content/repositories/test-npm-repo/
_auth=username:password (base64 encoded)