Skip to content

Commit

Permalink
tmp_volume
Browse files Browse the repository at this point in the history
  • Loading branch information
hugolatendresse committed Dec 8, 2024
1 parent 381d3cd commit 6309e70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,5 @@ fine_grained_alignment_config.json

# CLion
.idea/
cmake-build-debug
cmake-build-debug
cmake-build-debug-remote-host
6 changes: 3 additions & 3 deletions docker/run-persistent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,17 @@ if [[ "$(docker images -q "${image}-${FF_GPU_BACKEND}${gpu_backend_version}":lat
exit 1
fi

#cache_volume="-v ${HOME}/.cache:/root/.cache"
#home_volume="-v ${HOME}/dockerhome:/home"
cache_volume="-v cache_volume:/root/.cache"
home_volume="-v home_volume:/home"
tmp_volume="-v tmp_volume:/tmp"


ssh_key_volume=""
ssh_key_path="$HOME/.ssh/id_rsa"
if [ -f "$ssh_key_path" ] && [ -f "$ssh_key_path.pub" ]; then
ssh_key_volume="-v $ssh_key_path:/root/.ssh/id_rsa -v $ssh_key_path.pub:/root/.ssh/id_rsa.pub"
fi

docker_command="docker run -it -p 2222:22 $gpu_arg --shm-size=${SHM_SIZE} --cap-add=SYS_PTRACE ${ssh_key_volume} ${cache_volume} ${home_volume} ${port_forward_arg} ${image}-${FF_GPU_BACKEND}${gpu_backend_version}:latest"
docker_command="docker run -it -p 2222:22 $gpu_arg --shm-size=${SHM_SIZE} --cap-add=SYS_PTRACE ${ssh_key_volume} ${cache_volume} ${home_volume} ${tmp_volume} ${port_forward_arg} ${image}-${FF_GPU_BACKEND}${gpu_backend_version}:latest"
echo "$docker_command"
eval "$docker_command"

0 comments on commit 6309e70

Please sign in to comment.