Working with Nexus repositories.
- As a developer, I want to publish my npm package so that other users within my organization can use it.
- As an admin, I want to expose both, private and public repositories as a single registry for my users.
- As a developer, I want to include organization code into my projects.
- Create a local storage for nexus,
mkdir nexus-data
- Change the ownership of the nexus-data folder
chown -R 200:200 nexus-data
- Use Compose to execute the service
docker-compose up
- Grab the password from
/nexus-data/admin.password
- Navigate to local nexus dashboard
- Login as admin (using the password you got from point
2
)
By following the official guide you should create the following structure:
- A proxy NPM repository.
- A private repository to host your private packages (see in the example folder the
npm-publish
). - A group repository to expose both, private and proxy repositories to your users.