forked from hyperledger-archives/composer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use docker images for Verdaccio to simplify environment and dependenc…
…ies (hyperledger-archives#3726) * Use docker images for Verdaccio to simplify environment and dependencies Signed-off-by: Mark S. Lewis <[email protected]> * Specify an npmrc for publishing in dev start of playground-api Avoid overwriting the user's real .npmrc. Signed-off-by: Mark S. Lewis <[email protected]> * Fix license check - Add license to publish npmrc - Rename publish-npmrc to publish.npmrc to make license check happy - Rename scripts/start.sh to devStart.sh to clarify purpose Signed-off-by: Mark S. Lewis <[email protected]>
- Loading branch information
1 parent
856f042
commit 8bfe4ec
Showing
6 changed files
with
61 additions
and
30 deletions.
There are no files selected for viewing
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
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
27 changes: 20 additions & 7 deletions
27
...mposer-playground-api/scripts/config.yaml → ...r-playground-api/scripts/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,53 @@ | ||
# | ||
# This is the default config file. It allows all users to do anything, | ||
# so don't use it on production systems. | ||
# This is the config file used for the docker images. | ||
# It allows all users to do anything, so don't use it on production systems. | ||
# | ||
# Do not configure host and port under `listen` in this file | ||
# as it will be ignored when using docker. | ||
# see https://github.com/verdaccio/verdaccio/blob/master/wiki/docker.md#docker-and-custom-port-configuration | ||
# | ||
# Look here for more config file examples: | ||
# https://github.com/verdaccio/verdaccio/tree/master/conf | ||
# | ||
|
||
# path to a directory with all packages | ||
storage: ./storage | ||
storage: /verdaccio/storage | ||
|
||
auth: | ||
htpasswd: | ||
file: ./htpasswd | ||
file: /verdaccio/conf/htpasswd | ||
# Maximum amount of users allowed to register, defaults to "+inf". | ||
# You can set this to -1 to disable registration. | ||
#max_users: 1000 | ||
|
||
# a list of other known repositories we can talk to | ||
uplinks: | ||
npmjs: | ||
url: https://registry.npmjs.org/ | ||
max_fails: 1000 | ||
|
||
packages: | ||
'@*/*': | ||
# scoped packages | ||
access: $all | ||
publish: $all | ||
proxy: npmjs | ||
|
||
'**': | ||
# allow all users (including non-authenticated users) to read and | ||
# publish all packages | ||
# | ||
# you can specify usernames/groupnames (depending on your auth plugin) | ||
# and three keywords: "$all", "$anonymous", "$authenticated" | ||
access: $all | ||
|
||
# allow all known users to publish packages | ||
# (anyone can register by default, remember?) | ||
publish: $all | ||
|
||
# if package is not available locally, proxy requests to 'npmjs' registry | ||
proxy: npmjs | ||
|
||
# log settings | ||
logs: | ||
- {type: stdout, format: pretty, level: http} | ||
#- {type: file, path: verdaccio.log, level: info} | ||
listen: | ||
- localhost:4873 # default value |
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
15 changes: 15 additions & 0 deletions
15
packages/composer-playground-api/scripts/docker-compose.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: '3' | ||
|
||
services: | ||
verdaccio: | ||
image: verdaccio/verdaccio | ||
container_name: verdaccio | ||
ports: | ||
- 4873:4873 | ||
volumes: | ||
- ./conf:/verdaccio/conf | ||
networks: | ||
- verdaccio | ||
|
||
networks: | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
//localhost:4873/:_authToken="foo" | ||
registry=http://localhost:4873 |