-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-3364: [Docs] Add docker-compose integration documentation
Author: François Saint-Jacques <fsaintjacques@gmail.com> Closes #3882 from fsaintjacques/ARROW-3364-docker-compose-documentation and squashes the following commits: 08f91ff <François Saint-Jacques> Simplify makefile 595d50a <François Saint-Jacques> Refactor ambiguous makefile run target 9d90bba <François Saint-Jacques> ARROW-3364: Add docker-compose integration documentation
- Loading branch information
1 parent
d2e1ee9
commit 9198f63
Showing
5 changed files
with
130 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.. 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. | ||
Developing Apache Arrow | ||
======================= | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
integration | ||
documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
.. 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. | ||
Integration Testing | ||
=================== | ||
|
||
Prerequisites | ||
------------- | ||
|
||
Arrow uses `Docker <https://docs.docker.com/>`_ and | ||
`docker-compose <https://docs.docker.com/compose/>`_ for integration testing. | ||
You can follow the installation `instructions <https://docs.docker.com/compose/install/>`_. | ||
|
||
Docker images (services) | ||
------------------------ | ||
|
||
The docker-compose services are defined in the ``docker-compose.yml`` file. | ||
Each service usually correspond to a language binding or an important service to | ||
test with Arrow. | ||
|
||
Services are configured with 2 local mounts, ``/arrow`` for the top-level source | ||
directory and ``/build`` for caching build artifacts. The source level | ||
directory mount can be paired with git checkout to test a specific commit. The | ||
build mount is used for caching and sharing state between staged images. | ||
|
||
- *c_glib*: Builds the GLib bindings | ||
- *cpp*: Builds the C++ project | ||
- *go*: Builds the go project | ||
- *java*: Builds the Java project | ||
- *js*: Builds the Javascript project | ||
- *python*: Builds the python bindings | ||
- *r*: Builds the R bindings | ||
- *rust*: Builds the rust project | ||
- *lint*: Run various lint on the C++ sources | ||
- *iwyu*: Run include-what-you-use on the C++ sources | ||
- *clang-format*: Run clang-format on the C++ sources | ||
- *docs*: Builds this documentation | ||
|
||
You can build and run a service by using the `build` and `run` docker-compose | ||
sub-command, e.g. `docker-compose build python && docker-compose run python`. | ||
We do not publish the build images, you need to build them manually. This | ||
method requires the user to build the images in reverse dependency order. To | ||
simplify this, we provide a Makefile. | ||
|
||
.. code-block:: shell | ||
# Build and run manually | ||
docker-compose build cpp | ||
docker-compose build python | ||
docker-compose run python | ||
# Using the makefile with proper image dependency resolution | ||
make -f Makefile.docker python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters