| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 09d3401 commit ebd449c
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,9 @@ RUN apt-get update -qq && \ | |||
| 15 | 15 | libtool \ | |
| 16 | 16 | postgresql-server-dev-11 \ | |
| 17 | 17 | libmongoc-1.0.0 \ | |
| 18 | - libmongoc-dev | ||
| 18 | + libmongoc-dev \ | ||
| 19 | + protobuf-c-compiler \ | ||
| 20 | + libprotobuf-c0-dev | ||
| 19 | 21 | ||
| 20 | 22 | RUN wget https://dev.mysql.com/get/mysql-apt-config_0.8.12-1_all.deb | |
| 21 | 23 | RUN echo mysql-apt-config mysql-apt-config/select-server select mysql-8.0 | debconf-set-selections && \ | |
@@ -26,6 +28,8 @@ RUN apt-get update -qq && apt-get install -y libmysqlclient-dev && rm -rf /var/l | |||
| 26 | 28 | RUN mkdir -p /build_scripts | |
| 27 | 29 | COPY build_scripts /build_scripts/ | |
| 28 | 30 | ||
| 31 | + # cstore_fdw | ||
| 32 | + RUN ./build_scripts/fdws/cstore_fdw/build_cstore_fdw.sh | ||
| 29 | 33 | # Mongo FDW | |
| 30 | 34 | RUN ./build_scripts/fdws/mongo_fdw/build_mongo_fdw.sh | |
| 31 | 35 | # MySQL FDW | |
@@ -42,10 +46,18 @@ COPY etc /etc/ | |||
| 42 | 46 | ||
| 43 | 47 | # Splitgraph core libraries (required for the layered querying FDW) | |
| 44 | 48 | # Git submodule | |
| 49 | + | ||
| 50 | + RUN apt-get update -qq && apt-get install -y zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev | ||
| 51 | + | ||
| 52 | + # splitgraph requires python 3.6 | ||
| 53 | + RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash | ||
| 54 | + | ||
| 45 | 55 | COPY splitgraph /splitgraph | |
| 46 | 56 | RUN ./build_scripts/build_splitgraph.sh | |
| 47 | 57 | ||
| 48 | 58 | # Splitgraph init scripts | |
| 49 | 59 | COPY init_scripts /docker-entrypoint-initdb.d/ | |
| 60 | + RUN mkdir -p /var/lib/splitgraph/objects | ||
| 61 | + RUN chmod 777 /var/lib/splitgraph/objects | ||
| 50 | 62 | ||
| 51 | 63 | CMD ["postgres", "-c", "config_file=/etc/postgresql/postgresql.conf"] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,17 +1,19 @@ | |||
| 1 | 1 | #!/bin/bash | |
| 2 | 2 | ||
| 3 | + export PATH="~/.pyenv/bin:$PATH" | ||
| 4 | + eval "$(pyenv init -)" | ||
| 5 | + eval "$(pyenv virtualenv-init -)" | ||
| 6 | + | ||
| 7 | + pyenv install 3.6.8 | ||
| 8 | + pyenv virtualenv 3.6.8 splitgraph | ||
| 9 | + pyenv activate splitgraph | ||
| 10 | + | ||
| 3 | 11 | # Install the Splitgraph library and the layered querying foreign data wrapper. | |
| 4 | 12 | # We could use the Postgres entrypoint system instead but it's run as the non-root user | |
| 5 | 13 | # and this container isn't for the sgr tool anyway. | |
| 6 | 14 | ||
| 7 | 15 | cd /splitgraph | |
| 8 | 16 | ||
| 9 | - ln -s /usr/bin/pip3 /usr/bin/pip | ||
| 10 | - | ||
| 11 | - # Dirty but we use python 3 system-wide | ||
| 12 | - mv /usr/bin/python /usr/bin/python2 | ||
| 13 | - ln -s /usr/bin/python3 /usr/bin/python | ||
| 14 | - | ||
| 15 | 17 | curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python | |
| 16 | 18 | # Install globally (otherwise we'll need to find a way to get Multicorn to see the venv) | |
| 17 | 19 | source $HOME/.poetry/env | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,7 @@ | |||
| 1 | + #!/bin/bash | ||
| 2 | + | ||
| 3 | + git clone https://github.com/citusdata/cstore_fdw.git | ||
| 4 | + cd cstore_fdw | ||
| 5 | + | ||
| 6 | + make | ||
| 7 | + make install | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,3 +4,4 @@ listen_addresses = '*' | |||
| 4 | 4 | port = 5432 | |
| 5 | 5 | ||
| 6 | 6 | hba_file = '/etc/postgresql/pg_hba.conf' | |
| 7 | + shared_preload_libraries = 'cstore_fdw' | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,6 @@ | |||
| 1 | 1 | CREATE EXTENSION postgres_fdw; | |
| 2 | 2 | CREATE EXTENSION mongo_fdw; | |
| 3 | 3 | CREATE EXTENSION mysql_fdw; | |
| 4 | - CREATE EXTENSION multicorn; | ||
| 4 | + CREATE EXTENSION multicorn; | ||
| 5 | + CREATE EXTENSION cstore_fdw; | ||
| 6 | + CREATE SERVER cstore_server FOREIGN DATA WRAPPER cstore_fdw; | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments