-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add tool to generate debian buster image with the workaround
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
# | ||
# Workaround due to: | ||
# https://github.com/NVIDIA/nvidia-docker/issues/1399 | ||
# Until nvidia-docker get fixed we need this hack, so dede can see the GPUs | ||
|
||
gen_dockerfile(){ | ||
base=$1 | ||
cat << EOF | ||
FROM $base | ||
USER root | ||
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update -y && apt-get install -y sudo | ||
CMD bash -c "ldconfig; nvidia-smi ; sudo -u dd ./dede -host 0.0.0.0" | ||
EOF | ||
} | ||
|
||
for image in jolibrain/deepdetect_gpu jolibrain/deepdetect_gpu_tensorrt ; do | ||
docker pull ${image} | ||
gen_dockerfile ${image} | docker build -t ${image}_buster_workaround - | ||
done |