File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ RUN cd /opt && wget https://download.jetbrains.com/python/pycharm-community-$PYC
40
40
tar -xvf pycharm-community-$PYCHARM_VER.tar.gz && rm pycharm-community-$PYCHARM_VER.tar.gz && \
41
41
mv pycharm-community-$PYCHARM_VER pycharm && ln -s /opt/pycharm/bin/pycharm.sh /usr/bin/pycharm && chmod +x /usr/bin/pycharm
42
42
43
-
44
43
RUN apt remove python3-psutil -y
45
44
RUN python$PYTHON_VER -m pip install --upgrade pip && python$PYTHON_VER -m pip install "numpy<2" cython psutil open3d pybullet roboticstoolbox-python --ignore-installed --no-cache-dir
46
45
@@ -61,10 +60,11 @@ RUN groupadd -g $GID docker_users && useradd -l -u $UID -G $GID -md /home/docker
61
60
RUN sudo ln -sf /usr/bin/python$PYTHON_VER /usr/local/bin/python && sudo ln -sf /usr/bin/python$PYTHON_VER /usr/local/bin/python3
62
61
RUN echo "export PATH=/usr/local/bin:$PATH" >> /home/docker/.bashrc
63
62
63
+ USER docker
64
64
RUN cd /home/docker && git clone https://github.com/rustlluk/pyCub.git && cd pyCub && git checkout dev && python$PYTHON_VER setup.py install --user
65
65
66
66
# Delete thingies from aptitude
67
- RUN rm -Rf /var/lib/apt/lists/*
67
+ RUN sudo rm -Rf /var/lib/apt/lists/*
68
68
69
69
WORKDIR /home/docker
70
70
ENTRYPOINT sudo service ssh start >> /dev/null && /bin/bash
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ def main():
194
194
call (cmd , shell = True , stderr = PIPE , stdout = PIPE )
195
195
196
196
if not vnc :
197
- cmd = (f'docker run -it " -u $(id -u):$(id -g) -e DISPLAY -e "QT_X11_NO_MITSHM=1" -e "XAUTHORITY=/tmp/.docker.xauth" '
197
+ cmd = (f'docker run -it -u $(id -u):$(id -g) -e " DISPLAY" -e "QT_X11_NO_MITSHM=1" -e "XAUTHORITY=/tmp/.docker.xauth" '
198
198
f'-v /tmp/.docker.xauth:/tmp/.docker.xauth:rw -v "/tmp/.X11-unix:/tmp/.X11-unix:rw" -v /dev:/dev '
199
199
f'-v /etc/hosts:/etc/hosts --network host --privileged --name { container } -v { path } :/home/docker/pycub_ws { image } ' )
200
200
else :
You can’t perform that action at this time.
0 commit comments