filebrowser/docs

[Example] Filebrowser and GTK+ Broadway on Debian Buster

eine opened this issue · 0 comments

eine commented

Just an example of how filebrowser can be extended with other tools. Here, filebrowser is added to a image based on debian:buster-slim, which already includes some CLI tools and other GTK3 compatible GUI apps.

FROM ghdl/ext:broadway

COPY filebrowser.config.yml /etc/filebrowser/.filebrowser.yml

RUN URL="$(curl -s https://api.github.com/repos/filebrowser/filebrowser/releases/latest | grep "browser_download_url.*linux-amd64.*tar.gz" | sed 's/.* "\(.*\)"/\1/g')" \
 && [ "$(echo "$URL" | cut -c1-5)" != "https" ] && URL="https://github.com/filebrowser/filebrowser/releases/download/v2.0.2/linux-amd64-filebrowser.tar.gz"; echo "URL: $URL" \
 && curl -fsSL "$URL" | tar -xvz -C /usr/local/bin filebrowser \
 && mkdir -p /var/lib/filebrowser/ \
 && filebrowser config init \
 && filebrowser users add hwd admin --commands '.*' --perm.admin

VOLUME /srv
EXPOSE 8080/tcp
CMD ["filebrowser"]

The config file is:

database: /var/lib/filebrowser/filebrowser.db
noauth: false
username: hwd
address: ""
log: stdout
port: 8080
root: /srv

Just build the container:

docker build -t ghdl/ext:gtk-ide .

And execute it:

$(commang -v winpty) docker run --rm -it -p 8080:8080 -e BROADWAY=5 -p 8085:8085 ghdl/ext:gtk-ide

Browse localhost:8080 and login with hwd (pass admin).

NOTE: Due to filebrowser/filebrowser#655, go to Settings > Global Settings and click UPDATE.

Click the Toggle shell button on the top-right corner, and execute bash -ic "gtkwave". Browse localhost:8085 to use the GUI app.


Screencast on a Win10 host:

gtk-ide