Verdaccio

verdaccio#

docker#

  • /verdaccio/storage/htpasswd
  • /verdaccio/conf/config.yaml
htpasswd -bc htpasswd admin admin
auth:
htpasswd:
file: ./htpasswd
uplinks:
npmjs:
url: https://registry.npmjs.org/

minio#

  • barolab/verdaccio
FROM verdaccio/verdaccio:4
USER root
ENV NODE_ENV=production
RUN yarn global add verdaccio-minio && \
ln -s /usr/local/share/.config/yarn/global/node_modules/verdaccio-minio /verdaccio/plugins/verdaccio-minio && \
chown -R 10001 /usr/local/share/.config/yarn/global/node_modules/verdaccio-minio && \
chown -R 10001 /verdaccio/plugins
USER verdaccio

/verdaccio/conf/config.yaml

# This points to the plugin folder above
plugins: /verdaccio/plugins
# This is mandatory, otherwise verdaccio won't boot
storage: /verdaccio/storage/data
store:
minio:
port: 9000
endPoint: minio.minio.svc.cluster.local
accessKey: this-is-not-so-secret
secretKey: this-is-not-so-secret
useSSL: false
region: eu-west-1
bucket: 'npm'
retries: 3
delay: 50