diff --git a/Dockerfile b/Dockerfile index 679bfdf76046b9d51d4bd3fc9b48a68b7cd2d36b..b15f9b0b147f79247dfa621e0a3ac408191155ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,46 +40,48 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # make the environment more usable # create user -RUN useradd -m -s /bin/zsh -G sudo -u 1000 student - -WORKDIR /home/student/ -RUN passwd -d student -USER student -# copy repo to workdir -RUN mkdir SimpleManipulatorControl -COPY --chown=student . ./SimpleManipulatorControl -RUN mkdir -p .cache/zsh/ -COPY --chown=student /dot_files_for_docker/.vimrc /home/student/ -COPY --chown=student /dot_files_for_docker/.zshrc /home/student/ -COPY --chown=student /dot_files_for_docker/global_extra_conf.py /home/student/ - - -# sh does not have sourcing -# and some packages (conda) want shell environment variables -# (which i can say a lot about, but can't do anything about) -# ((the only reason to even use conda is to not have to compile pinocchio)) -SHELL ["/bin/bash", "--login", "-c"] -#SHELL ["/bin/bash"] - -# this is enough to run clik -WORKDIR /home/student/ -USER student -# TODO: install casadi and pinochio 3.0+ -# TODO: verify this stuff below works -# --> this can be done with conda -RUN mkdir -p ~/miniconda3 -RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /home/student/miniconda3/miniconda.sh -RUN bash /home/student/miniconda3/miniconda.sh -b -u -p ~/miniconda3 -RUN rm /home/student/miniconda3/miniconda.sh -ENV PATH=/home/student/miniconda3/bin:$PATH -RUN source /home/student/miniconda3/bin/activate -RUN pip install -e ./SimpleManipulatorControl/python/ -RUN conda config --add channels conda-forge -#RUN conda install --solver=classic conda-forge::conda-libmamba-solver conda-forge::libmamba conda-forge::libmambapy conda-forge::libarchive -RUN conda install --solver=classic -y pinocchio crocoddyl -c conda-forge -#RUN conda install -y opencv -RUN pip install matplotlib meshcat ur_rtde argcomplete \ - qpsolvers ecos example_robot_data meshcat_shapes \ - pyqt6 opencv-python - -RUN vam install python-jedi && vam install youcompleteme +######### TEST ########### +# uncomment later +#RUN useradd -m -s /bin/zsh -G sudo -u 1000 student +# +#WORKDIR /home/student/ +#RUN passwd -d student +#USER student +## copy repo to workdir +#RUN mkdir SimpleManipulatorControl +#COPY --chown=student . ./SimpleManipulatorControl +#RUN mkdir -p .cache/zsh/ +#COPY --chown=student /dot_files_for_docker/.vimrc /home/student/ +#COPY --chown=student /dot_files_for_docker/.zshrc /home/student/ +#COPY --chown=student /dot_files_for_docker/global_extra_conf.py /home/student/ +# +# +## sh does not have sourcing +## and some packages (conda) want shell environment variables +## (which i can say a lot about, but can't do anything about) +## ((the only reason to even use conda is to not have to compile pinocchio)) +#SHELL ["/bin/bash", "--login", "-c"] +##SHELL ["/bin/bash"] +# +## this is enough to run clik +#WORKDIR /home/student/ +#USER student +## TODO: install casadi and pinochio 3.0+ +## TODO: verify this stuff below works +## --> this can be done with conda +#RUN mkdir -p ~/miniconda3 +#RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /home/student/miniconda3/miniconda.sh +#RUN bash /home/student/miniconda3/miniconda.sh -b -u -p ~/miniconda3 +#RUN rm /home/student/miniconda3/miniconda.sh +#ENV PATH=/home/student/miniconda3/bin:$PATH +#RUN source /home/student/miniconda3/bin/activate +#RUN pip install -e ./SimpleManipulatorControl/python/ +#RUN conda config --add channels conda-forge +##RUN conda install --solver=classic conda-forge::conda-libmamba-solver conda-forge::libmamba conda-forge::libmambapy conda-forge::libarchive +#RUN conda install --solver=classic -y pinocchio crocoddyl -c conda-forge +##RUN conda install -y opencv +#RUN pip install matplotlib meshcat ur_rtde argcomplete \ +# qpsolvers ecos example_robot_data meshcat_shapes \ +# pyqt6 opencv-python +# +#RUN vam install python-jedi && vam install youcompleteme