aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/datafilecollector-testharness/ftps-sftp-server/README.md
blob: 5a1660126a816f6359dd197118d52d71329bb3f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
###Deployment of certificates: (in case of update)

This folder is prepared with a set of keys matching DfC for test purposes.

Copy from datafile-app-server/config/keys to the ./tls/ the following files:

* dfc.crt
* ftp.crt
* ftp.key

###Docker preparations
Source: https://docs.docker.com/install/linux/linux-postinstall/

`sudo usermod -aG docker $USER`

then logout-login to activate it.

###Starting/stopping the FTPS/SFTP server(s)

Start: `docker-compose up`

Stop: Ctrl +C, then `docker-compose down`  or `docker-compose down --remove-orphans`

If you experience issues (or port collision), check the currently running other containers
by using 'docker ps' and stop them if necessary.


###Cleaning docker structure
Deep cleaning: `docker system prune`