mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
Some checks failed
build / windows (push) Has been cancelled
build / other_os (push) Has been cancelled
build / mac_amd64 (push) Has been cancelled
build / mac_arm64 (push) Has been cancelled
build / linux (push) Has been cancelled
build / go1.24 (push) Has been cancelled
build / linux_386 (push) Has been cancelled
build / lint (push) Has been cancelled
build / android-all (push) Has been cancelled
Build & Push Docker Images / Build Docker Image for linux/386 (push) Has been cancelled
Build & Push Docker Images / Build Docker Image for linux/amd64 (push) Has been cancelled
Build & Push Docker Images / Build Docker Image for linux/arm/v6 (push) Has been cancelled
Build & Push Docker Images / Build Docker Image for linux/arm/v7 (push) Has been cancelled
Build & Push Docker Images / Build Docker Image for linux/arm64 (push) Has been cancelled
Build & Push Docker Images / Merge & Push Final Docker Image (push) Has been cancelled
32 lines
658 B
Bash
Executable File
32 lines
658 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
NAME=rclone-hdfs
|
|
KERBEROS=${KERBEROS-"false"}
|
|
|
|
. $(dirname "$0")/docker.bash
|
|
|
|
start() {
|
|
docker run --rm -d --name "rclone-hdfs" \
|
|
--hostname "rclone-hdfs" \
|
|
-e "KERBEROS=$KERBEROS" \
|
|
-p 127.0.0.1:9866:9866 \
|
|
-p 127.0.0.1:8020:8020 \
|
|
-p 127.0.0.1:750:750 \
|
|
-p 127.0.0.1:88:88 \
|
|
rclone/test-hdfs
|
|
sleep 30
|
|
|
|
if [ $KERBEROS = "true" ]; then
|
|
docker cp rclone-hdfs:/tmp/krb5cc_0 /tmp/krb5cc_`id -u`
|
|
fi
|
|
|
|
echo type=hdfs
|
|
echo namenode=127.0.0.1:8020
|
|
echo username=root
|
|
echo _connect=127.0.0.1:8020
|
|
}
|
|
|
|
. $(dirname "$0")/run.bash
|