mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 08:50:56 +01:00
* ci: generate auth secret in production * refactor: remove no longer needed auth-secret from e2e test * fix: remove static auth secret
12 lines
373 B
TypeScript
12 lines
373 B
TypeScript
import { GenericContainer, Wait } from "testcontainers";
|
|
|
|
export const createHomarrContainer = () => {
|
|
if (!process.env.CI) {
|
|
throw new Error("This test should only be run in CI or with a homarr image named 'homarr-e2e'");
|
|
}
|
|
|
|
return new GenericContainer("homarr-e2e")
|
|
.withExposedPorts(7575)
|
|
.withWaitStrategy(Wait.forHttp("/api/health/ready", 7575));
|
|
};
|