Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARROW-3366: [R] Dockerfile for docker-compose setup #2770

Closed
wants to merge 13 commits into from
Prev Previous commit
Next Next commit
Put R build steps into a separate CI script
  • Loading branch information
jameslamb committed Nov 17, 2018
commit 8a8376d65041a971f1fe0266983366256908cc07
35 changes: 35 additions & 0 deletions ci/docker_build_r.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/usr/bin/env bash
# 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.

set -e

export ARROW_BUILD_TOOLCHAIN=$CONDA_PREFIX
export ARROW_HOME=$CONDA_PREFIX

# For newer GCC per https://arrow.apache.org/docs/python/development.html#known-issues
export CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0"

# Build arrow
pushd /arrow/r

Rscript -e "Rcpp::compileAttributes()"
R CMD build --keep-empty-dirs .
R CMD INSTALL $(ls | grep arrow_*.tar.gz)
R CMD check $(ls | grep arrow_*.tar.gz) --as-cran

popd
5 changes: 1 addition & 4 deletions r/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,4 @@ ENV LD_LIBRARY_PATH=/opt/conda/lib/:/build/cpp/src/arrow:/arrow/r/src

# build, install, test R package
CMD /arrow/ci/docker_build_cpp.sh && \
Rscript -e "Rcpp::compileAttributes('/arrow/r')" && \
R CMD build --keep-empty-dirs /arrow/r && \
R CMD INSTALL $(ls | grep arrow_*.tar.gz) && \
R CMD check $(ls | grep arrow_*.tar.gz) --as-cran
/arrow/ci/docker_build_r.sh