You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by al...@apache.org on 2021/06/02 20:42:19 UTC

[arrow-datafusion] branch master updated: make `VOLUME` declaration in docker absolute (#466)

This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git


The following commit(s) were added to refs/heads/master by this push:
     new 265699f  make `VOLUME` declaration in docker absolute (#466)
265699f is described below

commit 265699f8c6c92fa53e06acd8b70acde108a8cd20
Author: Marco Neumann <ma...@crepererum.net>
AuthorDate: Wed Jun 2 22:42:11 2021 +0200

    make `VOLUME` declaration in docker absolute (#466)
    
    Otherwise some docker versions complain about:
    
    ```text
    docker: Error response from daemon: failed to create shim: OCI runtime create failed: invalid mount {Destination:data Type:bind Source:/var/lib/docker/volumes/8c57860badfdf66bd32f64fe4b22970bcbb1f0f13a5d134ec451458a823dec6f/_data Options:[rbind]}: mount destination data not absolute: unknown.
    ```
    
    Also see docs for `VOLUME` which suggest this path should be absolute: https://docs.docker.com/engine/reference/builder/#volume
    
    Fixes #465.
---
 benchmarks/tpchgen.dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/benchmarks/tpchgen.dockerfile b/benchmarks/tpchgen.dockerfile
index 7fc2e50..6943470 100644
--- a/benchmarks/tpchgen.dockerfile
+++ b/benchmarks/tpchgen.dockerfile
@@ -27,6 +27,6 @@ RUN git clone https://github.com/databricks/tpch-dbgen.git && \
 WORKDIR /tpch-dbgen
 ADD entrypoint.sh /tpch-dbgen/
 
-VOLUME data
+VOLUME /data
 
 ENTRYPOINT [ "bash", "./entrypoint.sh" ]