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
c5c2ad47
Commit
c5c2ad47
authored
4 years ago
by
Tommy Persson
Browse files
Options
Downloads
Patches
Plain Diff
Fixes for devenv.
parent
35b54e0d
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
script/werun
+33
-0
33 additions, 0 deletions
script/werun
script/wexec
+1
-1
1 addition, 1 deletion
script/wexec
script/wgrun
+2
-2
2 additions, 2 deletions
script/wgrun
script/wpull
+4
-4
4 additions, 4 deletions
script/wpull
script/wrun
+2
-2
2 additions, 2 deletions
script/wrun
with
42 additions
and
9 deletions
script/werun
0 → 100755
+
33
−
0
View file @
c5c2ad47
#!/bin/bash
## using extern GPU
if
[[
$(
lsb_release
-rs
)
==
"18.04"
]]
;
then
docker run
--gpus
all
\
--network
host
\
--security-opt
apparmor:unconfined
\
--ulimit
nofile
=
1024
\
--ipc
=
host
\
-v
/tmp/.X11-unix:/tmp/.X11-unix
\
-v
/tmp:/exttmp
\
-e
DISPLAY
=
unix
${
DISPLAY
}
\
-e
ROS_HOSTNAME
=
localhost
\
-e
__NV_PRIME_RENDER_OFFLOAD_PROVIDER
=
NVIDIA-G1
\
-e
__GLX_VENDOR_LIBRARY_NAME
=
nvidia
\
--rm
-it
--name
devenv gitlab.liu.se:5000/lrs/devenv_docker_images/lrs-melodic:devel
"
$@
"
fi
if
[[
$(
lsb_release
-rs
)
==
"20.04"
]]
;
then
docker run
--gpus
all
\
--network
host
\
--security-opt
apparmor:unconfined
\
--ulimit
nofile
=
1024
\
--ipc
=
host
\
-v
/tmp/.X11-unix:/tmp/.X11-unix
\
-v
/tmp:/exttmp
\
-e
DISPLAY
=
unix
${
DISPLAY
}
\
-e
ROS_HOSTNAME
=
localhost
\
-e
__NV_PRIME_RENDER_OFFLOAD_PROVIDER
=
NVIDIA-G1
\
-e
__GLX_VENDOR_LIBRARY_NAME
=
nvidia
\
--rm
-it
--name
devenv gitlab.liu.se:5000/lrs/devenv_docker_images/lrs-noetic:devel
"
$@
"
fi
This diff is collapsed.
Click to expand it.
script/wexec
+
1
−
1
View file @
c5c2ad47
#!/bin/bash
#!/bin/bash
docker
exec
-it
wara
deve
l
/entry.sh
"
$@
"
docker
exec
-it
deve
nv
/entry.sh
"
$@
"
This diff is collapsed.
Click to expand it.
script/wgrun
+
2
−
2
View file @
c5c2ad47
...
@@ -10,7 +10,7 @@ docker run --gpus all \
...
@@ -10,7 +10,7 @@ docker run --gpus all \
-v
/tmp:/exttmp
\
-v
/tmp:/exttmp
\
-e
DISPLAY
=
unix
${
DISPLAY
}
\
-e
DISPLAY
=
unix
${
DISPLAY
}
\
-e
ROS_HOSTNAME
=
localhost
\
-e
ROS_HOSTNAME
=
localhost
\
--rm
-it
--name
wara
deve
l
gitlab.liu.se:5000/lrs/
waraps
_docker_images/
warap
s-melodic:devel
"
$@
"
--rm
-it
--name
deve
nv
gitlab.liu.se:5000/lrs/
devenv
_docker_images/
lr
s-melodic:devel
"
$@
"
fi
fi
if
[[
$(
lsb_release
-rs
)
==
"20.04"
]]
;
then
if
[[
$(
lsb_release
-rs
)
==
"20.04"
]]
;
then
...
@@ -23,5 +23,5 @@ docker run --gpus all \
...
@@ -23,5 +23,5 @@ docker run --gpus all \
-v
/tmp:/exttmp
\
-v
/tmp:/exttmp
\
-e
DISPLAY
=
unix
${
DISPLAY
}
\
-e
DISPLAY
=
unix
${
DISPLAY
}
\
-e
ROS_HOSTNAME
=
localhost
\
-e
ROS_HOSTNAME
=
localhost
\
--rm
-it
--name
wara
deve
l
gitlab.liu.se:5000/lrs/
waraps
_docker_images/
warap
s-noetic:devel
"
$@
"
--rm
-it
--name
deve
nv
gitlab.liu.se:5000/lrs/
devenv
_docker_images/
lr
s-noetic:devel
"
$@
"
fi
fi
This diff is collapsed.
Click to expand it.
script/wpull
+
4
−
4
View file @
c5c2ad47
#!/bin/bash
#!/bin/bash
if
[[
$(
lsb_release
-rs
)
==
"18.04"
]]
;
then
if
[[
$(
lsb_release
-rs
)
==
"18.04"
]]
;
then
echo
"Pulling gitlab.liu.se:5000/lrs/
waraps
_docker_images/
warap
s-melodic:devel"
echo
"Pulling gitlab.liu.se:5000/lrs/
devenv
_docker_images/
lr
s-melodic:devel"
docker pull gitlab.liu.se:5000/lrs/
waraps
_docker_images/
warap
s-melodic:devel
docker pull gitlab.liu.se:5000/lrs/
devenv
_docker_images/
lr
s-melodic:devel
fi
fi
if
[[
$(
lsb_release
-rs
)
==
"20.04"
]]
;
then
if
[[
$(
lsb_release
-rs
)
==
"20.04"
]]
;
then
echo
"Pulling gitlab.liu.se:5000/lrs/
waraps
_docker_images/
warap
s-noetic:devel"
echo
"Pulling gitlab.liu.se:5000/lrs/
devenv
_docker_images/
lr
s-noetic:devel"
docker pull gitlab.liu.se:5000/lrs/
waraps
_docker_images/
warap
s-noetic:devel
docker pull gitlab.liu.se:5000/lrs/
devenv
_docker_images/
lr
s-noetic:devel
fi
fi
This diff is collapsed.
Click to expand it.
script/wrun
+
2
−
2
View file @
c5c2ad47
...
@@ -9,7 +9,7 @@ docker run \
...
@@ -9,7 +9,7 @@ docker run \
-v
/tmp:/exttmp
\
-v
/tmp:/exttmp
\
-e
DISPLAY
=
unix
${
DISPLAY
}
\
-e
DISPLAY
=
unix
${
DISPLAY
}
\
-e
ROS_HOSTNAME
=
localhost
\
-e
ROS_HOSTNAME
=
localhost
\
--rm
-it
--name
wara
deve
l
gitlab.liu.se:5000/lrs/
waraps
_docker_images/
warap
s-melodic:devel
"
$@
"
--rm
-it
--name
deve
nv
gitlab.liu.se:5000/lrs/
devenv
_docker_images/
lr
s-melodic:devel
"
$@
"
fi
fi
if
[[
$(
lsb_release
-rs
)
==
"20.04"
]]
;
then
if
[[
$(
lsb_release
-rs
)
==
"20.04"
]]
;
then
...
@@ -21,5 +21,5 @@ docker run \
...
@@ -21,5 +21,5 @@ docker run \
-v
/tmp:/exttmp
\
-v
/tmp:/exttmp
\
-e
DISPLAY
=
unix
${
DISPLAY
}
\
-e
DISPLAY
=
unix
${
DISPLAY
}
\
-e
ROS_HOSTNAME
=
localhost
\
-e
ROS_HOSTNAME
=
localhost
\
--rm
-it
--name
wara
deve
l
gitlab.liu.se:5000/lrs/
waraps
_docker_images/
warap
s-noetic:devel
"
$@
"
--rm
-it
--name
deve
nv
gitlab.liu.se:5000/lrs/
devenv
_docker_images/
lr
s-noetic:devel
"
$@
"
fi
fi
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