-
Notifications
You must be signed in to change notification settings - Fork 894
chore: add filebrowser to dogfood #8535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
fec656c
e0d7673
8d41680
c02bbe5
289a601
a70eeed
ca96deb
1550884
a21ea23
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,7 +86,7 @@ resource "coder_agent" "dev" { | |
arch = "amd64" | ||
os = "linux" | ||
|
||
dir = data.coder_parameter.repo_dir.value | ||
dir = "/home/coder" | ||
env = { | ||
GITHUB_TOKEN : data.coder_git_auth.github.access_token, | ||
OIDC_TOKEN : data.coder_workspace.me.owner_oidc_access_token, | ||
|
@@ -176,6 +176,9 @@ resource "coder_agent" "dev" { | |
curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server --version 4.8.3 | ||
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 & | ||
|
||
# Install and launch filebrowser | ||
curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash | ||
filebrowser --noauth --root /home/coder --port 8080 >/tmp/filebrowser.log 2>&1 & | ||
matifali marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
if [ ! -d ${data.coder_parameter.repo_dir.value} ]; then | ||
mkdir -p ${data.coder_parameter.repo_dir.value} | ||
|
@@ -194,6 +197,7 @@ resource "coder_agent" "dev" { | |
elif [ -f ~/personalize ]; then | ||
echo "~/personalize is not executable, skipping..." | tee -a ~/.personalize.log | ||
fi | ||
cd ${data.coder_parameter.repo_dir.value} | ||
matifali marked this conversation as resolved.
Show resolved
Hide resolved
|
||
EOT | ||
} | ||
|
||
|
@@ -213,6 +217,16 @@ resource "coder_app" "code-server" { | |
} | ||
} | ||
|
||
resource "coder_app" "filebrowser" { | ||
agent_id = coder_agent.dev.id | ||
display_name = "File Browser" | ||
slug = "filebrowser" | ||
url = "http://localhost:8080/" | ||
icon = "https://raw.githubusercontent.com/matifali/logos/main/database.svg" | ||
subdomain = true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was not able to use it without There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It may be possible, following this approach and I was able to start it on a subpath with a minor issue. (somehow coder repeats app path 2 times) |
||
share = "owner" | ||
} | ||
|
||
resource "docker_volume" "home_volume" { | ||
name = "coder-${data.coder_workspace.me.id}-home" | ||
# Protect the volume from being deleted due to changes in attributes. | ||
|
Uh oh!
There was an error while loading. Please reload this page.