Skip to content

Commit 5022cbc

Browse files
authored
Include Redpanda assets in build artifact (#790)
1 parent 7f39fba commit 5022cbc

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

packages/modules/redpanda/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"scripts": {
2828
"prepack": "shx cp ../../../README.md . && shx cp ../../../LICENSE .",
29-
"build": "tsc --project tsconfig.build.json"
29+
"build": "tsc --project tsconfig.build.json && shx cp -r src/assets build/"
3030
},
3131
"dependencies": {
3232
"handlebars": "^4.7.8",

packages/modules/redpanda/src/redpanda-container.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class RedpandaContainer extends GenericContainer {
3030
.withWaitStrategy(Wait.forLogMessage("Successfully started Redpanda!"))
3131
.withCopyFilesToContainer([
3232
{
33-
source: path.join(__dirname, "bootstrap.yaml"),
33+
source: path.join(__dirname, "assets", "bootstrap.yaml"),
3434
target: "/etc/redpanda/.bootstrap.yaml",
3535
},
3636
]);
@@ -75,7 +75,7 @@ export class RedpandaContainer extends GenericContainer {
7575
}
7676

7777
private renderRedpandaFile(host: string, port: number): string {
78-
const template = compile(fs.readFileSync(path.join(__dirname, "redpanda.yaml.hbs"), "utf-8"));
78+
const template = compile(fs.readFileSync(path.join(__dirname, "assets", "redpanda.yaml.hbs"), "utf-8"));
7979
return template({
8080
kafkaApi: {
8181
advertisedHost: host,

0 commit comments

Comments
 (0)