Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
help_ros
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Leander Boelke
help_ros
Commits
e5037350
Commit
e5037350
authored
2 years ago
by
none
Browse files
Options
Downloads
Patches
Plain Diff
actually how you want to use a container
parent
bbc48781
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+4
-1
4 additions, 1 deletion
Dockerfile
Makefile
+4
-1
4 additions, 1 deletion
Makefile
scripts/all.sh
+12
-2
12 additions, 2 deletions
scripts/all.sh
with
20 additions
and
4 deletions
Dockerfile
+
4
−
1
View file @
e5037350
...
...
@@ -8,7 +8,7 @@ RUN apt update; apt install -y vim tmux git sudo stow
RUN
adduser user
--home
/home/user
RUN
echo
'root:root'
|chpasswd
RUN
echo
'user:user'
|chpasswd
RUN
echo
"user ALL=(ALL:ALL) ALL"
>>
/etc/sudoers
RUN
echo
"user ALL=(ALL:ALL)
NOPASSWD:
ALL"
>>
/etc/sudoers
#RUN echo "source /opt/ros/melodic/setup.bash" >> /home/user/.bashrc
# covenience, this entire block can be removed without affecting the functionality
USER
user
...
...
@@ -30,5 +30,8 @@ WORKDIR /home/user/catkin_ws/src
WORKDIR
/home/user/catkin_ws
USER
root
#RUN chmod u+x /home/user/catkin_ws/scripts/* && chown user: /home/user/catkin_ws/scripts/*
COPY
./scripts/all.sh /home/user/entrypoint.sh
RUN
chmod
+x /home/user/entrypoint.sh
USER
user
CMD
["/bin/bash", "/home/user/entrypoint.sh"]
This diff is collapsed.
Click to expand it.
Makefile
+
4
−
1
View file @
e5037350
...
...
@@ -4,7 +4,10 @@ build:
docker build
-t
container .
run
:
echo
running:|figlet
docker run
-e
DISPLAY
=
${
DISPLAY
}
-v
/tmp/.X11-unix:/tmp/.X11-unix
\
docker run
\
--rm
\
-e
DISPLAY
=
${
DISPLAY
}
\
-v
/tmp/.X11-unix:/tmp/.X11-unix
\
-v
$(
shell
readlink
-e
./manipulability_metrics
)
:/home/user/catkin_ws/src
\
-v
$(
shell
readlink
-e
./scripts
)
:/home/user/catkin_ws/scripts
\
-it
container
This diff is collapsed.
Click to expand it.
scripts/all.sh
+
12
−
2
View file @
e5037350
.
./scripts/prepare.sh
.
./scripts/start.sh
## prepare
# install dependencies
rosdep update
rosdep
install
--from-paths
src
--ignore-src
-r
-y
# make and setup
catkin_make
source
devel/setup.bash
## start
# run launch file from example
roslaunch manipulability_metrics_examples panda_manipulability_demo.launch
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