Skip to content

Instantly share code, notes, and snippets.

@n4bb12
Last active November 2, 2018 07:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n4bb12/523e8347a580f596cbf14d0d791b5927 to your computer and use it in GitHub Desktop.
Save n4bb12/523e8347a580f596cbf14d0d791b5927 to your computer and use it in GitHub Desktop.
Extend Verdaccio Docker Image
docker build -t verdaccio .
docker run -it --rm --name verdaccio -p 4873:4873 verdaccio
FROM verdaccio/verdaccio
RUN yarn add verdaccio-github-oauth-ui
ADD config.yaml /verdaccio/conf/config.yaml
---
storage: "./storage"
plugins: "./plugins"
web:
title: Verdaccio
uplinks:
npmjs:
url: https://registry.npmjs.org/
packages:
"@*/*":
access: "$authenticated"
publish: "$authenticated"
proxy: npmjs
"**":
access: "$all"
publish: "$authenticated"
proxy: npmjs
auth:
github-oauth-ui:
org: myorgname
middlewares:
audit:
enabled: true
github-oauth-ui:
client-id: myclientid
client-secret: myclientsecret
logs:
- type: stdout
format: pretty
level: http
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment