From 13a224f20ad1b5ca6dfe536eb1693f98156fa530 Mon Sep 17 00:00:00 2001 From: Alejandro Do Nascimento Mora Date: Tue, 14 May 2024 15:28:59 +0200 Subject: [PATCH] Add install docs --- README.md | 147 ++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 138 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 7102bdb..44a9f4b 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,147 @@ -## timescaledb-parallel-copy +# timescaledb-parallel-copy `timescaledb-parallel-copy` is a command line program for parallelizing PostgreSQL's built-in `COPY` functionality for bulk inserting data into [TimescaleDB.](//github.com/timescale/timescaledb/) -### Getting started +## Installation + +### Docker + +```sh +docker pull timescale/timescaledb-parallel-copy +``` + +### Go + You need the Go runtime (1.13+) installed, then simply `go get` this repo: -```bash -$ go install github.com/timescale/timescaledb-parallel-copy/cmd/timescaledb-parallel-copy@latest + +```sh +go install github.com/timescale/timescaledb-parallel-copy/cmd/timescaledb-parallel-copy@latest +``` + +### Brew + +- Add the TimescaleDB Homebrew tap. + +```sh +brew tap timescale/tap +``` + +- Install timescaledb-parallel-copy. + +```sh +brew install timescaledb-tools +``` + +### Debian + +- Install packages needed for the installation. + +```sh +sudo apt install gnupg lsb-release wget +``` + +- Add the TimescaleDB repository. + +```sh +echo "deb https://packagecloud.io/timescale/timescaledb/debian/ $(lsb_release -c -s) main" | sudo tee /etc/apt/sources.list.d/timescaledb.list +``` + +- Install the TimescaleDB GPG key. + +```sh +wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/timescaledb.gpg +``` + +- Install the tools package which contains `timescaledb-parallel-copy`. + +```sh +sudo apt install timescaledb-tools ``` +### Ubuntu + +- Install packages needed for the installation. + +```sh +sudo apt install gnupg lsb-release wget +``` + +- Add the TimescaleDB repository. + +```sh +echo "deb https://packagecloud.io/timescale/timescaledb/ubuntu/ $(lsb_release -c -s) main" | sudo tee /etc/apt/sources.list.d/timescaledb.list +``` + +- Install the TimescaleDB GPG key. + +```sh +wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/timescaledb.gpg +``` + +- Install the tools package which contains `timescaledb-parallel-copy`. + +```sh +sudo apt install timescaledb-tools +``` + +### RedHat + +- Add the TimescaleDB repository. + +```sh +sudo tee /etc/yum.repos.d/timescale_timescaledb.repo <