Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
panda_gazebo_workspace
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tim Kluge
panda_gazebo_workspace
Commits
d71875b2
Commit
d71875b2
authored
5 years ago
by
TIm Kluge
Browse files
Options
Downloads
Patches
Plain Diff
Add DOCKERFILE
parent
16992f92
No related branches found
No related tags found
No related merge requests found
Pipeline
#6441
failed
5 years ago
Stage: build
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Dockerfile
+29
-0
29 additions, 0 deletions
Dockerfile
README.md
+7
-0
7 additions, 0 deletions
README.md
docker-run.sh
+17
-0
17 additions, 0 deletions
docker-run.sh
entrypoint.sh
+4
-0
4 additions, 0 deletions
entrypoint.sh
with
57 additions
and
0 deletions
Dockerfile
0 → 100644
+
29
−
0
View file @
d71875b2
FROM
osrf/ros:melodic-desktop-full-bionic
ENV
uid 1000
ENV
gid 1000
COPY
entrypoint.sh /entrypoint.sh
RUN
chmod
+x /entrypoint.sh
ENV
USERNAME ros
RUN
useradd
-m
$USERNAME
&&
\
echo
"
$USERNAME
:
$USERNAME
"
| chpasswd
&&
\
usermod
--shell
/bin/bash
$USERNAME
&&
\
usermod
-aG
sudo
$USERNAME
&&
\
echo
"
$USERNAME
ALL=(ALL) NOPASSWD:ALL"
>>
/etc/sudoers.d/
$USERNAME
&&
\
chmod
0440 /etc/sudoers.d/
$USERNAME
&&
\
# Replace 1000 with your user/group id
usermod --uid $uid $USERNAME && \
groupmod --gid $gid $USERNAME
WORKDIR
/home/$USERNAME
COPY
src /home/$USERNAME/src
RUN
apt-get update
&&
apt-get
install
-y
\
python-catkin-tools bash
RUN
rosdep
install
--from-paths
.
-r
-y
RUN
catkin config
\
--extend
/opt/ros/melodic
&&
\
catkin build
ENTRYPOINT
["/entrypoint.sh"]
This diff is collapsed.
Click to expand it.
README.md
+
7
−
0
View file @
d71875b2
...
@@ -44,5 +44,12 @@ See the [README.md of the submodule](../../../../sample_applications/-/blob/mast
...
@@ -44,5 +44,12 @@ See the [README.md of the submodule](../../../../sample_applications/-/blob/mast
-
Execution of a simple motion costraint by a blocking object:
`roslaunch sample_applications sample_constraint_simulation.launch`
-
Execution of a simple motion costraint by a blocking object:
`roslaunch sample_applications sample_constraint_simulation.launch`
-
Execution of a velocity constraint cartesian trajectory:
`roslaunch sample_applications simulation.launch`
-
Execution of a velocity constraint cartesian trajectory:
`roslaunch sample_applications simulation.launch`
## Docker
To run via docker on any up-to-date linux system:
-
`docker build . -t ceti-panda-gazebo-workspace`
-
`./docker-run.sh roslaunch sample_applications sample_simple_simulation.launch`
Note that this expects your
`uid`
and
`gid`
to be
`1000`
. This is generally the case if your user is the primary user on your system. Otherwise, please change
the values at the top of the
`Dockerfile`
.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker-run.sh
0 → 100755
+
17
−
0
View file @
d71875b2
#!/bin/bash
# http://wiki.ros.org/docker/Tutorials/GUI
XSOCK
=
/tmp/.X11-unix
XAUTH
=
/tmp/.docker.xauth
touch
$XAUTH
xauth nlist
$DISPLAY
|
sed
-e
's/^..../ffff/'
| xauth
-f
$XAUTH
nmerge -
docker run
-it
\
--volume
=
$XSOCK
:
$XSOCK
:rw
\
--volume
=
$XAUTH
:
$XAUTH
:rw
\
--env
=
"XAUTHORITY=
${
XAUTH
}
"
\
--env
=
"DISPLAY"
\
--user
=
"ros"
\
ceti-panda-gazebo-workspace
\
"
$@
"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
entrypoint.sh
0 → 100644
+
4
−
0
View file @
d71875b2
#!/bin/bash
source
/opt/ros/melodic/setup.bash
source
$HOME
/devel/setup.bash
exec
"
$@
"
\ No newline at end of file
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