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
pass CXXFLAGS
  • Loading branch information
kszucs authored and jameslamb committed Nov 17, 2018
commit db9ee5bac172de2d12248e89be9b64cd84324d80
1 change: 1 addition & 0 deletions ci/docker_build_r.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ 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"
export PKG_CXXFLAGS=$CXXFLAGS

# Build arrow
pushd /arrow/r
Expand Down
7 changes: 4 additions & 3 deletions r/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ ENV DEBIAN_FRONTEND=noninteractive
# Build R
# [1] https://www.digitalocean.com/community/tutorials/how-to-install-r-on-ubuntu-18-04
# [2] https://linuxize.com/post/how-to-install-r-on-ubuntu-18-04/#installing-r-packages-from-cran
RUN apt install -y \
apt-transport-https \
software-properties-common && \
RUN apt update && \
apt install -y \
apt-transport-https \
software-properties-common && \
apt-key adv \
--keyserver keyserver.ubuntu.com \
--recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 && \
Expand Down
2 changes: 1 addition & 1 deletion r/src/Makevars.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
# under the License.

PKG_CPPFLAGS=@cflags@
PKG_CXXFLAGS=$(C_VISIBILITY)
PKG_CXXFLAGS+=$(C_VISIBILITY)
jameslamb marked this conversation as resolved.
Show resolved Hide resolved
CXX_STD=CXX11
PKG_LIBS=@libs@ -Wl,-rpath,/usr/local/lib