Skip to content

Commit

Permalink
Merge pull request #361 from robotology/devel
Browse files Browse the repository at this point in the history
[`devel`]→[`master`] Preparation of v1.3.0
  • Loading branch information
diegoferigo authored Oct 4, 2021
2 parents 311b08e + 7d986ab commit 2fdb0e7
Show file tree
Hide file tree
Showing 216 changed files with 13,082 additions and 8,799 deletions.
8 changes: 4 additions & 4 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
ARG from=diegoferigo/gym-ignition:pypi-master
FROM ${from}

# Source /etc/bash.bashrc before each command
SHELL ["/bin/bash", "-i", "-c"]

# Install the PyPI package in a virtualenv
ARG pip_options=""
RUN virtualenv -p $(which python3) ${VIRTUAL_ENV} &&\
python -m pip install --upgrade pip &&\
pip install ${pip_options} gym-ignition &&\
rm -r $HOME/.cache/pip

Expand All @@ -15,5 +13,7 @@ WORKDIR /github
ARG branch="master"
RUN git clone -b ${branch} https://github.com/robotology/gym-ignition /github

CMD ["bash"]
# Reset the entrypoint
ENTRYPOINT [""]

CMD ["bash"]
17 changes: 0 additions & 17 deletions .docker/base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,4 @@ RUN add-apt-repository ppa:git-core/ppa &&\
ENV VIRTUAL_ENV=/venv
ENV PATH=$VIRTUAL_ENV/bin:$PATH

