1
0
mirror of https://github.com/falk-werner/webfuse-example synced 2024-10-27 20:44:09 +00:00

updated to webfuse 0.2.0

This commit is contained in:
Falk Werner 2020-03-01 21:09:41 +01:00
parent b53ad97cd6
commit 646867ba3e
3 changed files with 12 additions and 5 deletions

View File

@ -92,12 +92,12 @@ RUN set -x \
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib" ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
ARG WEBFUSE_VERSION=master ARG WEBFUSE_VERSION=0.2.0
RUN set -x \ RUN set -x \
&& builddir="/tmp/out" \ && builddir="/tmp/out" \
&& mkdir -p "$builddir" \ && mkdir -p "$builddir" \
&& cd "$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 \ && tar -xf webfuse.tar.gz \
&& cd "webfuse-$WEBFUSE_VERSION" \ && cd "webfuse-$WEBFUSE_VERSION" \
&& mkdir .build \ && mkdir .build \

View File

@ -9,7 +9,14 @@ Example of webfuse.
# Run # 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 webfused -m /tmp -d /var/www -p 8080
Open a webbrowser and visit http://localhost:8080. 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 <name of container> bash
cat /tmp/test/default/hello.txt

View File

@ -1,7 +1,7 @@
import { BadState } from "./bad_state.js"; import { BadState } from "./bad_state.js";
export class Client { export class Client {
static get _PROTOCOL() { return "fs"; } static get _PROTOCOL() { return "webfuse-adapter-server"; }
constructor(provider) { constructor(provider) {
this._provider = { }; this._provider = { };