You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ks...@apache.org on 2019/03/18 11:37:22 UTC
[arrow] branch master updated: ARROW-4907: [CI] Add docker
container to inspect docker context
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 4705559 ARROW-4907: [CI] Add docker container to inspect docker context
4705559 is described below
commit 4705559f660a141a8312ff364fee727c6cbd4a62
Author: Uwe L. Korn <uw...@xhochy.com>
AuthorDate: Mon Mar 18 12:37:12 2019 +0100
ARROW-4907: [CI] Add docker container to inspect docker context
Author: Uwe L. Korn <uw...@xhochy.com>
Closes #3931 from xhochy/ARROW-4907 and squashes the following commits:
4669b051 <Uwe L. Korn> ARROW-4907: Add docker container to inspect docker context ]
---
dev/Dockerfile.context | 21 +++++++++++++++++++++
docker-compose.yml | 18 ++++++++++++++++++
2 files changed, 39 insertions(+)
diff --git a/dev/Dockerfile.context b/dev/Dockerfile.context
new file mode 100644
index 0000000..f0e7cdd
--- /dev/null
+++ b/dev/Dockerfile.context
@@ -0,0 +1,21 @@
+# 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:latest
+
+COPY . /context
+CMD du -sh /context/*
diff --git a/docker-compose.yml b/docker-compose.yml
index 0217e74..44d0d7f 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -68,6 +68,24 @@ volumes:
spark-cache:
services:
+ ######################### Helper Containers #################################
+
+ build-context:
+ # The performance of the docker containers often depends on the size of the
+ # build context. This is a helper container that adds the full build context
+ # into the /context folder.
+ #
+ # One can inspect the folder and add files that should not be in the context
+ # to .dockerignore.
+ #
+ # Usage:
+ # docker-compose build build-context
+ # docker-compose run build-context
+ image: arrow:build-context
+ build:
+ context: .
+ dockerfile: dev/Dockerfile.context
+
######################### Language Containers ###############################
c_glib: