This is an automated email from the ASF dual-hosted git repository.
kszucs pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new ef28f20 ARROW-4618: [Docker] Makefile to build dependent docker images
ef28f20 is described below
commit ef28f201cf19001a8045f059a0936740c13bba7e
Author: Krisztián Szűcs <[email protected]>
AuthorDate: Tue Feb 19 20:43:56 2019 +0100
ARROW-4618: [Docker] Makefile to build dependent docker images
A **rudimentary** Makefile to support single command builds of development
docker images, because docker compose cannot be used to build image hierarchies:
- https://github.com/docker/compose/issues/6093
- https://github.com/docker/compose/issues/6264#issuecomment-429268195
We can also wrap it in another script and/or rename the Makefile to prevent
misunderstanding that it's only for the docker images.
Author: Krisztián Szűcs <[email protected]>
Closes #3696 from kszucs/ARROW-4618 and squashes the following commits:
81f4139c <Krisztián Szűcs> rename
ac6b261c <Krisztián Szűcs> license header
58e45075 <Krisztián Szűcs> makefile for building docker images
---
Makefile.docker | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 85 insertions(+)
diff --git a/Makefile.docker b/Makefile.docker
new file mode 100644
index 0000000..dc1f0bf
--- /dev/null
+++ b/Makefile.docker
@@ -0,0 +1,85 @@
+# 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.
+
+# build docker compose images:
+# $ make -f Makefile.docker cpp
+# run the built image:
+# $ make -f Makefile.docker run cpp
+
+.PHONY: clean run cpp cpp-alpine go js java rust r
+
+DC := docker-compose
+
+clean:
+ $(DC) down -v
+
+run:
+ $(DC) run --rm $(filter-out $@,$(MAKECMDGOALS))
+
+go:
+ $(DC) build go
+
+js:
+ $(DC) build js
+
+java:
+ $(DC) build java
+
+rust:
+ $(DC) build rust
+
+cpp:
+ $(DC) build cpp
+
+cpp-alpine:
+ $(DC) build cpp-alpine
+
+cpp-cmake32:
+ $(DC) build cpp-cmake32
+
+c_glib: cpp
+ $(DC) build c_glib
+
+r: cpp
+ $(DC) build r
+
+python: cpp
+ $(DC) build python
+
+python-alpine: cpp-alpine
+ $(DC) build python-alpine
+
+lint: python
+ $(DC) build lint
+
+iwyu: lint
+
+clang-format: lint
+
+docs: python
+
+dask: python
+ $(DC) build dask
+
+hdfs: python
+ $(DC) build hdfs-integration
+
+spark: python
+ $(DC) build spark-integration
+
+pandas-master: python
+ $(DC) build --no-cache pandas-master