Fix mas run

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/28876/head
Michael Telatynski 2025-01-06 15:45:44 +00:00
parent d506dec51a
commit 4cacb832b0
No known key found for this signature in database
GPG Key ID: A2B008A5F49F5D0D
1 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ import { Instance as MailhogInstance } from "../mailhog";
// Docker tag to use for `ghcr.io/matrix-org/matrix-authentication-service` image.
const TAG = "0.12.0";
export interface ProxyInstance {
interface Instance {
containerId: string;
postgresId: string;
configDir: string;
@ -61,7 +61,7 @@ async function cfgDirFromTemplate(opts: {
export class MatrixAuthenticationService {
private readonly masDocker = new Docker();
private readonly postgresDocker = new PostgresDocker("mas");
private instance: ProxyInstance;
private instance: Instance;
public port: number;
constructor(private context: BrowserContext) {}
@ -71,7 +71,7 @@ export class MatrixAuthenticationService {
return { port: this.port };
}
async start(homeserver: HomeserverInstance, mailhog: MailhogInstance): Promise<ProxyInstance> {
async start(homeserver: HomeserverInstance, mailhog: MailhogInstance): Promise<Instance> {
console.log(new Date(), "Starting mas...");
if (!this.port) await this.prepare();
@ -89,7 +89,7 @@ export class MatrixAuthenticationService {
image: "ghcr.io/element-hq/matrix-authentication-service:" + TAG,
containerName: "react-sdk-playwright-mas",
params: ["-p", `${port}:8080/tcp`, "-v", `${configDir}:/config`],
cmd: ["mas-cli", "server", "--config", "/config/config.yaml"],
cmd: ["server", "--config", "/config/config.yaml"],
});
console.log(new Date(), "started!");