Add docker

3 files are as follows

Dockerfile - the building of the image
docker-entrypoint.sh the command to run inside the container
docker_mount.sh   run the image

To mount you should just need the docker_mount.sh to run, this will
build and mount

You still need the ~/.hubicfuse file for creditinals
This commit is contained in:
Scott Dutton
2018-11-12 23:08:19 +01:00
committed by Pascal Obry
parent 82734dfecc
commit 9f63998f2b
3 changed files with 22 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM ubuntu:14.04
RUN apt-get update && \
apt-get install -y gcc make curl libfuse-dev pkg-config \
libcurl4-openssl-dev libxml2-dev libssl-dev libjson-c-dev libmagic-dev && \
rm -rf /var/lib/apt/lists/*
COPY . /hubicfuse
WORKDIR /hubicfuse
RUN ./configure && make
ENTRYPOINT ["/hubicfuse/docker-entrypoint.sh"]
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
/hubicfuse/hubicfuse /mnt/hubic -o noauto_cache,sync_read,allow_other;
echo "mounted, starting bash"
exec /bin/bash
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
docker build -t hubicfuse .
docker run -v ~/.hubicfuse:/root/.hubicfuse -v $(pwd)/hubic_mount:/mnt/hubic:shared --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined -it hubicfuse