-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #117 from osrf/gazebo9
Adding Gazebo9 for xenial
- Loading branch information
Showing
11 changed files
with
250 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
all: help | ||
|
||
help: | ||
@echo "" | ||
@echo "-- Help Menu" | ||
@echo "" | ||
@echo " 1. make build - build all images" | ||
@echo " 2. make pull - pull all images" | ||
@echo " 3. make clean - remove all images" | ||
@echo "" | ||
|
||
build: | ||
@docker build --tag=gazebo:gzserver9 gzserver9/. | ||
@docker build --tag=gazebo:libgazebo9 libgazebo9/. | ||
# @docker build --tag=gazebo:gzclient9 gzclient9/. | ||
# @docker build --tag=gazebo:gzweb9 gzweb9/. | ||
|
||
pull: | ||
@docker pull gazebo:libgazebo9 | ||
@docker pull gazebo:gzserver9 | ||
# @docker pull gazebo:gzclient9 | ||
# @docker pull gazebo:gzweb9 | ||
|
||
clean: | ||
@docker rmi -f gazebo:libgazebo9 | ||
@docker rmi -f gazebo:gzserver9 | ||
# @docker rmi -f gazebo:gzclient9 | ||
# @docker rmi -f gazebo:gzweb9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# This is an auto generated Dockerfile for gazebo:gzclient9 | ||
# generated from docker_images/create_gzclient_image.Dockerfile.em | ||
FROM gazebo:gzserver9 | ||
|
||
# install packages | ||
RUN apt-get update && apt-get install -q -y \ | ||
binutils \ | ||
mesa-utils \ | ||
module-init-tools \ | ||
x-window-system\ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# install gazebo packages | ||
RUN apt-get update && apt-get install -q -y \ | ||
gazebo9=9.0.0-1* \ | ||
&& rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# This is an auto generated Dockerfile for gazebo:gzserver9 | ||
# generated from docker_images/create_gzserver_image.Dockerfile.em | ||
FROM ubuntu:xenial | ||
|
||
# setup keys | ||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D2486D2DD83DB69272AFE98867170598AF249743 | ||
|
||
# setup sources.list | ||
RUN . /etc/os-release \ | ||
&& . /etc/lsb-release \ | ||
&& echo "deb http://packages.osrfoundation.org/gazebo/$ID-stable $DISTRIB_CODENAME main" > /etc/apt/sources.list.d/gazebo-latest.list | ||
|
||
# install gazebo packages | ||
RUN apt-get update && apt-get install -q -y \ | ||
gazebo9=9.0.0-1* \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# setup environment | ||
EXPOSE 11345 | ||
|
||
# setup entrypoint | ||
COPY ./gzserver_entrypoint.sh / | ||
|
||
ENTRYPOINT ["/gzserver_entrypoint.sh"] | ||
CMD ["gzserver"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# setup gazebo environment | ||
source "/usr/share/gazebo/setup.sh" | ||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# This is an auto generated Dockerfile for gazebo:gzweb9 | ||
# generated from docker_images/create_gzweb_image.Dockerfile.em | ||
FROM gazebo:libgazebo9 | ||
|
||
# install packages | ||
RUN apt-get update && apt-get install -q -y \ | ||
build-essential \ | ||
cmake \ | ||
imagemagick \ | ||
libboost-all-dev \ | ||
libgts-dev \ | ||
libjansson-dev \ | ||
libtinyxml-dev \ | ||
mercurial \ | ||
nodejs \ | ||
nodejs-legacy \ | ||
npm \ | ||
pkg-config \ | ||
psmisc \ | ||
xvfb\ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# install gazebo packages | ||
RUN apt-get update && apt-get install -q -y \ | ||
libgazebo9-dev=9.0.0-1* \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# clone gzweb | ||
ENV GZWEB_WS /root/gzweb | ||
RUN hg clone https://bitbucket.org/osrf/gzweb $GZWEB_WS | ||
WORKDIR $GZWEB_WS | ||
|
||
# build gzweb | ||
RUN hg up default \ | ||
&& xvfb-run -s "-screen 0 1280x1024x24" ./deploy.sh -m -t | ||
|
||
# setup environment | ||
EXPOSE 8080 | ||
EXPOSE 7681 | ||
|
||
# run gzserver and gzweb | ||
CMD gzserver --verbose & npm start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
%YAML 1.1 | ||
# Gazebo Dockerfile database | ||
--- | ||
images: | ||
gzserver@(gazebo_version): | ||
base_image: @(os_name):@(os_code_name) | ||
maintainer_name: @(maintainer_name) | ||
template_name: docker_images/create_gzserver_image.Dockerfile.em | ||
entrypoint_name: docker_images/gzserver_entrypoint.sh | ||
template_packages: | ||
- docker_templates | ||
gazebo_packages: | ||
- gazebo@(gazebo_version) | ||
libgazebo@(gazebo_version): | ||
base_image: @(user_name):gzserver@(gazebo_version) | ||
maintainer_name: @(maintainer_name) | ||
template_name: docker_images/create_gzclient_image.Dockerfile.em | ||
template_packages: | ||
- docker_templates | ||
gazebo_packages: | ||
- libgazebo@(gazebo_version)-dev | ||
gzweb@(gazebo_version): | ||
base_image: @(user_name):libgazebo@(gazebo_version) | ||
maintainer_name: @(maintainer_name) | ||
template_name: docker_images/create_gzweb_image.Dockerfile.em | ||
template_packages: | ||
- docker_templates | ||
packages: | ||
- build-essential | ||
- cmake | ||
- imagemagick | ||
- libboost-all-dev | ||
- libgts-dev | ||
- libjansson-dev | ||
- libtinyxml-dev | ||
- mercurial | ||
- nodejs | ||
- nodejs-legacy | ||
- npm | ||
- pkg-config | ||
- psmisc | ||
- xvfb | ||
gazebo_packages: | ||
- libgazebo@(gazebo_version)-dev | ||
gzclient@(gazebo_version): | ||
base_image: @(user_name):gzserver@(gazebo_version) | ||
maintainer_name: @(maintainer_name) | ||
template_name: docker_images/create_gzclient_image.Dockerfile.em | ||
template_packages: | ||
- docker_templates | ||
packages: | ||
- binutils | ||
- mesa-utils | ||
- module-init-tools | ||
- x-window-system | ||
gazebo_packages: | ||
- gazebo@(gazebo_version) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This is an auto generated Dockerfile for gazebo:libgazebo9 | ||
# generated from docker_images/create_gzclient_image.Dockerfile.em | ||
FROM gazebo:gzserver9 | ||
# install gazebo packages | ||
RUN apt-get update && apt-get install -q -y \ | ||
libgazebo9-dev=9.0.0-1* \ | ||
&& rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
%YAML 1.1 | ||
# Gazebo Dockerfile database | ||
--- | ||
platform: | ||
os_name: ubuntu | ||
os_code_name: xenial | ||
gazebo_version: 9 | ||
user_name: gazebo | ||
maintainer_name: | ||
arch: amd64 | ||
type: distribution | ||
version: | ||
release: stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters