Merge pull request #1 from falk-werner/update_webfused

updated to webfused 0.2.0
pull/3/head
Falk Werner 4 years ago committed by GitHub
commit 25edce8789
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -15,7 +15,9 @@ RUN set -x \
openssl \ openssl \
libssl-dev \ libssl-dev \
uuid-dev \ uuid-dev \
wget wget \
libconfig-dev \
libpam0g-dev
COPY www /var/www COPY www /var/www
@ -106,7 +108,7 @@ RUN set -x \
&& make "$PARALLELMFLAGS" install \ && make "$PARALLELMFLAGS" install \
&& rm -rf "$builddir" && rm -rf "$builddir"
ARG WEBFUSED_VERSION=0.1.0 ARG WEBFUSED_VERSION=0.2.0
RUN set -x \ RUN set -x \
&& builddir="/tmp/out" \ && builddir="/tmp/out" \
&& mkdir -p "$builddir" \ && mkdir -p "$builddir" \
@ -116,10 +118,16 @@ RUN set -x \
&& cd "webfused-$WEBFUSED_VERSION" \ && cd "webfused-$WEBFUSED_VERSION" \
&& mkdir .build \ && mkdir .build \
&& cd .build \ && cd .build \
&& cmake ".." \ && cmake -DWITHOUT_TESTS=ON ".." \
&& make "$PARALLELMFLAGS" install \ && make "$PARALLELMFLAGS" install \
&& rm -rf "$builddir" && rm -rf "$builddir"
COPY webfused.conf /etc
ARG USERID=1000
RUN set -x \
&& useradd -u "$USERID" -ms /bin/bash user
EXPOSE 8080 EXPOSE 8080
ENTRYPOINT ["dumb-init", "--"] ENTRYPOINT ["dumb-init", "--"]

@ -11,12 +11,13 @@ Example of webfuse.
docker run -p 8080:8080 --rm -it \ docker run -p 8080:8080 --rm -it \
--device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined \ --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined \
--user `id -u` \
webfuse bash webfuse bash
webfused -m /tmp -d /var/www -p 8080 webfused -f /etc/webfused.conf
Open a webbrowser and visit http://localhost:8080 and follow the instruction on the screen. Open a webbrowser and visit http://localhost:8080 and follow the instruction on the screen.
Then open another terminal and connect to the container. Then open another terminal and connect to the container.
docker exec -it <name of container> bash docker exec -it <name of container> bash
cat /tmp/test/default/hello.txt cat /tmp/test/hello.txt

@ -0,0 +1,21 @@
# Webfuse deamon configuration file
version = { major = 1, minor = 0 }
server:
{
vhost_name = "localhost"
port = 8080
document_root = "/var/www"
}
filesystems:
(
{name = "test", mount_point = "/tmp/test" }
)
log:
{
provider: "stderr"
level: "all"
}
Loading…
Cancel
Save