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 \
# 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment