mirror of
https://github.com/apache/arrow.git
synced 2026-10-28 16:47:19 +08:00
Add minimal C++ build Dockerfile to dev/cpp_minimal
This commit is contained in:
1 parent
9736d3cd1a
commit
64324090cc
4 files changed
+101
No files matched your search
@@ -0,0 +1,34 @@
|
||||
# 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.
|
||||
|
||||
FROM ubuntu:bionic
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get update -y -q && \
|
||||
apt-get install -y -q --no-install-recommends \
|
||||
wget software-properties-common gpg-agent \
|
||||
autoconf \
|
||||
build-essential \
|
||||
ca-certificates \
|
||||
cmake \
|
||||
g++ \
|
||||
gcc \
|
||||
git && \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists*
|
||||
|
||||
CMD ["build.sh"]
|
||||
Whitespace-only changes.
@@ -0,0 +1,24 @@
|
||||
<!---
|
||||
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.
|
||||
-->
|
||||
|
||||
```
|
||||
docker build -t arrow_cpp_minimal .
|
||||
|
||||
docker run --rm -t -i -v $PWD:/io arrow_cpp_minimal /io/build.sh
|
||||
```
|
||||
Executable
+43
@@ -0,0 +1,43 @@
|
||||
#!/bin/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.
|
||||
|
||||
git clone https://github.com/apache/arrow.git
|
||||
|
||||
BUILD_DIR=arrow/cpp/build
|
||||
|
||||
mkdir $BUILD_DIR
|
||||
pushd $BUILD_DIR
|
||||
|
||||
cmake .. -DBOOST_SOURCE=BUNDLED \
|
||||
-DARROW_BOOST_USE_SHARED=OFF \
|
||||
-DARROW_COMPUTE=OFF \
|
||||
-DARROW_DATASET=OFF \
|
||||
-DARROW_JEMALLOC=OFF \
|
||||
-DARROW_JSON=ON \
|
||||
-DARROW_USE_GLOG=OFF \
|
||||
-DARROW_WITH_BZ2=OFF \
|
||||
-DARROW_WITH_ZLIB=OFF \
|
||||
-DARROW_WITH_ZSTD=OFF \
|
||||
-DARROW_WITH_LZ4=OFF \
|
||||
-DARROW_WITH_SNAPPY=OFF \
|
||||
-DARROW_WITH_BROTLI=OFF \
|
||||
-DARROW_BUILD_UTILITIES=OFF
|
||||
|
||||
make -j8
|
||||
|
||||
popd
|
||||
Reference in new issue
Block a user