Installation

Getting PipelineWise

PipelineWise source code is available on GitHub at https://github.com/transferwise/pipelinewise and can be installed in the following methods:

Warning

PipelineWise is a collection of pre-selected and customised Singer.io components with a config management and runtime framework on top of it. When installing PipelineWise you will also install a bunch of Singer components into a well defined location.

PipelineWise installs Singer.io Taps and Targets components into multiple virtual environments to avoid conflicting dependencies between any of the components. It is common that multiple Singer components use the same python library with different versions.

This also means PipelineWise is not distributed on PyPI as a Python package and cannot be installed by pip. PipelineWise can run from Docker or can be installed from source. In both cases the build and install scripts will create all the virtual environments at the right place in the right format and will take care of finding them at runtime.

Running in Docker

Running PipelineWise from docker is usually the easiest and the recommended method. We will build an executable docker images that has every required dependency and it’s isolated from your host system. First you need to install docker on your computer:

Once Docker is installed you need to clone the PipelineWise git repository and build the executable docker image:

$ git clone https://github.com/transferwise/pipelinewise.git
$ cd ./pipelinewise
$ docker build -t pipelinewise:latest .

Building the image may take 5-10 minutes depending on your network connection. The output image will contain every supporter singer connectors. At the moment there is no official, pre-built image available to download on DockerHub. Once the image is ready, create an alias to the docker wrapper script so you can use the pipelinewise executable commands everywhere on your system:

$ alias pipelinewise="$(pwd)/bin/pipelinewise-docker"

Check if the installation was successfully by running the pipelinewise status command:

$ pipelinewise status

Tap ID    Tap Type      Target ID     Target Type      Enabled    Status    Last Sync    Last Sync Result
--------  ------------  ------------  ---------------  ---------  --------  -----------  ------------------
0 pipeline(s)

From this point, you can go to the Creating Pipelines section to create pipelines and to start replicating data.

Installing from source

When building PipelineWise from source make sure that every OS dependencies are installed:

  • Ubuntu: apt-get install python3-dev python3-pip python3-venv

  • MacOS: brew install python

Clone the PipelineWise git repository and run the install script that installs the PipelineWise CLI and every supported singer connectors into separated virtual environments:

$ git clone https://github.com/transferwise/pipelinewise.git
$ cd ./pipelinewise
$ make pipelinewise all_connectors

Press Y to accept the license agreement of the required singer components. To automate the installation and accept every license agreement run ./install --acceptlicenses.

$ make pipelinewise all_connectors

(...installation usually takes 5-10 minutes...)

--------------------------------------------------------------------------
PipelineWise installed successfully
--------------------------------------------------------------------------

To start CLI:
  $ source /Users/jack/pipelinewise/.virtualenvs/cli/bin/activate
  $ export PIPELINEWISE_HOME=/Users/jack/pipelinewise/.virtualenvs
  $ pipelinewise status

--------------------------------------------------------------------------

Selecting singer connectors

You can install PipelineWise only with required connectors by using the --connectors= argument. For example if you need to replicate data only from MySQL and PostgreSQL into a Snowflake database you can install PipelineWise by running:

$ make pipelinewise connectors -e pw_connector=tap-mysql,tap-postgres,target-snowflake

Warning

Adding components may overwrite the default Apache2 License Version 2.0 terms and conditions. Please always double check license compatibilities and terms of the installed components. More info in the Licenses section.

Here’s the list of the singer connectors and if they are installed by default or not:

Connector

Install Command

Included in default install?

Note

all

./install –connectors=all

Installs every supported connector

tap-github

./install –connectors=tap-github

YES

tap-jira

./install –connectors=tap-jira

YES

tap-kafka

./install –connectors=tap-kafka

YES

tap-mongodb

./install –connectors=tap-mongodb

YES

tap-mysql

./install –connectors=tap-mysql

YES

tap-oracle

./install –connectors=tap-oracle

NO

tap-postgres

./install –connectors=tap-postgres

YES

tap-s3-csv

./install –connectors=tap-s3-csv

YES

tap-salesforce

./install –connectors=tap-salesforce

YES

tap-snowflake

./install –connectors=tap-snowflake

YES

tap-zendesk

./install –connectors=tap-zendesk

YES

tap-zuora

./install –connectors=tap-zuora

NO

tap-google-analytics

./install –connectors=tap-google-analytics

NO

tap-github

./install –connectors=tap-github

YES

tap-slack

./install –connectors=tap-slack

YES

tap-shopify

./install –connectors=tap-shopify

NO

tap-mixpanel

./install –connectors=tap-mixpanel

YES

tap-twilio

./install –connectors=tap-twilio

YES

target-postgres

./install –connectors=target-postgres

YES

target-s3-csv

./install –connectors=target-s3-csv

YES

target-redshift

./install –connectors=target-redshift

YES

target-snowflake

./install –connectors=target-snowflake

YES

transform-field

./install –connectors=transform-field

YES

Warning

When –connectors= argument is not specified then only the default connectors will be installed.

Once the install script finished, you will need to activate the virtual environment with the Command Line Tools and set the PIPELINEWISE_HOME environment variable as it is displayed above at the end of the install script:

$ source /Users/jack/pipelinewise/.virtualenvs/cli/bin/activate
$ export PIPELINEWISE_HOME=/Users/jack/pipelinewise/.virtualenvs
$ pipelinewise status

Tap ID    Tap Type    Target ID    Target Type    Enabled    Status    Last Sync    Last Sync Result
--------  ----------  -----------  -------------  ---------  --------  -----------  ------------------
0 pipeline(s)

If you see that above output saying that you have 0 pipeline in the system then the Installation was successful.

Cool, what’s Next?

From this point, you can go to the Creating Pipelines section to create pipelines and to start replicating data.