Skip to content

Commit

Permalink
migrate to js action
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoireW committed Oct 15, 2024
1 parent bcc2c27 commit 728593b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions dblinter-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,14 @@ async function launchPostgres(config) {
console.log("------------ /container ------------");
const inspect= await docker.dockerCommand(`inspect ${container.containerId} -f '{"ip":"{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}"}'`, {echo: false});
console.log("------------ inspect ------------");
console.log(inspect);
console.log(inspect.object[0].ip);
console.log(inspect.object.ip);
console.log("------------ /inspect ------------");

// -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}'

return {
pgContainer: container.containerId,
pgHost: inspect.object[0].ip,
pgHost: inspect.object.ip,
pgPort: 5432,
pgUser: 'postgres',
pgPass,
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit 728593b

Please sign in to comment.