mirror of
https://github.com/rclone/rclone.git
synced 2024-11-29 20:04:52 +01:00
8dc4c01209
This changes as many of the integraton tests as possible so that they use port forwarding rather than the docker IP directly. Using the docker IP directly does not work on macOS and Windows as the docker images are running in a VM rather than a container. This adds the PORTS.md document to document which port numbers we are using for which service as they need to be unique.
27 lines
461 B
Bash
Executable File
27 lines
461 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
NAME=rclone-sftp-openssh
|
|
USER=rclone
|
|
PASS=password
|
|
PORT=28627
|
|
|
|
. $(dirname "$0")/docker.bash
|
|
|
|
start() {
|
|
docker run --rm -d --name ${NAME} \
|
|
-p 127.0.0.1:${PORT}:22 \
|
|
rclone/test-sftp-openssh
|
|
|
|
echo type=sftp
|
|
echo host=127.0.0.1
|
|
echo port=$PORT
|
|
echo user=$USER
|
|
echo pass=$(rclone obscure $PASS)
|
|
echo copy_is_hardlink=true
|
|
echo _connect=127.0.0.1:${PORT}
|
|
}
|
|
|
|
. $(dirname "$0")/run.bash
|