Skip to content
Snippets Groups Projects
Commit b0d7d041 authored by m-guberina's avatar m-guberina
Browse files

docker server test

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