mirror of https://github.com/citusdata/citus.git
Merge pull request #421 from citusdata/ocd-identation
Proper indentation for code blocks in listspull/1938/head
commit
a83c7dd31d
|
@ -18,75 +18,75 @@ why we ask this as well as instructions for how to proceed, see the
|
||||||
1. Install Xcode
|
1. Install Xcode
|
||||||
2. Install packages with Homebrew
|
2. Install packages with Homebrew
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
brew update
|
brew update
|
||||||
brew install git postgresql
|
brew install git postgresql
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Get, build, and test the code
|
3. Get, build, and test the code
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/citusdata/citus.git
|
git clone https://github.com/citusdata/citus.git
|
||||||
|
|
||||||
cd citus
|
cd citus
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
cd src/test/regress
|
cd src/test/regress
|
||||||
make check
|
make check
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Debian-based Linux (Ubuntu, Debian)
|
#### Debian-based Linux (Ubuntu, Debian)
|
||||||
|
|
||||||
1. Install build dependencies
|
1. Install build dependencies
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" | \
|
echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" | \
|
||||||
sudo tee /etc/apt/sources.list.d/pgdg.list
|
sudo tee /etc/apt/sources.list.d/pgdg.list
|
||||||
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | \
|
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | \
|
||||||
sudo apt-key add -
|
sudo apt-key add -
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|
||||||
sudo apt-get install -y postgresql-server-dev-9.5 postgresql-9.5 \
|
sudo apt-get install -y postgresql-server-dev-9.5 postgresql-9.5 \
|
||||||
libedit-dev libselinux1-dev libxslt-dev \
|
libedit-dev libselinux1-dev libxslt-dev \
|
||||||
libpam0g-dev git flex make
|
libpam0g-dev git flex make
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Get, build, and test the code
|
2. Get, build, and test the code
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/citusdata/citus.git
|
git clone https://github.com/citusdata/citus.git
|
||||||
cd citus
|
cd citus
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
cd src/test/regress
|
cd src/test/regress
|
||||||
make check
|
make check
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Red Hat-based Linux (RHEL, CentOS, Fedora)
|
#### Red Hat-based Linux (RHEL, CentOS, Fedora)
|
||||||
|
|
||||||
1. Find the PostgreSQL 9.5 RPM URL for your repo at [yum.postgresql.org](http://yum.postgresql.org/repopackages.php#pg95)
|
1. Find the PostgreSQL 9.5 RPM URL for your repo at [yum.postgresql.org](http://yum.postgresql.org/repopackages.php#pg95)
|
||||||
2. Register its contents with Yum:
|
2. Register its contents with Yum:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo yum install -y <url>
|
sudo yum install -y <url>
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Install build dependencies
|
3. Install build dependencies
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo yum update -y
|
sudo yum update -y
|
||||||
sudo yum groupinstall -y 'Development Tools'
|
sudo yum groupinstall -y 'Development Tools'
|
||||||
sudo yum install -y postgresql95-devel postgresql95-server \
|
sudo yum install -y postgresql95-devel postgresql95-server \
|
||||||
libxml2-devel libxslt-devel openssl-devel \
|
libxml2-devel libxslt-devel openssl-devel \
|
||||||
pam-devel readline-devel git
|
pam-devel readline-devel git
|
||||||
|
|
||||||
git clone https://github.com/citusdata/citus.git
|
git clone https://github.com/citusdata/citus.git
|
||||||
cd citus
|
cd citus
|
||||||
PG_CONFIG=/usr/pgsql-9.5/bin/pg_config ./configure
|
PG_CONFIG=/usr/pgsql-9.5/bin/pg_config ./configure
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
cd src/test/regress
|
cd src/test/regress
|
||||||
make check
|
make check
|
||||||
```
|
```
|
||||||
|
|
26
README.md
26
README.md
|
@ -38,27 +38,27 @@ To learn more, visit [citusdata.com](https://www.citusdata.com).
|
||||||
|
|
||||||
* Install docker-compose: [Mac][mac_install] | [Linux][linux_install]
|
* Install docker-compose: [Mac][mac_install] | [Linux][linux_install]
|
||||||
* (Mac only) connect to Docker VM
|
* (Mac only) connect to Docker VM
|
||||||
```bash
|
```bash
|
||||||
eval $(docker-machine env default)
|
eval $(docker-machine env default)
|
||||||
```
|
```
|
||||||
|
|
||||||
* Pull and start the docker images
|
* Pull and start the docker images
|
||||||
```bash
|
```bash
|
||||||
wget https://raw.githubusercontent.com/citusdata/docker/master/docker-compose.yml
|
wget https://raw.githubusercontent.com/citusdata/docker/master/docker-compose.yml
|
||||||
docker-compose -p citus up -d
|
docker-compose -p citus up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
* Connect to the master database
|
* Connect to the master database
|
||||||
```bash
|
```bash
|
||||||
docker exec -it citus_master psql -U postgres -d postgres
|
docker exec -it citus_master psql -U postgres -d postgres
|
||||||
```
|
```
|
||||||
|
|
||||||
* Follow the [first tutorial][tutorial] instructions
|
* Follow the [first tutorial][tutorial] instructions
|
||||||
* To shut the cluster down, run
|
* To shut the cluster down, run
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose -p citus down
|
docker-compose -p citus down
|
||||||
```
|
```
|
||||||
|
|
||||||
### Learn More
|
### Learn More
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue