- docker
- docker-compose
- You need create storage diretory in current root directory
$ git clone https://github.com/Kubernetes-Best-Pratice/verdaccio.git $ cd verdaccio $ mkdir storage $ chmod 777 storage
Confirm the dir of
storage
have write permission.
- docker-compose.yml docker-compose主配置文件, 默认verdaccio的版本是latest
- conf/config.yaml verdaccio的配置文件
- storage/ verdaccio的存储目录
$ docker-compose pull
$ docker-compose start
$ docker-compose logs -f verdaccio
注: You should make sure you're in the verdaccio
directory, then you can run commands related to docker-compose
.
- cache npmjs.org
$ npm registry http://[verdaccio-ip]:4873
注: verdaccio-ip
need change to real ip.
- publish package, flow as below
Enjoy it.
$ docker-compose stop
$ docker-compose rm