-
Notifications
You must be signed in to change notification settings - Fork 26
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 #70 from diegoferigo/feature/bdist
Continuous Delivery of PyPI manylinux1 Wheel
- Loading branch information
Showing
8 changed files
with
241 additions
and
42 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,100 @@ | ||
ARG from=ubuntu:bionic | ||
FROM ${from} | ||
|
||
# Install tools and toolchain | ||
RUN apt-get update &&\ | ||
apt-get install -y --no-install-recommends \ | ||
wget \ | ||
software-properties-common \ | ||
apt-transport-https \ | ||
apt-utils \ | ||
gnupg2 \ | ||
nano \ | ||
&&\ | ||
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add - && \ | ||
apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' &&\ | ||
apt-get update &&\ | ||
apt-get install -y --no-install-recommends \ | ||
git \ | ||
g++ \ | ||
g++-8 \ | ||
make \ | ||
cmake \ | ||
cmake-curses-gui \ | ||
ninja-build \ | ||
libgflags-dev \ | ||
python3-pip \ | ||
python3.6 \ | ||
libpython3.6-dev \ | ||
swig \ | ||
rename \ | ||
&&\ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install ignition robotics | ||
RUN echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" \ | ||
> /etc/apt/sources.list.d/gazebo-stable.list &&\ | ||
echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-prerelease `lsb_release -cs` main" \ | ||
> /etc/apt/sources.list.d/gazebo-prerelease.list &&\ | ||
echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-nightly `lsb_release -cs` main" \ | ||
> /etc/apt/sources.list.d/gazebo-prerelease.list &&\ | ||
wget http://packages.osrfoundation.org/gazebo.key -O - | apt-key add - &&\ | ||
apt-get update &&\ | ||
apt-get install -y --no-install-recommends \ | ||
libignition-cmake2-dev \ | ||
libignition-plugin-dev \ | ||
libignition-math6-dev \ | ||
libignition-common3-dev \ | ||
libignition-transport7-dev \ | ||
libignition-msgs4-dev \ | ||
libignition-tools-dev \ | ||
libignition-fuel-tools3-dev \ | ||
libsdformat8-dev \ | ||
libignition-physics-dev \ | ||
libignition-rendering-dev \ | ||
libignition-sensors2-dev \ | ||
libignition-gui2-dev \ | ||
&&\ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install ign-gazebo from my fork (statically compiled) | ||
RUN cd /tmp &&\ | ||
git clone --depth 1 https://github.com/diegoferigo/ign-gazebo &&\ | ||
cd ign-gazebo && mkdir -p build && cd build &&\ | ||
cmake \ | ||
-DCMAKE_BUILD_TYPE="Release" \ | ||
-DBUILD_TESTING:BOOL=OFF \ | ||
-DCMAKE_INSTALL_PREFIX:PATH="/usr" \ | ||
-DBUILD_SHARED_LIBS:BOOL=OFF \ | ||
.. &&\ | ||
cmake --build . --target install -- -j8 &&\ | ||
rm -r /tmp/ign-gazebo | ||
|
||
# Install idyntree (statically compiled) | ||
RUN apt-get update &&\ | ||
apt-get install -y --no-install-recommends python3-numpy libxml2-dev coinor-libipopt-dev &&\ | ||
rm -rf /var/lib/apt/lists/* &&\ | ||
git clone --depth 1 -b feature/numpy-and-ik https://github.com/diegoferigo/idyntree /tmp/idyntree &&\ | ||
mkdir -p /tmp/idyntree/build && cd /tmp/idyntree/build &&\ | ||
cmake .. \ | ||
-GNinja \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DIDYNTREE_USES_PYTHON=True \ | ||
-DPython_ADDITIONAL_VERSIONS=3.6 \ | ||
-DIDYNTREE_USES_PYTHON_VERSION=3.6 \ | ||
-DPYTHON_NUMPY_INCLUDE_DIR:PATH=/usr/lib/python3/dist-packages/numpy/core/include \ | ||
-DBUILD_SHARED_LIBS:BOOL=OFF \ | ||
&&\ | ||
cmake --build . --target install &&\ | ||
rm -r /tmp/idyntree | ||
ENV LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib | ||
ENV PYTHONPATH=${PYTHONPATH}:/usr/local/lib/python3/dist-packages | ||
|
||
# Prepare virtualenv variables | ||
ENV VIRTUAL_ENV=/venv | ||
ENV PATH=${VIRTUAL_ENV}/bin:${PATH} | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
COPY setup_virtualenv.sh /setup_virtualenv.sh | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
CMD ["bash"] |
File renamed without changes.
File renamed without changes.
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
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