Skip to content

Instantly share code, notes, and snippets.

@stahnma
Created June 25, 2019 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stahnma/28194030570c39f738f07b0daebed47a to your computer and use it in GitHub Desktop.
Save stahnma/28194030570c39f738f07b0daebed47a to your computer and use it in GitHub Desktop.
from alpine
run apk update && apk add cmake boost-dev make curl git curl-dev gcc g++ yaml-cpp-dev boost-static
run mkdir /workspace && cd workspace && \
git clone https://github.com/puppetlabs/leatherman
run sed -i -e 's/sys\/poll/poll/' /usr/include/boost/asio/detail/socket_types.hpp
run cd /workspace/leatherman; mkdir build; cd build; cmake -DBOOST_STATIC=OFF -DCMAKE_VERBOSE_MAKEFILE=ON ..; make -j1 ; make install
copy Dockerfile /Dockerfile
cmd ["/bin/sh"]
@Sharpie
Copy link

Sharpie commented Jun 25, 2019

Looks like the answer for making GCC 8 happy is 🥁

-DENABLE_CXX_WERROR=OFF -DCMAKE_CXX_FLAGS='-O1'

https://github.com/puppetlabs/puppet-agent/blob/6.5.0/configs/components/leatherman.rb#L79
https://tickets.puppetlabs.com/browse/PA-2362

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment