2020-02-09 19:26:22 +00:00
|
|
|
[![Build Status](https://travis-ci.org/falk-werner/webfuse-example.svg?branch=master)](https://travis-ci.org/falk-werner/webfuse-example)
|
|
|
|
|
2020-02-09 18:02:29 +00:00
|
|
|
# webfuse-example
|
2020-02-09 19:24:35 +00:00
|
|
|
Example of webfuse.
|
|
|
|
|
|
|
|
## Build
|
|
|
|
|
2020-02-09 19:29:54 +00:00
|
|
|
docker build --rm --build-arg "USERID=`id -u`" --tag webfuse .
|
2020-02-09 19:24:35 +00:00
|
|
|
|
2020-04-11 06:35:12 +00:00
|
|
|
## Run
|
2020-02-09 19:24:35 +00:00
|
|
|
|
2020-03-01 20:09:41 +00:00
|
|
|
docker run -p 8080:8080 --rm -it \
|
|
|
|
--device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined \
|
2020-04-11 12:04:53 +00:00
|
|
|
webfuse
|
2020-02-09 19:24:35 +00:00
|
|
|
|
2020-04-11 17:15:40 +00:00
|
|
|
Open a webbrowser, visit http://localhost:8080 and follow the instruction on the screen.
|
2020-03-01 20:09:41 +00:00
|
|
|
|
2020-04-11 17:15:40 +00:00
|
|
|
Once connected, you can also display the provided filesystem inside the container.
|
2020-03-01 20:09:41 +00:00
|
|
|
|
2020-03-20 16:47:18 +00:00
|
|
|
cat /tmp/test/hello.txt
|
2020-04-11 06:35:12 +00:00
|
|
|
|
2020-04-11 12:04:53 +00:00
|
|
|
### Logging
|
|
|
|
|
|
|
|
To view log messages from webfuse, open another terminal an conntect to the container.
|
|
|
|
Log files can be found in /var/log/socklog/daemon directory.
|
|
|
|
|
|
|
|
docker exec -it <container> bash
|
|
|
|
tail -f /var/log/socklog/daemon/current
|
|
|
|
|
2020-04-11 06:35:12 +00:00
|
|
|
## Fellow Repositories
|
|
|
|
|
|
|
|
* [webfuse library](https://github.com/falk-werner/webfuse)
|
|
|
|
Create webfuse adapters and providers in C/C++
|
|
|
|
|
|
|
|
* [webfuse daemon](https://github.com/falk-werner/webfused)
|
|
|
|
Reference implementation of webfuse adapter (server)
|
|
|
|
|
|
|
|
* [webfuse-js](https://github.com/falk-werner/webfuse-js)
|
|
|
|
Create webfuse provider (client) in JavaScript
|
|
|
|
|
|
|
|
## Further Reading
|
|
|
|
|
|
|
|
* [Webfuse Protocol Specification](https://github.com/falk-werner/webfuse/blob/master/doc/protocol.md)
|