Apache DataFusion SQL Query Engine
ARROW-1991: [Website] Fix Docker documentation build
Wes McKinney57c81d438a11
diff --git a/dev/docker-compose.yml b/dev/docker-compose.ymlindex 4b90148940..a73fd1bfbb 100644--- a/dev/docker-compose.yml+++ b/dev/docker-compose.yml@@ -17,7 +17,7 @@version: '3'services:gen_apidocs:- build:+ build:context: gen_apidocsvolumes:- ../..:/apache-arrow@@ -29,7 +29,7 @@ services:volumes:- ../..:/apache-arrowdask_integration:- build:+ build:context: dask_integrationvolumes:- ../..:/apache-arrowdiff --git a/dev/gen_apidocs/Dockerfile b/dev/gen_apidocs/Dockerfileindex ca4718e637..da740ee077 100644--- a/dev/gen_apidocs/Dockerfile+++ b/dev/gen_apidocs/Dockerfile@@ -14,19 +14,24 @@# See the License for the specific language governing permissions and# limitations under the License.#-FROM ubuntu:14.04-# Prerequsites for apt-add-repository-RUN apt-get update && apt-get install -y \- software-properties-common python-software-properties+FROM ubuntu:16.04+# Basic OS dependencies-RUN apt-add-repository -y ppa:ubuntu-toolchain-r/test && \- apt-get update && apt-get install -y \+RUN apt-get update && apt-get install -y \wget \rsync \git \gcc-4.9 \g++-4.9 \- build-essential+ build-essential \+ software-properties-common++# Java build fails with default JDK8+RUN add-apt-repository ppa:openjdk-r/ppa &&\+ apt-get update &&\+ apt-get install -y openjdk-7-jdk &&\+ update-java-alternatives -s java-1.7.0-openjdk-amd64+# This will install conda in /home/ubuntu/minicondaRUN wget -O /tmp/miniconda.sh \https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \@@ -73,6 +78,7 @@ RUN /home/ubuntu/miniconda/bin/conda create -y -q -n pyarrow-dev \doxygen \maven \-c conda-forge+ADD . /apache-arrowWORKDIR /apache-arrowCMD arrow/dev/gen_apidocs/create_documents.shdiff --git a/dev/gen_apidocs/create_documents.sh b/dev/gen_apidocs/create_documents.shindex 566d9cee79..54031262b3 100755--- a/dev/gen_apidocs/create_documents.sh+++ b/dev/gen_apidocs/create_documents.sh@@ -27,6 +27,7 @@ export ARROW_HOME=$(pwd)/distexport PARQUET_HOME=$(pwd)/distCONDA_BASE=/home/ubuntu/minicondaexport LD_LIBRARY_PATH=$(pwd)/dist/lib:${CONDA_BASE}/lib:${LD_LIBRARY_PATH}+export PKG_CONFIG_PATH=$(pwd)/dist/lib/pkgconfig:${PKG_CONFIG_PATH}export PATH=${CONDA_BASE}/bin:${PATH}# Prepare the asf-site before copying api docs@@ -38,16 +39,38 @@ git clone --branch=asf-site \https://git-wip-us.apache.org/repos/asf/arrow-site.git asf-sitepopd+# Make Java documentation+export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64+wget http://mirrors.gigenet.com/apache/maven/maven-3/3.5.2/binaries/apache-maven-3.5.2-bin.tar.gz+tar xvf apache-maven-3.5.2-bin.tar.gz+export PATH=$(pwd)/apache-maven-3.5.2/bin:$PATH++pushd arrow/java+rm -rf target/site/apidocs/*+mvn -Drat.skip=true install+mvn -Drat.skip=true site+mkdir -p ../site/asf-site/docs/java/+rsync -r target/site/apidocs/ ../site/asf-site/docs/java/+popd+# Make Python documentation (Depends on C++ )# Build Arrow C++source activate pyarrow-devexport ARROW_BUILD_TOOLCHAIN=$CONDA_PREFIX+export BOOST_ROOT=$CONDA_PREFIXexport PARQUET_BUILD_TOOLCHAIN=$CONDA_PREFIX+export LD_LIBRARY_PATH=$CONDA_PREFIX/lib:${LD_LIBRARY_PATH}+export PKG_CONFIG_PATH=$CONDA_PREFIX/lib/pkgconfig:${PKG_CONFIG_PATH}++export CC=gcc-4.9+export CXX=g++-4.9-rm -rf arrow/cpp/build_docs-mkdir arrow/cpp/build_docs-pushd arrow/cpp/build_docs+CPP_BUILD_DIR=$(pwd)/arrow/cpp/build_docs++rm -rf $CPP_BUILD_DIR+mkdir $CPP_BUILD_DIR+pushd $CPP_BUILD_DIRcmake -DCMAKE_BUILD_TYPE=$ARROW_BUILD_TYPE \-DCMAKE_INSTALL_PREFIX=$ARROW_HOME \-DARROW_PYTHON=on \@@ -58,6 +81,28 @@ make -j4make installpopd+# Build c_glib documentation+pushd arrow/c_glib+if [ -f Makefile ]; then+ # Ensure updating to prevent auto re-configure+ touch configure **/Makefile+ make distclean+ # Work around for 'make distclean' removes doc/reference/xml/+ git checkout doc/reference/xml+fi+./autogen.sh+rm -rf build_docs+mkdir build_docs+pushd build_docs+../configure \+ --prefix=${AROW_HOME} \+ --enable-gtk-doc+make -j4 GTK_DOC_V_XREF=": "+mkdir -p ../../site/asf-site/docs/c_glib+rsync -r doc/reference/html/ ../../site/asf-site/docs/c_glib+popd+popd+# Build Parquet C++rm -rf parquet-cpp/build_docsmkdir parquet-cpp/build_docs@@ -83,19 +128,6 @@ mkdir -p ../site/asf-site/docs/pythonrsync -r doc/_build/html/ ../site/asf-site/docs/pythonpopd-# Build c_glib documentation-pushd arrow/c_glib-rm -rf doc/reference/html/*-./autogen.sh-./configure \- --with-arrow-cpp-build-dir=$(pwd)/../cpp/build \- --with-arrow-cpp-build-type=$ARROW_BUILD_TYPE \- --enable-gtk-doc-LD_LIBRARY_PATH=$(pwd)/../cpp/build/$ARROW_BUILD_TYPE make GTK_DOC_V_XREF=": "-mkdir -p ../site/asf-site/docs/c_glib-rsync -r doc/reference/html/ ../site/asf-site/docs/c_glib-popd-# Make C++ documentationpushd arrow/cpp/apidocrm -rf html/*@@ -103,12 +135,3 @@ doxygen Doxyfilemkdir -p ../../site/asf-site/docs/cpprsync -r html/ ../../site/asf-site/docs/cpppopd--# Make Java documentation-pushd arrow/java-rm -rf target/site/apidocs/*-mvn -Drat.skip=true install-mvn -Drat.skip=true site-mkdir -p ../site/asf-site/docs/java/-rsync -r target/site/apidocs/ ../site/asf-site/docs/java/-popddiff --git a/dev/release/RELEASE_MANAGEMENT.md b/dev/release/RELEASE_MANAGEMENT.mdindex 73eaf5f95b..0f8c2202fe 100644--- a/dev/release/RELEASE_MANAGEMENT.md+++ b/dev/release/RELEASE_MANAGEMENT.md@@ -112,6 +112,15 @@ software must be built in order to create the documentation, so thisstep may take some time to run, especially the first time around as theDocker container will also have to be built.+To upload the updated documentation to the website, navigate to `site/asf-site`+and commit all changes:++```+pushd site/asf-site+git add .+git commit -m "Updated API documentation for version X.Y.Z"+```+After successfully creating the API documentation the website can berun locally to browse the API documentation from the top level`Documentation` menu. To run the website issue the command: