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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Christoph Schröter
panda_gazebo_workspace
Commits
e06f7cae
Commit
e06f7cae
authored
4 years ago
by
Tim Kluge
Browse files
Options
Downloads
Patches
Plain Diff
Add volume for workspace
parent
eda1267e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+8
-5
8 additions, 5 deletions
Dockerfile
vnc/copyws.sh
+7
-0
7 additions, 0 deletions
vnc/copyws.sh
with
15 additions
and
5 deletions
Dockerfile
+
8
−
5
View file @
e06f7cae
...
@@ -3,14 +3,17 @@ FROM fbottarel/ros-desktop-full-vnc:melodic
...
@@ -3,14 +3,17 @@ FROM fbottarel/ros-desktop-full-vnc:melodic
RUN
apt-get update
&&
apt-get dist-upgrade
-y
RUN
apt-get update
&&
apt-get dist-upgrade
-y
RUN
apt-get
install
-y
\
RUN
apt-get
install
-y
\
ros-melodic-libfranka python-catkin-tools libeigen3-dev
ros-melodic-libfranka python-catkin-tools libeigen3-dev
#WORKDIR /src/
COPY
./vnc/simple_simulation.sh /root/Desktop/
COPY
./vnc/simple_simulation.sh /root/Desktop/
RUN
ln
-s
/usr/share/applications/lxterminal.desktop /root/Desktop/lxterminal.desktop
RUN
ln
-s
/usr/share/applications/lxterminal.desktop /root/Desktop/lxterminal.desktop
RUN
chmod
a+x /root/Desktop/simple_simulation.sh
&&
mkdir
/root/
Desktop/ros_ws
RUN
chmod
a+x /root/Desktop/simple_simulation.sh
&&
mkdir
/root/
ws_tmp
ENV
ROS_DISTRO=melodic
ENV
ROS_DISTRO=melodic
WORKDIR
/root/Desktop/ros_ws
WORKDIR
/root/ws_tmp
COPY
./src /root/Desktop/ros_ws/src
COPY
vnc/copyws.sh /root/copyws.sh
RUN
chmod
a+x /root/copyws.sh
COPY
./src /root/ws_tmp/src
RUN
apt-get update
&&
rosdep
install
--from-paths
.
-r
-y
&&
apt-get clean
RUN
apt-get update
&&
rosdep
install
--from-paths
.
-r
-y
&&
apt-get clean
RUN
catkin config
\
RUN
catkin config
\
--extend
/opt/ros/melodic
&&
\
--extend
/opt/ros/melodic
&&
\
catkin build
catkin build
\ No newline at end of file
ENV
OPENBOX_ARGS --startup "/root/copyws.sh"
VOLUME
/root/Desktop/ros_ws
This diff is collapsed.
Click to expand it.
vnc/copyws.sh
0 → 100644
+
7
−
0
View file @
e06f7cae
#!/bin/sh
if
[
-z
"
$(
ls
-A
/root/Desktop/ros_ws
)
"
]
;
then
echo
"Copying workspace..."
cp
/root/ws_tmp/
*
/root/Desktop/ros_ws
-r
chmod
a+rwx /root/Desktop/ros_ws/
*
-R
fi
\ 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