# Install iDynTree
RUN apt-get update &&\
apt-get install -y --no-install-recommends \
python3-numpy libxml2-dev coinor-libipopt-dev libeigen3-dev &&\
rm -rf /var/lib/apt/lists/* &&\
git clone --depth 1 -b devel https://github.com/robotology/idyntree /tmp/idyntree &&\
mkdir -p /tmp/idyntree/build && cd /tmp/idyntree/build &&\
cmake .. \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS:BOOL=OFF \
-DIDYNTREE_USES_PYTHON=True \
-DIDYNTREE_USES_IPOPT:BOOL=ON \
&&\
cmake --build . --target install &&\
rm -r /tmp/idyntree

CMD ["bash"]
76 changes: 14 additions & 62 deletions .docker/cicd-devel.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,76 +1,24 @@
ARG from=diegoferigo/gym-ignition:base
FROM ${from}

ARG IGNITION_DEFAULT_CHANNEL="stable"
RUN echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-${IGNITION_DEFAULT_CHANNEL} `lsb_release -cs` main" > \
/etc/apt/sources.list.d/gazebo-${IGNITION_DEFAULT_CHANNEL}.list &&\
wget http://packages.osrfoundation.org/gazebo.key -O - | apt-key add - &&\
apt-get update &&\
apt-get install -y --no-install-recommends \
cmake \
freeglut3-dev \
libavcodec-dev \
libavdevice-dev \
libavformat-dev \
libavutil-dev \
libbenchmark-dev \
libcurl4-openssl-dev \
libfreeimage-dev \
libgflags-dev \
libglew-dev \
libgts-dev \
libjsoncpp-dev \
libogre-1.9-dev \
libogre-2.1-dev \
libprotobuf-dev \
libprotoc-dev \
libqt5core5a \
libsqlite3-dev \
libswscale-dev \
libtinyxml-dev \
libtinyxml2-dev \
libwebsockets-dev \
libyaml-dev \
libzip-dev \
libzmq3-dev \
pkg-config \
protobuf-compiler \
python \
qml-module-qt-labs-folderlistmodel \
qml-module-qt-labs-settings \
qml-module-qtqml-models2 \
qml-module-qtquick-controls \
qml-module-qtquick-controls2 \
qml-module-qtquick-dialogs \
qml-module-qtquick-layouts \
qml-module-qtquick2 \
qtbase5-dev \
qtdeclarative5-dev \
qtquickcontrols2-5-dev \
ruby \
ruby-dev \
ruby-ronn \
swig \
uuid-dev \
# Additional
libdart-collision-ode-dev \
libdart-dev \
libdart-external-ikfast-dev \
libdart-external-odelcpsolver-dev \
libdart-utils-urdf-dev \
&&\
rm -rf /var/lib/apt/lists/*

RUN pip3 install vcstool colcon-common-extensions &&\
rm -r $HOME/.cache/pip

ARG CMAKE_BUILD_TYPE="Release"
ARG ignition_codename="citadel"
ARG ignition_codename="fortress"
ARG IGNITION_DEFAULT_CHANNEL="stable"

RUN mkdir -p /workspace/src &&\
RUN echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-${IGNITION_DEFAULT_CHANNEL} `lsb_release -cs` main" > \
/etc/apt/sources.list.d/gazebo-${IGNITION_DEFAULT_CHANNEL}.list &&\
wget http://packages.osrfoundation.org/gazebo.key -O - | apt-key add - &&\
apt-get update &&\
mkdir -p /workspace/src &&\
cd /workspace/src &&\
wget https://raw.githubusercontent.com/ignition-tooling/gazebodistro/master/collection-${ignition_codename}.yaml &&\
vcs import < collection-${ignition_codename}.yaml &&\
apt -y install --no-install-recommends \
$(sort -u $(find . -iname 'packages-'$(lsb_release -cs)'.apt' -o -iname 'packages.apt') | grep -v -E "dart|^libignition|^libsdformat" | tr '\n' ' ') &&\
rm -rf /var/lib/apt/lists/* &&\
cd /workspace &&\
colcon graph &&\
colcon build \
Expand All @@ -80,8 +28,12 @@ RUN mkdir -p /workspace/src &&\
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
--merge-install \
&&\
find build/ -type f -not -name 'CMakeCache.txt' -delete &&\
echo "source /workspace/install/setup.bash" >> /etc/bash.bashrc

# Source /etc/bash.bashrc before each command
SHELL ["/bin/bash", "-i", "-c"]

COPY entrypoint.sh /entrypoint.sh
COPY setup_virtualenv.sh /setup_virtualenv.sh
RUN chmod 755 /entrypoint.sh
Expand Down
2 changes: 1 addition & 1 deletion .docker/cicd-master.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG from=diegoferigo/gym-ignition:base
FROM ${from}

# Install ignition gazebo
ARG ignition_codename="citadel"
ARG ignition_codename="fortress"
RUN echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" \
> /etc/apt/sources.list.d/gazebo-stable.list &&\
wget http://packages.osrfoundation.org/gazebo.key -O - | apt-key add - &&\
Expand Down
4 changes: 2 additions & 2 deletions .docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ services:
build:
args:
from: diegoferigo/gym-ignition:base
ignition_codename: dome
ignition_codename: fortress
CMAKE_BUILD_TYPE: Debug
context: .
dockerfile: cicd-devel.Dockerfile
Expand All @@ -50,7 +50,7 @@ services:
build:
args:
from: diegoferigo/gym-ignition:base
ignition_codename: dome
ignition_codename: fortress
CMAKE_BUILD_TYPE: Release
context: .
dockerfile: cicd-devel.Dockerfile
Expand Down
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Default owners
* @diegoferigo
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ labels: issue::type::enhancement

<!-- Remove this warning before posting the issue -->

⚠️ If you're not sure on the specifics of the feature or would like a broader discussion,
please consider posting a proposal to [Discussions][Discussions] instead.
⚠️ If you're not sure on the specifics of the feature or would like a broader discussion, please consider posting a proposal to [Discussions][Discussions] instead.

[Discussions]: https://github.com/robotology/gym-ignition/discussions

## Summary

Describe what this new feature is about and the context you would find it useful.

## Implementation suggestion

Provide a suggestion on how to implement this feature, which could help us
to speed up the implementation.
Provide a suggestion on how to implement this feature, which could help us to speed up the implementation.

## Additional context

Expand Down
Loading

0 comments on commit 2fdb0e7

Please sign in to comment.