mirror of
https://github.com/rclone/rclone.git
synced 2024-12-02 13:25:51 +01:00
25 lines
425 B
Bash
Executable File
25 lines
425 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
NAME=rclone-hdfs
|
|
|
|
. $(dirname "$0")/docker.bash
|
|
|
|
start() {
|
|
docker run --rm -d --name "rclone-hdfs" -p 127.0.0.1:9866:9866 -p 127.0.0.1:8020:8020 --hostname "rclone-hdfs" rclone/test-hdfs
|
|
sleep 10
|
|
|
|
echo type=hdfs
|
|
echo namenode=127.0.0.1:8020
|
|
echo username=root
|
|
}
|
|
stop() {
|
|
if status ; then
|
|
docker kill $NAME
|
|
echo "$NAME stopped"
|
|
fi
|
|
}
|
|
|
|
. $(dirname "$0")/run.bash
|