Git Product home page Git Product logo

onsdigital.sdx-compose's Introduction

sdx-compose

This repository allows you to spin up a local test environment for the sdx- suite of services.

Prerequisites

  • make
  • docker
  • docker-compose
  • git
  • python3

Getting started

Make a directory called sdx e.g. /users/[your_name]/sdx.

This will contain all the files for the sdx services,

[see configuration]

Open your .bash_profile and add the line: export SDX_HOME=[LOCATION OF SDX FOLDER]

Apply these changes to your bash_profile by doing . ~/.bash_profile

Do cd $SDX_HOME and run the following:

$ git clone [email protected]:ONSdigital/sdx-compose.git
$ cd sdx-compose
$ make

This will attempt to clone the repositories into SDX_HOME and run their Dockerfile's

To git pull all the sdx repos (and to discover what branch each repo is on):

$ make update

To rebuild the services:

$ make build

Once built, you can bring the services up with:

$ make start

Once the services have started, you can access sdx-console on http://localhost. sdx-console is an easy way to test the features of SDX. The login credentials for this service are:

username: admin password: admin

Configuration

sdx-compose is not a service in itself, but requires an environment variable to build and run other services.

Environment variable Default Description
SDX_HOME none The folder to clone service repositories to

See the README files of each service for specific requirements they may have. Each service is defaulted as best to run in the local environment using files under env

Logging

By default, all logging runs to the console. If you wish to re-enable syslog you can do so by uncommenting the logger lines in docker-compose.yml.

If you wish to change the log levels that are visible, then adding the following to env/common.env will change it:

LOGGING_LEVEL=INFO

FTP Storage

Output files are stored locally in the pure-ftp-structure folder. To add new directories , add them here with a file called .placeholder checked into git so that git creates the folder.

Architecture

Main Surveys SDX Architecture

DAP SDX Architecture

SEFT SDX Architecture

License

Copyright ยฉโ€Ž 2016, Office for National Statistics (https://www.ons.gov.uk)

Released under MIT license, see LICENSE for details.

onsdigital.sdx-compose's People

Contributors

ajmaddaford avatar anwilkie avatar atrozzo avatar bitdivision avatar bkhan2 avatar davidcarboni avatar eldeal avatar elliott-jenkins avatar gemmai95 avatar howellsaj avatar insacuri avatar iwootten avatar jamesgardiner avatar jenniferedwards avatar jon-kent avatar jonnyshaw89 avatar jterryons avatar nealedj avatar necrophonic avatar ryangrundy7 avatar tej99 avatar tundish avatar warrenbailey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.