Skip to content

Commit

Permalink
fix(containerHelpers): add extra arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
steveiliop56 committed Apr 1, 2024
1 parent ba39a40 commit 3412814
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion migrations/0001_running_status.sql
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ALTER TABLE shells ADD `running` text 1;
ALTER TABLE shells ADD `running` text;
2 changes: 1 addition & 1 deletion src/utils/container-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class containerHelpers {
if (success) {
await this.removeContainer();

const dockerArguments = `-t -d --restart unless-stopped --name ${this.containerName} --hostname ${this.containerName} --volume ${this.containerName}:/home/${this.shell.distro} -p ${this.shell.port}:22`;
const dockerArguments = `-t -d --restart unless-stopped --name ${this.containerName} --hostname ${this.containerName} --volume ${this.containerName}:/home/${this.shell.distro} -p ${this.shell.port}:22 ${this.shell.extraArgs}`;
const { stdout, stderr } = await this.exec(
`docker run ${dockerArguments} getashell:${this.shell.distro}`,
);
Expand Down

0 comments on commit 3412814

Please sign in to comment.