Skip to content

Commit f9353ba

Browse files
authored
Merge pull request #47 from dockersamples/shelajev-patch-2
When TC inits contaienrs, copy files instead of binds. easier on the …
2 parents 1857d9e + 61e4fc9 commit f9353ba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/integration/containerSupport.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ const path = require("path");
55

66
async function createAndBootstrapPostgresContainer() {
77
const postgresContainer = await new PostgreSqlContainer()
8-
.withBindMounts([
8+
.withCopyFilesToContainer([
99
{
10-
source: path.join(__dirname, "../../dev/db"),
11-
target: "/docker-entrypoint-initdb.d",
12-
readOnly: false,
10+
source: path.join(__dirname, "../../dev/db/1-create-schema.sql"),
11+
target: "/docker-entrypoint-initdb.d/1-create-schema.sql",
12+
readOnly: true,
1313
},
1414
])
1515
.start();

0 commit comments

Comments
 (0)