chef omnibus build script https://git.io/fpiRe
Chef omnibus build script to automate a build of chef for ARM. Primary goal to support rasbian_bootstrap.
curl -L https://git.io/fpiRv | sudo bash
The core details derived from Mattray's Chef14 ARM on the Beaglebone Black post.
This is a fully scripted build and install of chef for Raspbian (or any other deb).
- installs build deps
- sync time
- create omnibus user
- build omnibus-toolchain and install
- build chef using omnibus-toolchain and install
After a run the .deb package can be found in:
- /home/omnibus/omnibus_build/build/omnibus-toolchain/pkg
- pwd/home/omnibus/omnibus_build/build/chef-14.8.10/omnibus/pkg
curl -L https://git.io/fpiRv | sudo bash
or
git clone https://gist.githubusercontent.com/dayne/330c331ef2b5a69b318f5fb01c49b40a/ omnibus_build
cd omnibus_build
sudo ./build_and_install.sh
example of setting specific version of ruby or chef to build:
curl -L https://git.io/fpiRv | sudo RUBY_VER=2.5.3 CHEF_VER=14.8.10 bash
Want to do this raspbian chef arm build on x86 inside a docker container?
I've tested the following and it works on my Ubuntu 18.06 box:
- install docker
- install install qemu-user:
apt-get install qemu-user
- launch a raspbian docker image:
docker run -v /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static --rm -ti resin/rpi-raspbian curl -L https://git.io/fpiRv | sudo bash