Skip to content

Commit

Permalink
updated docker command
Browse files Browse the repository at this point in the history
  • Loading branch information
alessioventuriniAND committed Sep 24, 2024
1 parent 69baf73 commit 239ff27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backstop.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ module.exports = {
},
report: process.env.RUNNING_IN_CI === 'true' ? [] : ['browser'],
dockerCommandTemplate:
'docker run --rm -i --user $(id -u):$(id -g) --mount type=bind,source="{cwd}",target=/src backstopjs/backstopjs:{version} {backstopCommand} {args}',
'docker run --rm -i --user $(id -u):$(id -g) --add-host=host.docker.internal:host-gateway --mount type=bind,source="{cwd}",target=/src backstopjs/backstopjs:{version} {backstopCommand} {args}',
};
2 changes: 1 addition & 1 deletion src/tests/helpers/url-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const util = require('util');
const { glob } = require('glob');
const readdir = util.promisify(fs.readdir);

const testURL = `http://localhost:3010`;
const testURL = `http://host.docker.internal:3010`;

export default async () => {
let urls = [];
Expand Down

0 comments on commit 239ff27

Please sign in to comment.