Skip to content

Commit

Permalink
Include Redpanda assets in build artifact (#790)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio-miguel authored Jul 3, 2024
1 parent 7f39fba commit 5022cbc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/modules/redpanda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"scripts": {
"prepack": "shx cp ../../../README.md . && shx cp ../../../LICENSE .",
"build": "tsc --project tsconfig.build.json"
"build": "tsc --project tsconfig.build.json && shx cp -r src/assets build/"
},
"dependencies": {
"handlebars": "^4.7.8",
Expand Down
4 changes: 2 additions & 2 deletions packages/modules/redpanda/src/redpanda-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class RedpandaContainer extends GenericContainer {
.withWaitStrategy(Wait.forLogMessage("Successfully started Redpanda!"))
.withCopyFilesToContainer([
{
source: path.join(__dirname, "bootstrap.yaml"),
source: path.join(__dirname, "assets", "bootstrap.yaml"),
target: "/etc/redpanda/.bootstrap.yaml",
},
]);
Expand Down Expand Up @@ -75,7 +75,7 @@ export class RedpandaContainer extends GenericContainer {
}

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

0 comments on commit 5022cbc

Please sign in to comment.