blob: 5edf8f0acd470591dc95f1b96ba4ca6278148d81 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# -*- mode: ruby -*-
# vi: set ft=ruby :
#
# Boot docker SITL environment
#
# Build (first time up):
# Use the "--no-parallel" option so the containers will be built in order.
# e.g.: "vagrant up --no-parallel"
#
Vagrant.configure(2) do |config|
# Configure docker host
config.vm.provider "docker" do |d|
d.vagrant_machine = "docker-host"
d.vagrant_vagrantfile = "../docker-host/Vagrantfile"
end
# Configure docker apps to run
config.vm.define "ros" do |app|
app.vm.provider "docker" do |d|
d.name = "ros"
#d.image = "px4ros/ros-base:no-drcsim"
d.build_dir = "../../docker/px4-ros"
d.build_args = ["-t=px4ros/ros-base:no-drcsim"]
# share docker host x11 socket
d.volumes = ["/tmp/.X11-unix:/tmp/.X11-unix:ro"]
# TODO: get display number from host system
d.env = {
"DISPLAY" => ":0"
}
d.cmd = ["echo", "Base image done"]
d.remains_running = false
end
end
config.vm.define "gazebo" do |app|
app.vm.provider "docker" do |d|
d.name = "gazebo"
#d.image = "px4ros/ros-sitl"
d.build_dir = "../../docker/px4-ros/px4-ros-sitl"
d.build_args = ["-t=px4ros/ros-sitl:no-drcsim"]
# share docker host x11 socket
d.volumes = ["/tmp/.X11-unix:/tmp/.X11-unix:ro"]
# TODO: get display number from host system
d.env = {
"DISPLAY" => ":0"
}
d.cmd = ["gazebo"]
end
end
end
|