We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1857d9e + 61e4fc9 commit f9353baCopy full SHA for f9353ba
test/integration/containerSupport.js
@@ -5,11 +5,11 @@ const path = require("path");
5
6
async function createAndBootstrapPostgresContainer() {
7
const postgresContainer = await new PostgreSqlContainer()
8
- .withBindMounts([
+ .withCopyFilesToContainer([
9
{
10
- source: path.join(__dirname, "../../dev/db"),
11
- target: "/docker-entrypoint-initdb.d",
12
- readOnly: false,
+ source: path.join(__dirname, "../../dev/db/1-create-schema.sql"),
+ target: "/docker-entrypoint-initdb.d/1-create-schema.sql",
+ readOnly: true,
13
},
14
])
15
.start();
0 commit comments