Skip to content

Instantly share code, notes, and snippets.

Michael Stahnke stahnma

Block or report user

Report or block stahnma

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:28194030570c39f738f07b0daebed47a
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"]
@stahnma
stahnma / notes.md
Last active Jun 23, 2018
BeerCityCode2018 - Stahnke - The Home Game
View notes.md

Hello, I assume you found this from my talk at BeerCityCode 2018. If so, great. If not, also great. It's the internet, we can all be friends. -- @stahnma

References

Books

View -
# this one is important
SET(CMAKE_SYSTEM_NAME Linux)
# these ones not so much
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_SYSTEM_PROCESSOR arm)
# specify the cross compiler
SET(PL_TOOLS_ROOT /usr/)
SET(PL_TOOLS_PREFIX ${PL_TOOLS_ROOT}/arm-linux-gnueabihf)
#SET(PL_TOOLS_SYSROOT ${PL_TOOLS_PREFIX}/sysroot/lib/arm-linux-gnueabihf)
View -
This file has been truncated, but you can view the full file.
the component DSL method signature #environment({Key => Value}) is deprecated
and will be removed by Vanagon 1.0.0.
Please update your project configurations to use the form:
#environment(key, value)
Value "/opt/pl-build-tools/bin:$$PATH:/opt/puppetlabs/puppet/bin" looks like it's escaping one or more shell variable names for shell interpolation.
"$$PATH" will be coerced to "$(PATH)"
All environment variables will now be resolved by Make before they're executed
by the shell. These variables will be mangled for you for now, but you should
View -
checking limits.h presence... yes
checking for limits.h... yes
checking xlocale.h usability... yes
checking xlocale.h presence... yes
checking for xlocale.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
View -
This file has been truncated, but you can view the full file.
the component DSL method signature #environment({Key => Value}) is deprecated
and will be removed by Vanagon 1.0.0.
Please update your project configurations to use the form:
#environment(key, value)
Value "/opt/pl-build-tools/bin:$$PATH:/opt/puppetlabs/puppet/bin" looks like it's escaping one or more shell variable names for shell interpolation.
"$$PATH" will be coerced to "$(PATH)"
All environment variables will now be resolved by Make before they're executed
by the shell. These variables will be mangled for you for now, but you should
View Getting "throughput" on the compile masters
#!/usr/bin/env bash
# Usage example: ./get_compiles 2017-09-27 05 06 07 08
DATE="$1"
shift
for x in "$@"
do
egrep "'Compiled catalog'|'Compiled static catalog'" /var/log/puppetlabs/puppetserver/puppetserver.log | grep "^$DATE $x:" | wc -l
View -
The git source `git://github.com/puppetlabs/packaging.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 10.5.0
Using ast 2.2.0
Using fustigit 0.1.4 (was 0.1.3)
Using git 1.3.0
Installing json 1.8.3 with native extensions
Using redis 3.3.3 (was 3.3.1)
View -
This file has been truncated, but you can view the full file.
rewrite rule support is deprecated and will be removed before Vanagon 1.0.0.
Rewritten URLs will be automatically converted into mirror URLs for now but
please use the component DSL method '#mirror url' to define new mirror URL
sources for a given component.
the component DSL method signature #environment({Key => Value}) is deprecated
and will be removed by Vanagon 1.0.0.
Please update your project configurations to use the form:
#environment(key, value)
View PuppetConf2016.md

Tools in play

  • Vanagon - Combine all your software into a package with this one weird trick
  • VMPooler - Warm cache for VMs of all flavors
  • EZbake - Packaging tool for clojure projects
  • Beaker - Testing Harness
  • Puppet Agent - The AIO package of Puppet and friends
  • Packaging Repo - packaging and shipping workflows
  • PL Build Tools - GCC and friends for building our stack
You can’t perform that action at this time.