Mount host's sparkdata dir in docker

This commit is contained in:
John Colvin committed 2021-12-29 21:58:21 -05:00
1 parent eee74d82b2
commit 05967d0f18
1 file changed
+3
+3
View File
@@ -17,6 +17,8 @@ fi
# stored in a separate variable for convenience.
declare repo_path="$(cd .. && git rev-parse --show-toplevel && cd $this_dir)"
declare repo_path_out=$repo_path
declare spark_data_path="$HOME/sparkdata"
declare spark_data_path_out=$spark_data_path
# `working_dir` is the starting dir for all docker shells launched via
# `docker exec -it <container> bash`.
declare working_dir=$repo_path_out
@@ -30,6 +32,7 @@ docker run \
--security-opt seccomp=unconfined \
--name $cont_name \
-v $repo_path:$repo_path_out \
-v $spark_data_path:$spark_data_path_out \
-u $(id -u $USER) \
-w $working_dir \
--shm-size=4024m \