Skip to content

Commit

Permalink
use correct syntax for host IP from inside container
Browse files Browse the repository at this point in the history
  • Loading branch information
lpmi-13 committed Nov 5, 2020
1 parent 9d42047 commit cd62b82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"cy:run": "npx cypress run",
"test:cypress": "npx start-server-and-test start http://localhost:8080 cy:open",
"test:headless": "BROWSER=none npx start-server-and-test start http://localhost:8080 cy:run",
"docker:security": "docker run --rm -e SCAN_URL=\"http://192.168.0.12:8080\" lirantal/is-website-vulnerable:latest",
"docker:security": "docker run --rm -e SCAN_URL=\"http://$(ip -4 addr show docker0 | grep -Po 'inet \\K[\\d.]+'):8080\" lirantal/is-website-vulnerable:latest",
"test:security": "npx start-server-and-test start http://localhost:8080 docker:security"
},
"repository": {
Expand All @@ -21,7 +21,7 @@
"bugs": {
"url": "https://github.com/ToryTechs/website/issues"
},
"homepage": "https://github.com/ToryTechs/website#readme"
"homepage": "https://github.com/ToryTechs/website#readme",
"devDependencies": {
"@testing-library/cypress": "^5.3.0",
"axe-core": "^3.5.1",
Expand Down

0 comments on commit cd62b82

Please sign in to comment.