mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 20:20:49 +00:00
Fix config 2
This commit is contained in:
parent
b794b293d1
commit
23bce71356
1 changed files with 28 additions and 4 deletions
|
|
@ -62,13 +62,37 @@ describe("E2E: Safe chain proxy", () => {
|
||||||
const configShell = await container.openShell("bash");
|
const configShell = await container.openShell("bash");
|
||||||
await configShell.runCommand("touch ~/.verdaccio-config.yaml");
|
await configShell.runCommand("touch ~/.verdaccio-config.yaml");
|
||||||
// verdaccio.yaml
|
// verdaccio.yaml
|
||||||
// storage: ./storage
|
/*
|
||||||
// log: { type: file, path: ./verdaccio.log, level: info }
|
storage: ./storage
|
||||||
|
uplinks:
|
||||||
|
npmjs:
|
||||||
|
url: https://registry.npmjs.org/
|
||||||
|
packages:
|
||||||
|
"**":
|
||||||
|
access: $all
|
||||||
|
proxy: npmjs
|
||||||
|
log: { type: file, path: ./verdaccio.log, level: trace, colors: false }
|
||||||
|
*/
|
||||||
await configShell.runCommand(
|
await configShell.runCommand(
|
||||||
"echo 'storage: ./storage' >> ~/verdaccio-config.yaml"
|
`echo 'storage: ./storage' >> ~/.verdaccio-config.yaml`
|
||||||
|
);
|
||||||
|
await configShell.runCommand(`echo 'uplinks:' >> ~/.verdaccio-config.yaml`);
|
||||||
|
await configShell.runCommand(`echo ' npmjs:' >> ~/.verdaccio-config.yaml`);
|
||||||
|
await configShell.runCommand(
|
||||||
|
`echo ' url: https://registry.npmjs.org/' >> ~/.verdaccio-config.yaml`
|
||||||
);
|
);
|
||||||
await configShell.runCommand(
|
await configShell.runCommand(
|
||||||
"echo 'log: { type: file, path: /verdaccio.log, level: trace }' >> ~/verdaccio-config.yaml"
|
`echo 'packages:' >> ~/.verdaccio-config.yaml`
|
||||||
|
);
|
||||||
|
await configShell.runCommand(`echo ' "**":' >> ~/.verdaccio-config.yaml`);
|
||||||
|
await configShell.runCommand(
|
||||||
|
`echo ' access: $all' >> ~/.verdaccio-config.yaml`
|
||||||
|
);
|
||||||
|
await configShell.runCommand(
|
||||||
|
`echo ' proxy: npmjs' >> ~/.verdaccio-config.yaml`
|
||||||
|
);
|
||||||
|
await configShell.runCommand(
|
||||||
|
`echo 'log: { type: file, path: ./verdaccio.log, level: trace, colors: false }' >> ~/.verdaccio-config.yaml`
|
||||||
);
|
);
|
||||||
|
|
||||||
// Start a local npm registry (verdaccio) inside the container
|
// Start a local npm registry (verdaccio) inside the container
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue