Last active
November 2, 2018 07:44
-
-
Save n4bb12/523e8347a580f596cbf14d0d791b5927 to your computer and use it in GitHub Desktop.
Extend Verdaccio Docker Image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker build -t verdaccio . | |
docker run -it --rm --name verdaccio -p 4873:4873 verdaccio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM verdaccio/verdaccio | |
RUN yarn add verdaccio-github-oauth-ui | |
ADD config.yaml /verdaccio/conf/config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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