Apache DataFusion SQL Query Engine
ARROW-3465: [Documentation] Fix gen_apidocs' docker image
Krisztián Szűcsed5df8d56e87
diff --git a/dev/docker-compose.yml b/dev/docker-compose.ymlindex 5e5fdc2ef0..a11b4015c5 100644--- a/dev/docker-compose.yml+++ b/dev/docker-compose.yml@@ -45,9 +45,10 @@ services:gen_apidocs:build:- context: gen_apidocs+ context: ..+ dockerfile: dev/gen_apidocs/Dockerfilevolumes:- - ../..:/apache-arrow+ - ..:/arrowiwyu:build:diff --git a/dev/gen_apidocs/Dockerfile b/dev/gen_apidocs/Dockerfileindex 606ae2e266..7daadf1fbe 100644--- a/dev/gen_apidocs/Dockerfile+++ b/dev/gen_apidocs/Dockerfile@@ -21,42 +21,43 @@ FROM ubuntu:18.04# Otherwise this will install openjdk 8 and openjdk 11 at once.RUN apt-get update && \apt-get install -y openjdk-8-jdk-headless && \- apt-get install -y \- gcc-8 \- g++-8 \- vim \- git \- wget \- make \- ninja-build \- rsync \- maven \- pkg-config \- gobject-introspection \- libgirepository1.0-dev \- gtk-doc-tools \- libtool \- autoconf-archive \- npm+ apt-get install -y \+ gcc-8 \+ g++-8 \+ git \+ wget \+ make \+ ninja-build \+ rsync \+ maven \+ pkg-config \+ gobject-introspection \+ libgirepository1.0-dev \+ gtk-doc-tools \+ libtool \+ autoconf-archive \+ npm+ENV CC=gcc-8 \+ CXX=g++-8 \+ PATH=/opt/conda/bin:$PATH \+ CONDA_PREFIX=/opt/conda-ENV CC=gcc-8-ENV CXX=g++-8--ADD . /apache-arrow-WORKDIR /apache-arrow--RUN arrow/dev/docker_common/install_pyarrow_conda_toolchain.sh 3.6-ENV PATH="/opt/conda/bin:${PATH}"--# Python dependencies-# Create Conda environment-RUN /home/ubuntu/miniconda/bin/conda create -y -q -n pyarrow-dev \+ADD ci/docker_install_conda.sh \+ ci/conda_env_cpp.yml \+ ci/conda_env_python.yml \+ /arrow/ci/+RUN arrow/ci/docker_install_conda.sh && \+ conda install -c conda-forge \+ --file arrow/ci/conda_env_cpp.yml \+ --file arrow/ci/conda_env_python.yml \numpydoc \sphinx \sphinx_bootstrap_theme \doxygen \- maven \- -c conda-forge+ maven && \+ conda clean --all -y++ADD . /arrowCMD arrow/dev/gen_apidocs/create_documents.shdiff --git a/dev/gen_apidocs/create_documents.sh b/dev/gen_apidocs/create_documents.shindex 6ea44947c8..6a3b065788 100755--- a/dev/gen_apidocs/create_documents.sh+++ b/dev/gen_apidocs/create_documents.sh@@ -19,15 +19,12 @@set -ex# Set up environment and output directory for C++ libraries-cd /apache-arrowmkdir -p apidocs-distexport ARROW_BUILD_TYPE=release-export ARROW_HOME=$(pwd)/apidocs-dist-export PARQUET_HOME=$(pwd)/apidocs-dist-CONDA_BASE=/home/ubuntu/miniconda-export PKG_CONFIG_PATH=$(pwd)/apidocs-dist/lib/pkgconfig:${PKG_CONFIG_PATH}-export PATH=${CONDA_BASE}/bin:${PATH}+export ARROW_HOME=/apidocs-dist+export PARQUET_HOME=/apidocs-dist+export PKG_CONFIG_PATH=/apidocs-dist/lib/pkgconfig:${PKG_CONFIG_PATH}# For newer GCC per https://arrow.apache.org/docs/python/development.html#known-issuesexport CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0"@@ -48,24 +45,25 @@ popd# Make Python documentation (Depends on C++ )# Build Arrow C++-conda activate pyarrow-devexport ARROW_BUILD_TOOLCHAIN=$CONDA_PREFIX-export PARQUET_BUILD_TOOLCHAIN=$CONDA_PREFIX-export LD_LIBRARY_PATH=$(pwd)/apidocs-dist/lib:${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}+export LD_LIBRARY_PATH=/apidocs-dist/lib:${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}export PKG_CONFIG_PATH=${CONDA_PREFIX}/lib/pkgconfig:${PKG_CONFIG_PATH}-export PKG_CONFIG_PATH=$(pwd)/apidocs-dist/lib/pkgconfig:${PKG_CONFIG_PATH}+export PKG_CONFIG_PATH=/apidocs-dist/lib/pkgconfig:${PKG_CONFIG_PATH}-CPP_BUILD_DIR=$(pwd)/arrow/cpp/build_apidocs+CPP_BUILD_DIR=arrow/cpp/build_apidocsmkdir -p $CPP_BUILD_DIRpushd $CPP_BUILD_DIRcmake -DCMAKE_BUILD_TYPE=$ARROW_BUILD_TYPE \-DCMAKE_INSTALL_PREFIX=$ARROW_HOME \- -DARROW_PYTHON=on \- -DARROW_PLASMA=on \+ -DARROW_PYTHON=ON \+ -DARROW_PLASMA=ON \+ -DARROW_PARQUET=ON \+ -DARROW_ORC=ON \-DARROW_BUILD_TESTS=OFF \-GNinja \..+ninjaninja installpopd@@ -80,27 +78,15 @@ fimkdir -p build_apidocspushd build_apidocs../configure \- --prefix=${AROW_HOME} \+ --prefix=${ARROW_HOME} \--enable-gtk-docmake -j4 GTK_DOC_V_XREF=": "mkdir -p ../../site/asf-site/docs/c_glib-rsync -r doc/reference/html/ ../../site/asf-site/docs/c_glib+rsync -r doc/arrow-glib/html/ ../../site/asf-site/docs/c_glib/arrow-glib+rsync -r doc/parquet-glib/html/ ../../site/asf-site/docs/c_glib/parquet-glibpopdpopd-# Build Parquet C++-mkdir -p parquet-cpp/build_apidocs-pushd parquet-cpp/build_apidocs-cmake -DCMAKE_BUILD_TYPE=$ARROW_BUILD_TYPE \- -DCMAKE_INSTALL_PREFIX=$PARQUET_HOME \- -DPARQUET_BUILD_BENCHMARKS=off \- -DPARQUET_BUILD_EXECUTABLES=off \- -DPARQUET_BUILD_TESTS=off \- -GNinja \- ..-ninja install-popd-# Now Python documentation can be builtpushd arrow/pythonpython setup.py build_ext --build-type=$ARROW_BUILD_TYPE \diff --git a/site/_docs/c_glib/index.md b/site/_docs/c_glib/index.mdnew file mode 100644index 0000000000..e92788b829--- /dev/null+++ b/site/_docs/c_glib/index.md@@ -0,0 +1,36 @@+---+layout: docs+title: Apache Arrow GLib (C)+permalink: /docs/c_glib/index.html+---+<!--+{% comment %}+Licensed to the Apache Software Foundation (ASF) under one or more+contributor license agreements. See the NOTICE file distributed with+this work for additional information regarding copyright ownership.+The ASF licenses this file to you under the Apache License, Version 2.0+(the "License"); you may not use this file except in compliance with+the License. You may obtain a copy of the License at++http://www.apache.org/licenses/LICENSE-2.0++Unless required by applicable law or agreed to in writing, software+distributed under the License is distributed on an "AS IS" BASIS,+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+See the License for the specific language governing permissions and+limitations under the License.+{% endcomment %}+-->++# Apache Arrow GLib (C)++Apache Arrow GLib is a wrapper library for Apache Arrow C++. Apache Arrow GLib provides C API.++Apache Arrow GLib supports [GObject Introspection][gobject-introspection]. It means that you can create language bindings at runtime or compile time automatically.++## API reference manuals++ * [Apache Arrow GLib](arrow-glib/)+ * [Apache Parquet GLib](parquet-glib/)++[gobject-introspection]: https://wiki.gnome.org/action/show/Projects/GObjectIntrospection