Skip to content

Commit

Permalink
Change test ftp service to sftp
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoet-jh committed Nov 6, 2023
1 parent 50ecb03 commit 7c1090f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 19 deletions.
8 changes: 4 additions & 4 deletions .eclipse-pass.local_env
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ DSPACE_SERVER=dspace:8080
[email protected]
DSPACE_PASSWORD=admin

PMC_FTP_HOST=pmc-ftp-server
PMC_FTP_PORT=21
PMC_FTP_USER=nihmsftpuser
PMC_FTP_PASSWORD=nihmsftppass
PMC_FTP_HOST=pmc-sftp-server
PMC_FTP_PORT=22
PMC_FTP_USER=pmcsftpuser
PMC_FTP_PASSWORD=pmcsftppass

###################################################
# Auth / Proxy config #############################
Expand Down
7 changes: 2 additions & 5 deletions deposit/deposit-repositories.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,12 @@
},
"transport-config": {
"protocol-binding": {
"protocol": "ftp",
"protocol": "sftp",
"username": "${pmc.ftp.user}",
"password": "${pmc.ftp.password}",
"server-fqdn": "${pmc.ftp.host}",
"server-port": "${pmc.ftp.port}",
"data-type": "binary",
"transfer-mode": "stream",
"use-pasv": true,
"default-directory": "/logs/upload/test/%s"
"default-directory": "/upload/%s"
}
}
}
Expand Down
17 changes: 7 additions & 10 deletions docker-compose-deposit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,16 @@ services:
volumes:
- ./deposit/deposit-repositories.json:/deposit/deposit-repositories.json

pmc-ftp-server:
container_name: pmc-ftp-server
environment:
- FTP_USER=nihmsftpuser
- FTP_PASS=nihmsftppass
image: fauria/vsftpd
pmc-sftp-server:
container_name: pmc-sftp-server
image: atmoz/sftp
ports:
- '20-21:20-21/tcp'
- '40000-40009:40000-40009/tcp'
- '2222:22/tcp'
networks:
- back
volumes:
- ftpdata:/home/user
- sftpdata:/home/pmcsftpuser
command: pmcsftpuser:pmcsftppass:::upload

volumes:
ftpdata:
sftpdata:

0 comments on commit 7c1090f

Please sign in to comment.