diff --git a/registry/coder/modules/filebrowser/README.md b/registry/coder/modules/filebrowser/README.md index d3604179e..eac68eaed 100644 --- a/registry/coder/modules/filebrowser/README.md +++ b/registry/coder/modules/filebrowser/README.md @@ -15,7 +15,7 @@ A file browser for your workspace. module "filebrowser" { count = data.coder_workspace.me.start_count source = "registry.coder.com/coder/filebrowser/coder" - version = "1.1.0" + version = "1.1.1" agent_id = coder_agent.example.id } ``` @@ -30,7 +30,7 @@ module "filebrowser" { module "filebrowser" { count = data.coder_workspace.me.start_count source = "registry.coder.com/coder/filebrowser/coder" - version = "1.1.0" + version = "1.1.1" agent_id = coder_agent.example.id folder = "/home/coder/project" } @@ -42,7 +42,7 @@ module "filebrowser" { module "filebrowser" { count = data.coder_workspace.me.start_count source = "registry.coder.com/coder/filebrowser/coder" - version = "1.1.0" + version = "1.1.1" agent_id = coder_agent.example.id database_path = ".config/filebrowser.db" } @@ -54,7 +54,7 @@ module "filebrowser" { module "filebrowser" { count = data.coder_workspace.me.start_count source = "registry.coder.com/coder/filebrowser/coder" - version = "1.1.0" + version = "1.1.1" agent_id = coder_agent.example.id agent_name = "main" subdomain = false diff --git a/registry/coder/modules/filebrowser/main.test.ts b/registry/coder/modules/filebrowser/main.test.ts index 136fa25e2..b74b137d2 100644 --- a/registry/coder/modules/filebrowser/main.test.ts +++ b/registry/coder/modules/filebrowser/main.test.ts @@ -55,7 +55,7 @@ describe("filebrowser", async () => { ); testBaseLine(output); - }); + }, 15000); it("runs with database_path var", async () => { const state = await runTerraformApply(import.meta.dir, { @@ -63,7 +63,7 @@ describe("filebrowser", async () => { database_path: ".config/filebrowser.db", }); - const output = await await executeScriptInContainer( + const output = await executeScriptInContainer( state, "alpine/curl", "sh", @@ -71,20 +71,21 @@ describe("filebrowser", async () => { ); testBaseLine(output); - }); + }, 15000); it("runs with folder var", async () => { const state = await runTerraformApply(import.meta.dir, { agent_id: "foo", folder: "/home/coder/project", }); - const output = await await executeScriptInContainer( + const output = await executeScriptInContainer( state, "alpine/curl", "sh", "apk add bash", ); - }); + + }, 15000); it("runs with subdomain=false", async () => { const state = await runTerraformApply(import.meta.dir, { @@ -93,7 +94,7 @@ describe("filebrowser", async () => { subdomain: false, }); - const output = await await executeScriptInContainer( + const output = await executeScriptInContainer( state, "alpine/curl", "sh", @@ -101,5 +102,5 @@ describe("filebrowser", async () => { ); testBaseLine(output); - }); + }, 15000); }); diff --git a/registry/coder/modules/filebrowser/main.tf b/registry/coder/modules/filebrowser/main.tf index 3c0178211..498682dd8 100644 --- a/registry/coder/modules/filebrowser/main.tf +++ b/registry/coder/modules/filebrowser/main.tf @@ -97,7 +97,6 @@ resource "coder_script" "filebrowser" { LOG_PATH : var.log_path, PORT : var.port, FOLDER : var.folder, - LOG_PATH : var.log_path, DB_PATH : var.database_path, SUBDOMAIN : var.subdomain, SERVER_BASE_PATH : local.server_base_path @@ -128,3 +127,4 @@ locals { url = "http://localhost:${var.port}${local.server_base_path}" healthcheck_url = "http://localhost:${var.port}${local.server_base_path}/health" } + diff --git a/registry/coder/modules/filebrowser/run.sh b/registry/coder/modules/filebrowser/run.sh index ffb87f042..ea4b857a3 100644 --- a/registry/coder/modules/filebrowser/run.sh +++ b/registry/coder/modules/filebrowser/run.sh @@ -25,7 +25,7 @@ export FB_DATABASE="${DB_PATH}" # Check if filebrowser db exists if [[ ! -f "${DB_PATH}" ]]; then filebrowser config init 2>&1 | tee -a ${LOG_PATH} - filebrowser users add admin "" --perm.admin=true --viewMode=mosaic 2>&1 | tee -a ${LOG_PATH} + filebrowser users add admin "coderPASSWORD" --perm.admin=true --viewMode=mosaic 2>&1 | tee -a ${LOG_PATH} fi filebrowser config set --baseurl=${SERVER_BASE_PATH} --port=${PORT} --auth.method=noauth --root=$ROOT_DIR 2>&1 | tee -a ${LOG_PATH}