Skip to content

Commit c2aa163

Browse files
Jack Zhaogaearon
Jack Zhao
authored andcommitted
Fix e2e:docker script (facebook#4454)
* verdaccio configs * verdaccio configs * fix typo * revert e2e-installs * move config to tasks
1 parent 0f84a4b commit c2aa163

5 files changed

+53
-4
lines changed

tasks/e2e-kitchensink.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ yarn
7979

8080
# Start local registry
8181
tmp_registry_log=`mktemp`
82-
nohup npx verdaccio@2.7.2 &>$tmp_registry_log &
82+
nohup npx verdaccio@2.7.2 -c tasks/verdaccio.yaml &>$tmp_registry_log &
8383
# Wait for `verdaccio` to boot
8484
grep -q 'http address' <(tail -f $tmp_registry_log)
8585

tasks/e2e-monorepos.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ yarn
7373

7474
# Start local registry
7575
tmp_registry_log=`mktemp`
76-
nohup npx verdaccio@2.7.2 &>$tmp_registry_log &
76+
nohup npx verdaccio@2.7.2 -c tasks/verdaccio.yaml &>$tmp_registry_log &
7777
# Wait for `verdaccio` to boot
7878
grep -q 'http address' <(tail -f $tmp_registry_log)
7979

tasks/e2e-simple.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ yarn
8686

8787
# Start local registry
8888
tmp_registry_log=`mktemp`
89-
nohup npx verdaccio@2.7.2 &>$tmp_registry_log &
89+
nohup npx verdaccio@2.7.2 -c tasks/verdaccio.yaml &>$tmp_registry_log &
9090
# Wait for `verdaccio` to boot
9191
grep -q 'http address' <(tail -f $tmp_registry_log)
9292

tasks/local-test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ ${apply_changes}
9898
node --version
9999
npm --version
100100
set +x
101-
${test_command} && echo -e "\n\e[1;32m✔ Job passed\e[0m" || echo -e "\n\e[1;31m✘ Job failes\e[0m"
101+
${test_command} && echo -e "\n\e[1;32m✔ Job passed\e[0m" || echo -e "\n\e[1;31m✘ Job failed\e[0m"
102102
$([[ ${interactive} == 'true' ]] && echo 'bash')
103103
CMD
104104

tasks/verdaccio.yaml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#
2+
# This is the default config file. It allows all users to do anything,
3+
# so don't use it on production systems.
4+
#
5+
# Look here for more config file examples:
6+
# https://github.com/verdaccio/verdaccio/tree/master/conf
7+
#
8+
9+
# path to a directory with all packages
10+
storage: ./storage
11+
12+
auth:
13+
htpasswd:
14+
file: ./htpasswd
15+
# Maximum amount of users allowed to register, defaults to "+inf".
16+
# You can set this to -1 to disable registration.
17+
#max_users: 1000
18+
19+
# a list of other known repositories we can talk to
20+
uplinks:
21+
npmjs:
22+
url: https://registry.npmjs.org/
23+
24+
packages:
25+
'@*/*':
26+
# scoped packages
27+
access: $all
28+
publish: $ll
29+
proxy: npmjs
30+
31+
'**':
32+
# allow all users (including non-authenticated users) to read and
33+
# publish all packages
34+
#
35+
# you can specify usernames/groupnames (depending on your auth plugin)
36+
# and three keywords: "$all", "$anonymous", "$authenticated"
37+
access: $all
38+
39+
# allow all known users to publish packages
40+
# (anyone can register by default, remember?)
41+
publish: $all
42+
43+
# if package is not available locally, proxy requests to 'npmjs' registry
44+
proxy: npmjs
45+
46+
# log settings
47+
logs:
48+
- {type: stdout, format: pretty, level: http}
49+
#- {type: file, path: verdaccio.log, level: info}

0 commit comments

Comments
 (0)