Skip to content
This repository was archived by the owner on Oct 19, 2022. It is now read-only.

Commit ac7d321

Browse files
committed
add test allow_other
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
1 parent 4b0f599 commit ac7d321

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

.travis/integration.sh

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,31 @@ docker pull rastasheep/ubuntu-sshd:14.04
88
docker pull busybox
99

1010
#script
11+
12+
# make the plugin
1113
make
14+
# enable the plugin
1215
make enable
16+
# list plugins
1317
docker plugin ls
18+
# start sshd
1419
docker run -d -p 2222:22 rastasheep/ubuntu-sshd:14.04
20+
21+
# test1: simple
1522
docker volume create -d vieux/sshfs:next -o sshcmd=root@localhost:/ -o port=2222 -o password=root sshvolume
16-
docker volume ls
17-
docker run -it -v sshvolume:/data1 busybox sh -c "echo hello > /data1/world"
18-
docker run -it -v sshvolume:/data2 busybox grep -Fxq hello /data2/world
23+
docker run --rm -v sshvolume:/write busybox sh -c "echo hello > /write/world"
24+
docker run --rm -v sshvolume:/read busybox grep -Fxq hello /read/world
25+
docker volume rm sshvolume
26+
27+
# test2: allow_other
28+
docker volume create -d vieux/sshfs:next -o sshcmd=root@localhost:/ -o allow_other -o port=2222 -o password=root sshvolume
29+
docker run --rm -v sshvolume:/write -u nobody busybox sh -c "echo hello > /write/world"
30+
docker run --rm -v sshvolume:/read -u nobody busybox grep -Fxq hello /read/world
31+
docker volume rm sshvolume
32+
33+
# test3: compression
34+
docker volume create -d vieux/sshfs:next -o sshcmd=root@localhost:/ -o Ciphers=arcfour -o Compression=no -o port=2222 -o password=root sshvolume
35+
docker run --rm -v sshvolume:/write busybox sh -c "echo hello > /write/world"
36+
docker run --rm -v sshvolume:/read busybox grep -Fxq hello /read/world
37+
docker volume rm sshvolume
38+

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $ docker plugin install vieux/sshfs # or docker plugin install vieux/sshfs DEBUG
1616
2 - Create a volume
1717

1818
```
19-
$ docker volume create -d vieux/sshfs -o sshcmd=<user@host:path> -o password=<password> [-o port=<port>] [-o allow_other] sshvolume
19+
$ docker volume create -d vieux/sshfs -o sshcmd=<user@host:path> -o password=<password> [-o port=<port>] [-o <any_sshfs_-o_option> ] sshvolume
2020
sshvolume
2121
$ docker volume ls
2222
DRIVER VOLUME NAME

0 commit comments

Comments
 (0)