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:
parent
b53ad97cd6
commit
646867ba3e
@ -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 \
|
||||||
|
11
README.md
11
README.md
@ -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
|
||||||
|
@ -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 = { };
|
||||||
|
Loading…
Reference in New Issue
Block a user