DEPRECATED Please note that this repository is no longer used and will likely be removed at some point in the future. The information in this readme may be out of date or possibly misleading and should not be relied upon.
The sdx-downstream-ctp app is used within the Office for National Statistics (ONS) for consuming decrypted Survey Data Exchange (SDX) Surveys from sdx-store and delivering them to CTP.
To install, use:
make build
To install using local sdx-common repo (requires SDX_HOME environment variable), use:
make dev
To run the test suite, use:
make test
It's also possible to install within a container using docker. From the sdx-downstream directory:
$ docker build -t sdx-downstream .
The following envioronment variables can be set:
Environment Variable | Default | Description |
---|---|---|
SDX_STORE_URL | http://sdx-store:5000 |
The URL of the sdx-store service |
SDX_SEQUENCE_URL | http://sdx-sequence:5000 |
The URL of the sdx-sequence service |
FTP_HOST | pure-ftpd |
FTP to monitor |
FTP_USER | none | User for FTP account if required |
FTP_PASS | none | Password for FTP account if required |
FTP_FOLDER | / |
FTP folder |
FTP_HEARTBEAT_FOLDER | /heartbeat |
FTP heartbeat folder |
RABBIT_QUEUE | sdx-ctp-survey-notifications |
Rabbit queue name |
RABBIT_EXCHANGE | message |
RabbitMQ exchange to use |
SFTP_HOST | xxx.x.x.x | SFTP host |
SFTP_PORT | 22 |
SFTP port |
Copyright © 2016, Office for National Statistics (https://www.ons.gov.uk)
Released under MIT license, see LICENSE for details.