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
7 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 \
...
@@ -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
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