-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
3 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |