diff --git a/Dockerfile b/Dockerfile index c831f5967..ee2946bb9 100755 --- a/Dockerfile +++ b/Dockerfile @@ -28,4 +28,5 @@ RUN pip install -r requirements.txt RUN apt-get install -y nodejs npm RUN npm install -g pm2 COPY . /commune -ENTRYPOINT ["pip", "install", "-e", "./", "tail", "-f", "/dev/null"] \ No newline at end of file +RUN pip install -e ./ +ENTRYPOINT [ "tail", "-f", "/dev/null"] \ No newline at end of file diff --git a/bin/c b/bin/c deleted file mode 100644 index 6e74eb93b..000000000 --- a/bin/c +++ /dev/null @@ -1,2 +0,0 @@ -import commune as c -c.cli() \ No newline at end of file diff --git a/commune/module/module.py b/commune/module/module.py index d923821c6..8921693a2 100755 --- a/commune/module/module.py +++ b/commune/module/module.py @@ -1,5 +1,5 @@ -import inspect import os +import inspect import concurrent import threading from copy import deepcopy diff --git a/scripts/nvidia_docker_setup.sh b/scripts/nvidia_docker_setup.sh index ff63699aa..656e68464 100755 --- a/scripts/nvidia_docker_setup.sh +++ b/scripts/nvidia_docker_setup.sh @@ -1,4 +1,4 @@ -# Add the package repositories +ww# Add the package repositories distribution=$(. /etc/os-release;echo $ID$VERSION_ID) curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list diff --git a/scripts/rm_sudo_docker.sh b/scripts/rm_sudo_docker.sh new file mode 100644 index 000000000..33b84c201 --- /dev/null +++ b/scripts/rm_sudo_docker.sh @@ -0,0 +1,3 @@ +groupadd docker +usermod -aG docker $USER +chmod 666 /var/run/docker.sock \ No newline at end of file