Commit 7a30ebf9 authored by Romulo Pereira Goncalves's avatar Romulo Pereira Goncalves
Browse files

Run privileged mode

parent 9f239c78
......@@ -15,7 +15,7 @@ install.packages("https://cran.r-project.org/src/contrib/Archive/rgdal/rgdal_1.5
library(remotes)
remotes::install_git(
"https://git.gfz-potsdam.de/habitat-sampler/HabitatSampler.git",
ref = "master",
ref = "docker",
subdir = "R-package",
dependencies = NA,
upgrade=FALSE,
......
......@@ -55,7 +55,7 @@ sudo docker rm -f ${container_name}
echo "Starting HaSa container, please add the input files to ${input_dir_} and read the results from the ${output_dir_}"
if [ "${jupyter_notebook,,}" = "true" ]
then
sudo docker run -it --name ${container_name} \
sudo docker run -it --name ${container_name} --privileged \
-p $jupyter_lab_port:$docker_jupyterlab_port \
-v ${input_dir_}:${in_data_folder} \
-v ${tmp_dir_}:${tmp_data_folder} \
......@@ -63,7 +63,7 @@ then
-v ${demo_dir}:${demo_data_folder} ${runner_tag} \
bash -i -c "cd /home/hasa; jupyter-lab --ip 0.0.0.0 --no-browser --allow-root demo/"
else
sudo docker run -it --name ${container_name} -u 1000:1000 \
sudo docker run -it --name ${container_name} -u 1000:1000 --privileged \
-v ${input_dir_}:${in_data_folder} \
-v ${tmp_dir_}:${tmp_data_folder} \
-v ${output_dir_}:${out_data_folder} \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment