EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit c26fffd4 authored by Lubomir Dolezal's avatar Lubomir Dolezal
Browse files

update sftp ports

parent 53ea6c9d
Branches
Tags
2 merge requests!36Staging to master to prepare 1.0.0 release,!32Registrar modularization
......@@ -180,7 +180,7 @@ The following services are defined via docker compose files.
* uses external atmoz/sftp image
* provides sftp access to two volumes for report exchange on registration result xmls and ingest requirement xmls
* accessible on swarm master on port 2222
* accessible on swarm master on port 2222-22xx
* credentials supplied via config
# Usage
......@@ -304,7 +304,7 @@ On production machine, `fluentd` is set as a logging driver for docker daemon by
The `SFTP` image allow remote access into 2 logging folders, you can define (edit/add) users, passwords and (UID/GID) using `docker config create` mentioned above.
In the below example the username is `eox`, once the stack is deployed you can sftp into the logging folders through port 2222 on -if you are running the dev stack- localhost :
In the below example the username is `eox`, once the stack is deployed you can sftp into the logging folders through port 2222 (for ``vhr18``, ``emg`` and ``dem`` have 2223 and 2224 respectively) if you are running the dev stack localhost :
```bash
sftp -P 2222 eox@127.0.0.1
......
......@@ -185,7 +185,7 @@ services:
- source: sftp_users_dem
target: /etc/sftp/users.conf
ports:
- "2222:22"
- "2224:22"
deploy:
replicas: 1
ingestor:
......
......@@ -196,7 +196,7 @@ services:
target: /etc/sftp/users.conf
ports:
- "2222:22"
- "2223:22"
deploy:
replicas: 1
configs:
......
......@@ -63,7 +63,7 @@ Inspecting reports
------------------
Once a product is registered, a xml report containing wcs and wms getcapabilities of the registered product is generated and can be accessed by connecting to the `SFTP` service via the sftp protocol.
In order to log into the logging folders through port 2222 on the hosting ip (e.g. localhost if you are running the dev stack) The following command can be used:
In order to log into the logging folders through port 2222 (for ``vhr18``, ``emg`` and ``dem`` have 2223 and 2224 respectively) on the hosting ip (e.g. localhost if you are running the dev stack) The following command can be used:
.. code-block:: bash
......
......@@ -34,7 +34,7 @@ def identifiers():
def sftp_connection():
username = os.environ['sftp_users_emg'].split(':')[0]
password = os.environ['sftp_users_emg'].split(':')[1]
transport = paramiko.Transport(('docker', 2222))
transport = paramiko.Transport(('docker', 2223))
transport.connect(username=username, password=password)
with paramiko.SFTPClient.from_transport(transport) as sftp:
yield sftp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment