-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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-3180: [C++] Add docker-compose setup to simulate Travis CI run locally #2572
Conversation
@wesm could You take a look at this docker-compose setup? Executing It's also possible to mount arrow externally for an editable setup: docker-compose run -v local/path/to/arrow:/arrow python
Ideally "the rest" of the containers should be ported too. |
@kszucs thanks a lot for working on this. I will take it for a spin when I can and report back feedback |
Sadly we can't chain the builds to depend on each other purely with docker compose e.g.: |
TODO: crossbow should have its own image |
I'm working on code reviews, but hope to get to this soon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, thanks, this is good progress modularizing these dockerfiles! I think the hope of getting everything 100% working on one patch is a lot to ask, but we can work toward it in follow-up PRs. Will merge once the build passes
We should add a small word about these files to the docs. |
The JS build fails for me:
|
He mentioned that the JS build is broken in the PR description |
Well, I'm a JS noob :) Strange that the js build works outside of the docker container, I've tried to tune the dockerignore file to include all required packaging files in the image, but sadly with no luck. Created issues for the follow-up tasks:
|
The Plasma tests all fail for me, I tried adding diff --git a/docker-compose.yml b/docker-compose.yml
index 93ec11ac..394d3fda 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-version: '3'
+version: '3.5'
services:
# we can further improve the caching mechanism for go rust and js via
@@ -59,6 +59,7 @@ services:
build:
context: .
dockerfile: python/Dockerfile
+ shm_size: '2gb'
args:
PYTHON_VERSION: ${PYTHON_VERSION:-3.6} |
It indeed ignores shm_size. What's your docker engine? Are You using docker on mac or docker-machine? |
Docker on mac: 18.06.1-ce-mac73 |
When running the manylinux images using |
Same for me, it can be a docker on mac issue. I'm spinning up a linux box... |
|
||
python: | ||
image: arrow:python-${PYTHON_VERSION:-3.6} | ||
shm_size: 2G |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xhochy docker has a "great" documentation, it should't be placed under build
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, Python tests now also pass for me.
Cool! |
@xhochy CI error is related to the wheel issue |
Change-Id: I355c38a0aac222a000a471674a43af95ab802989
Codecov Report
@@ Coverage Diff @@
## master #2572 +/- ##
==========================================
+ Coverage 87.22% 87.23% +0.01%
==========================================
Files 381 381
Lines 59431 59432 +1
==========================================
+ Hits 51836 51847 +11
+ Misses 7521 7515 -6
+ Partials 74 70 -4
Continue to review full report at Codecov.
|
Thanks everyone. This will help a lot |
Thank you to @romainfrancois and others who have pushed forward the R side of this project! This PR is my attempt to address [ARROW-3336](https://issues.apache.org/jira/projects/ARROW/issues/ARROW-3366), providing a testing container for the R package. This follows up on work done by @kszucs in #2572 in an R-specific way. **NOTE:** This PR is a WIP. `R CMD INSTALL` currently fails because it cannot find wherever I installed `arrow` to. But I felt that this is far enough along to put up for review. Author: James Lamb <jaylamb20@gmail.com> Author: Krisztián Szűcs <szucs.krisztian@gmail.com> Closes #2770 from jameslamb/r_dockerfile and squashes the following commits: 9fcebe5 <James Lamb> removed failing test in the R package dd26d4b <James Lamb> fixed failing test in the R package 343456a <James Lamb> more changes 0db3369 <James Lamb> added bit64 dependency to R package f7c050e <Krisztián Szűcs> R_CHECK_FORCE_SUGGESTS db9ee5b <Krisztián Szűcs> pass CXXFLAGS 8a8376d <James Lamb> Put R build steps into a separate CI script 64ea840 <James Lamb> Updated LD_LIBRARY_PATH in R container 4d7f02c <James Lamb> fixed a few issues in R container 94242b3 <James Lamb> Add explict cpp build in usage for R docker-compose 4a7112b <James Lamb> Fixed comment text in R Dockerfile d8e55d7 <James Lamb> removed todo about R containers in docker-compose 210a774 <James Lamb> ARROW-3366: Dockerfile for docker-compose setup
Also resolves:
Working:
The rest:
Perhaps resolve them in follow-up PRs.