diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b5cadc2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +#FROM centos:7 +#RUN yum install -y epel-release +#RUN yum install -y sqlite-devel +#RUN yum install -y gcc gcc-c++ meson +#COPY ci/arrow-centos.repo /etc/yum.repos.d/Apache-Arrow.repo +#RUN yum install -y parquet-devel +FROM ubuntu:16.04 +RUN apt-get update && apt-get install -y apt-transport-https curl gnupg lsb-release pkg-config libsqlite3-dev libicu-dev gcc g++ meson +COPY ci/arrow-ubuntu16.04.list /etc/apt/sources.list.d/apache-arrow.list +RUN curl https://dist.apache.org/repos/dist/dev/arrow/KEYS | apt-key add - && apt-get update && apt-get install -y libparquet-dev + +#https://apache.bintray.com/arrow/centos/7/x86_64/Packages/parquet-devel-0.14.1-1.el7.x86_64.rpm https://apache.bintray.com/arrow/centos/7/x86_64/Packages/parquet-libs-0.14.1-1.el7.x86_64.rpm https://apache.bintray.com/arrow/centos/7/x86_64/Packages/arrow-libs-0.14.1-1.el7.x86_64.rpm https://apache.bintray.com/arrow/centos/7/x86_64/Packages/arrow-glib-libs-0.14.1-1.el7.x86_64.rpm https://apache.bintray.com/arrow/centos/7/x86_64/Packages/arrow-glib-devel-0.14.1-1.el7.x86_64.rpm https://apache.bintray.com/arrow/centos/7/x86_64/Packages/arrow-devel-0.14.1-1.el7.x86_64.rpm +#COPY ci/arrow-centos.repo //yum.repos.d/Apache-Arrow.repo +#RUN yum install -y epel-release && yum install -y --enablerepo=epel parquet-devel +WORKDIR /src/ +VOLUME /src +CMD mkdir builddir && meson builddir && cd builddir && ninja diff --git a/ci/arrow-centos.repo b/ci/arrow-centos.repo new file mode 100644 index 0000000..800f458 --- /dev/null +++ b/ci/arrow-centos.repo @@ -0,0 +1,6 @@ +[apache-arrow] +name=Apache Arrow +baseurl=https://dl.bintray.com/apache/arrow/centos/\$releasever/\$basearch/ +gpgcheck=1 +enabled=1 +gpgkey=https://dl.bintray.com/apache/arrow/centos/RPM-GPG-KEY-apache-arrow diff --git a/ci/arrow-ubuntu16.04.list b/ci/arrow-ubuntu16.04.list new file mode 100644 index 0000000..e558d82 --- /dev/null +++ b/ci/arrow-ubuntu16.04.list @@ -0,0 +1 @@ +deb [arch=amd64] https://dl.bintray.com/apache/arrow/ubuntu/ xenial main deb-src https://dl.bintray.com/apache/arrow/ubuntu/ xenial main diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..61f0c32 --- /dev/null +++ b/meson.build @@ -0,0 +1,8 @@ +project('sqlite-parquet-vtable', 'c', 'cpp', default_options:['c_std=c11', 'cpp_std=c++11']) +parquet = dependency('parquet') +sqlite = dependency('sqlite3') +icu = dependency('icu-i18n') +shared_library('sqlite-parquet-vtable', + dependencies:[parquet, sqlite, icu], + sources: ['src/parquet.cc', 'src/parquet_cursor.cc', 'src/parquet_filter.cc', 'src/parquet_table.cc'] +)