Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
ur_simple_control
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marko Guberina
ur_simple_control
Commits
b0d7d041
Commit
b0d7d041
authored
9 months ago
by
m-guberina
Browse files
Options
Downloads
Patches
Plain Diff
docker server test
parent
7ee4c124
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+45
-43
45 additions, 43 deletions
Dockerfile
with
45 additions
and
43 deletions
Dockerfile
+
45
−
43
View file @
b0d7d041
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment