mirror of
https://github.com/TurboGit/hubicfuse.git
synced 2026-08-02 02:42:00 +02:00
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:
committed by
Pascal Obry
parent
82734dfecc
commit
9f63998f2b
+14
@@ -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"]
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
/hubicfuse/hubicfuse /mnt/hubic -o noauto_cache,sync_read,allow_other;
|
||||
echo "mounted, starting bash"
|
||||
exec /bin/bash
|
||||
Executable
+4
@@ -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
|
||||
Reference in New Issue
Block a user