Sign inSign up

kevineye/volume-tool

By kevineye

Updated almost 5 years ago

Web based file manager bundling caddy webdav and filebrowser. Great for openshift/kubernetes PVs.

Image
1

455

kevineye/volume-tool repository overview

Volume Tool

Simple file manager for use in docker and especially with openshift/kubernetes persistent volumes.

Features

  • connect via webdav client (courtesy of caddy-webdav)
  • view and manage files (courtesy of filebrowser)
  • image previews
  • in-browser text/code editor
  • drag-and-drop file organizing
  • file upload and download
  • in-browser terminal

Unsupported

This image is expected to be used locally, or with a sidecar or reverse proxy server. Do not expose this container directly to the internet as-is.

Missing features:

  • authentication (could be configured in Caddyfile)
  • HTTPS (could be configured in Caddyfile)

Docker Examples

# build/run local example sharing repo directory on port 8080 
docker compose up app

# share home directory as current user on http://localhost:8080
docker run -d \
  -u `id -u` \
  -v "$HOME":/data \
  -p 8080:8080 \
  kevineye/volume-tool 

Openshift Examples

Use the included shell script to quickly run a pod that mounts a persistent volume, sets up port forwarding, opens a browser window, and cleans up after itself:

# login first
oc login ...
oc project ...

# run the script
./oc-volume-access.sh <pvc-name>

Alternately, run the commands directly:

# replace NAME_OF_PVC with volume to access
oc run volume-tool --image unused --restart Never \
  --overrides '{"spec": {"containers": [ { "name": "volume-tool", "image": "kevineye/volume-tool",
    "resources": { "limits": { "cpu": "100m", "memory": "64Mi" }, "requests": { "cpu": "50m", "memory": "32Mi" } },
    "volumeMounts": [{ "mountPath": "/data", "name": "volume" }]
    }], "volumes": [ { "name": "volume", "persistentVolumeClaim": { "claimName": "NAME_OF_PVC" } } ] }}'

# privately expose via port forwarding (much safer than a public route)
oc port-forward volume-tool 8080
open http://localhost:8080

# cleanup
oc delete pod volume-tool

Tag summary

Content type

Image

Digest

Size

23.1 MB

Last updated

almost 5 years ago

docker pull kevineye/volume-tool