Skip to content

Commit cd62b82

Browse files
committed
use correct syntax for host IP from inside container
1 parent 9d42047 commit cd62b82

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"cy:run": "npx cypress run",
1010
"test:cypress": "npx start-server-and-test start http://localhost:8080 cy:open",
1111
"test:headless": "BROWSER=none npx start-server-and-test start http://localhost:8080 cy:run",
12-
"docker:security": "docker run --rm -e SCAN_URL=\"http://192.168.0.12:8080\" lirantal/is-website-vulnerable:latest",
12+
"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",
1313
"test:security": "npx start-server-and-test start http://localhost:8080 docker:security"
1414
},
1515
"repository": {
@@ -21,7 +21,7 @@
2121
"bugs": {
2222
"url": "https://github.com/ToryTechs/website/issues"
2323
},
24-
"homepage": "https://github.com/ToryTechs/website#readme"
24+
"homepage": "https://github.com/ToryTechs/website#readme",
2525
"devDependencies": {
2626
"@testing-library/cypress": "^5.3.0",
2727
"axe-core": "^3.5.1",

0 commit comments

Comments
 (0)