github.com/xhghs/rclone@v1.51.1-0.20200430155106-e186a28cced8/fstest/testserver/init.d/TestFTPPureftpd (about)

     1  #!/bin/bash
     2  
     3  set -e
     4  
     5  NAME=pureftpd
     6  USER=rclone
     7  PASS=AcridSpiesBooks2
     8  
     9  . $(dirname "$0")/docker.bash
    10  
    11  start() {
    12      docker run --rm -d --name $NAME \
    13             -e "FTP_USER_NAME=rclone" \
    14             -e "FTP_USER_PASS=$PASS" \
    15             -e "FTP_USER_HOME=/data" \
    16             -e "FTP_MAX_CLIENTS=50" \
    17             -e "FTP_MAX_CONNECTIONS=50" \
    18             -e "FTP_PASSIVE_PORTS=30000:40000" \
    19             stilliard/pure-ftpd
    20  
    21      echo type=ftp
    22      echo host=$(docker_ip)
    23      echo user=$USER
    24      echo pass=$(rclone obscure $PASS)
    25      echo _connect=$(docker_ip):21
    26  }
    27  
    28  . $(dirname "$0")/run.bash