Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Gepetto Utils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gepetto
Gepetto Utils
Commits
debf1e4c
Commit
debf1e4c
authored
4 years ago
by
Guilhem Saurel
Browse files
Options
Downloads
Patches
Plain Diff
docker hpp-fcl
parent
df8ef19b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker/hpp-fcl/Dockerfile
+55
-0
55 additions, 0 deletions
docker/hpp-fcl/Dockerfile
with
55 additions
and
0 deletions
docker/hpp-fcl/Dockerfile
0 → 100644
+
55
−
0
View file @
debf1e4c
ARG
UBUNTU=bionic
FROM
ubuntu:$UBUNTU
# Setup Robotpkg apt binary repository
ARG
UBUNTU=bionic
ENV
UBUNTU=$UBUNTU
RUN
apt-get update
-y
&&
apt-get
install
-y
\
build-essential
\
cmake
\
curl
\
git
\
&&
echo
"deb [arch=amd64] http://robotpkg.openrobots.org/packages/debian/pub
$UBUNTU
robotpkg"
\
>>
/etc/apt/sources.list.d/robotpkg.list
\
&&
echo
"deb [arch=amd64] http://robotpkg.openrobots.org/wip/packages/debian/pub
$UBUNTU
robotpkg"
\
>>
/etc/apt/sources.list.d/robotpkg.list
\
&&
curl http://robotpkg.openrobots.org/packages/debian/robotpkg.key | apt-key add -
\
&&
rm
-rf
/var/lib/apt/lists/
*
ENV
ROBOTPKG_BASE=/opt/openrobots
ENV
CMAKE_PREFIX_PATH=$ROBOTPKG_BASE:$CMAKE_PREFIX_PATH \
LD_LIBRARY_PATH=$ROBOTPKG_BASE/lib:$ROBOTPKG_BASE/lib/plugin:$LD_LIBRARY_PATH \
PATH=$ROBOTPKG_BASE/bin:$ROBOTPKG_BASE/sbin:$PATH \
PKG_CONFIG_PATH=$ROBOTPKG_BASE/lib/pkgconfig:$PKG_CONFIG_PATH \
ROS_PACKAGE_PATH=$ROBOTPKG_BASE/share:$ROS_PACKAGE_PATH
# get hpp-fcl dependencies
ARG
PYTHON=python3
ENV
PYTHON=$PYTHON
RUN
apt-get update
-y
\
&&
apt-get
install
-y
\
$(
echo
$PYTHON
|
sed
's/2//'
)
\
&&
apt-get
install
-y
\
libassimp-dev
\
libboost-all-dev
\
robotpkg-octomap
\
robotpkg-py
$(
$PYTHON
-V
2>&1 |
sed
's/.*\([23]\)\.\([0-9]\).*/\1\2/'
)
-eigenpy
\
&&
rm
-rf
/var/lib/apt/lists/
*
# (in)validate docker build cache with the HTTP "Last-Modified" header from github
ARG
NAMESPACE=humanoid-path-planner
ARG
BRANCH=devel
ADD
https://api.github.com/repos/${NAMESPACE}/hpp-fcl/commits/${BRANCH} /tmp
RUN
git clone
--recursive
--branch
$BRANCH
https://github.com/
$NAMESPACE
/hpp-fcl.git
\
&&
mkdir
hpp-fcl/build
WORKDIR
/hpp-fcl/build
ARG
MAKE_JOBS=1
ENV
CTEST_PARALLEL_LEVEL=$MAKE_JOBS CTEST_OUTPUT_ON_FAILURE=true
RUN
cmake
-DPYTHON_EXECUTABLE
=
$(
which
$PYTHON
)
..
\
&&
make
-j
$MAKE_JOBS
\
&&
make
test
\
&&
make
install
ENV
PYTHONPATH=/usr/local/lib/python3/dist-packages/
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