Skip to content

Commit

Permalink
Add docker
Browse files Browse the repository at this point in the history
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
  • Loading branch information
exussum12 authored and TurboGit committed Nov 12, 2018
1 parent 82734df commit 9f63998
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 changes: 4 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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 changes: 4 additions & 0 deletions docker_mount.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9f63998

Please sign in to comment.