0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-30 22:34:10 -05:00
verdaccio/docker-examples/multi-registry-uplink
Juan Picado 04b19262d0 docs: relocate docker-examples to 5.x (#1990)
* docs: relocate docker-examples to 5.x

* chore: update readme

* chore: remove license

we have already one at root
2021-04-09 17:54:24 +02:00
..
server1 docs: relocate docker-examples to 5.x (#1990) 2021-04-09 17:54:24 +02:00
server2 docs: relocate docker-examples to 5.x (#1990) 2021-04-09 17:54:24 +02:00
server3 docs: relocate docker-examples to 5.x (#1990) 2021-04-09 17:54:24 +02:00
.gitignore docs: relocate docker-examples to 5.x (#1990) 2021-04-09 17:54:24 +02:00
docker-compose.yaml docs: relocate docker-examples to 5.x (#1990) 2021-04-09 17:54:24 +02:00
README.md docs: relocate docker-examples to 5.x (#1990) 2021-04-09 17:54:24 +02:00

Verdaccio Uplinks

Context

This is an experiment for the uplinks feature.

https://verdaccio.org/docs/en/uplinks

Furthermore, this experiment also proves the oldest Verdaccio (2.x) still is able to communicate with the latest development version (4.x).

Objective

We have 3 registries:

  • Server 1 (verdaccio@4.x)
  • Server 2 (verdaccio@2.x)
  • Server 3 (verdaccio@3.x)

The servers have no authentication in order to simplify the configuration. The server 3 and server 1 are chained with server 2 which is the unique that contains the dependency @jota/pk1-juan.

The request will go through server 1 --> server 3 --> server 2 and should retrieve the tarball to the local project executing the following:

 npm install @jota/pk1-juan --registry http://localhost:4873

The result is a successful installation of the package.

Usage

To force recreate the images.

docker-compose up --build --force-recreate  -d

To stop all containers

docker-compose stop