From 646867ba3eb4b7e725efa8183c31401bd837e5b7 Mon Sep 17 00:00:00 2001 From: Falk Werner Date: Sun, 1 Mar 2020 21:09:41 +0100 Subject: [PATCH] updated to webfuse 0.2.0 --- Dockerfile | 4 ++-- README.md | 11 +++++++++-- www/js/webfuse/client.js | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 52e5af1..63ce4dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -92,12 +92,12 @@ RUN set -x \ ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib" -ARG WEBFUSE_VERSION=master +ARG WEBFUSE_VERSION=0.2.0 RUN set -x \ && builddir="/tmp/out" \ && mkdir -p "$builddir" \ && cd "$builddir" \ - && wget "https://github.com/falk-werner/webfuse/archive/${WEBFUSE_VERSION}.tar.gz" -O webfuse.tar.gz \ + && wget "https://github.com/falk-werner/webfuse/archive/v${WEBFUSE_VERSION}.tar.gz" -O webfuse.tar.gz \ && tar -xf webfuse.tar.gz \ && cd "webfuse-$WEBFUSE_VERSION" \ && mkdir .build \ diff --git a/README.md b/README.md index bb3e543..a114ed3 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,14 @@ Example of webfuse. # Run - docker run -p 8080:8080 --rm -it --user "`id -u`" webfuse bash + docker run -p 8080:8080 --rm -it \ + --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined \ + webfuse bash webfused -m /tmp -d /var/www -p 8080 -Open a webbrowser and visit http://localhost:8080. \ No newline at end of file +Open a webbrowser and visit http://localhost:8080 and follow the instruction on the screen. + +Then open another terminal and connect to the container. + + docker exec -it bash + cat /tmp/test/default/hello.txt diff --git a/www/js/webfuse/client.js b/www/js/webfuse/client.js index 65d24f2..b046b3f 100644 --- a/www/js/webfuse/client.js +++ b/www/js/webfuse/client.js @@ -1,7 +1,7 @@ import { BadState } from "./bad_state.js"; export class Client { - static get _PROTOCOL() { return "fs"; } + static get _PROTOCOL() { return "webfuse-adapter-server"; } constructor(provider) { this._provider = { };