Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LRS Development Environment - Common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lrs
LRS Development Environment - Common
Commits
8321865e
Commit
8321865e
authored
4 years ago
by
Tommy Persson
Browse files
Options
Downloads
Patches
Plain Diff
Work on docker
parent
d4845b84
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+49
-3
49 additions, 3 deletions
README.md
script/wexec
+3
-0
3 additions, 0 deletions
script/wexec
script/wgrun
+10
-0
10 additions, 0 deletions
script/wgrun
script/wrun
+9
-0
9 additions, 0 deletions
script/wrun
with
71 additions
and
3 deletions
README.md
+
49
−
3
View file @
8321865e
...
...
@@ -2,16 +2,62 @@
Things needed to build a development docker image based on waraps base LRS image.
Also instructions how to run different units from a docker. Thie will
replace the setup we have had with virtual machines that combitech
have used.
Will be used for more things in the future.
## Build user specific developer docker image
## Running units from docker
Start the wara docker on all machines were you want to run units.
```
bash
docker run
--gpus
all
\
--network
host
\
--ulimit
nofile
=
1024
\
-v
/tmp/.X11-unix:/tmp/.X11-unix
\
-e
DISPLAY
=
unix
${
DISPLAY
}
\
-e
ROS_HOSTNAME
=
localhost
\
--rm
-it
--name
wara gitlab.liu.se:5000/lrs/waraps_docker_images/wara-melodic:v01 bash
```
Can be detached with C-p C-q.
It is possible to give argument "op 0" and so on instead of bash to
docker run. But that mean we have to start new containers for each
unit. But if we are running the different units on diffrent computers
we can start that way.
To start /op0, /djisim0, /djisim1, /pirayasim0 do:
```
bash
docker
exec
-it
wara bash
op 0
```
```
bash
docker
exec
-it
wara bash
djisim 0
```
```
bash
docker
exec
-it
wara bash
djisim 1
```
```
bash
docker
exec
-it
wara bash
pirayasim 0
```
## User Specific Development Docker
### Build user specific development docker image
```
bash
cd
docker
./build
```
## Run the user specific developer image
##
#
Run the user specific developer image
```
bash
cd
docker
...
...
@@ -20,7 +66,7 @@ cd docker
The run.sh script takes one argument and it is the directory that is mounted as home directory.
## Init files
##
#
Init files
You have to create your own init files.
...
...
This diff is collapsed.
Click to expand it.
script/wexec
0 → 100755
+
3
−
0
View file @
8321865e
#!/bin/bash
docker
exec
-it
wara bash
This diff is collapsed.
Click to expand it.
script/wgrun
0 → 100755
+
10
−
0
View file @
8321865e
#!/bin/bash
docker run
--gpus
all
\
--network
host
\
--ulimit
nofile
=
1024
\
-v
/tmp/.X11-unix:/tmp/.X11-unix
\
-e
DISPLAY
=
unix
${
DISPLAY
}
\
-e
ROS_HOSTNAME
=
localhost
\
--rm
-it
--name
wara gitlab.liu.se:5000/lrs/waraps_docker_images/wara-melodic:v01
"
$@
"
This diff is collapsed.
Click to expand it.
script/wrun
0 → 100755
+
9
−
0
View file @
8321865e
#!/bin/bash
docker run
\
--network
host
\
--ulimit
nofile
=
1024
\
-v
/tmp/.X11-unix:/tmp/.X11-unix
\
-e
DISPLAY
=
unix
${
DISPLAY
}
\
-e
ROS_HOSTNAME
=
localhost
\
--rm
-it
--name
wara gitlab.liu.se:5000/lrs/waraps_docker_images/wara-melodic:v01
"
$@
"
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