2.4 KiB

WARNING - WORK IN PROGRESS

This code is known to be broken and/or incomplete. IT DOES NOT WORK. 

We are actively working on fixing it, and we really, really do not recommend you download it just yet.

We will remove this warning from the repository when it is no longer required.

solo-builder

using vagrant

Works in vagrant, typically useful for local builds. First install this plugin:

$ vagrant plugin install vagrant-guest_ansible

NOTE: Make sure you have a file ~/.ssh/github_token with a Github token for downloading files. This will be copied into your Vagrant image when provisioning.

Add the SSH key you have connected to Github to your ssh-agent to be able to provision your VM. Then run vagrant up:

$ ssh-add ~/.ssh/id_rsa
$ vagrant up

(If vagrant up fails, run vagrant provision to try provisioning your VM again.)

To fire off the builder:

$ vagrant ssh -c /vagrant/builder.sh

*NOTE: If you are seeing jq failures, you will need to edit each of these files:

nano /solo-build/sources/meta-3dr/recipes-firmware/artoo/artoo-firmware_*.bb
nano /solo-build/sources/meta-3dr/recipes-firmware/gimbal/gimbal-firmware_*.bb
nano /solo-build/sources/meta-3dr/recipes-firmware/pixhawk/pixhawk-firmware_*.bb

And replace

    TOKEN=...

with

    TOKEN=$(cat ~/.ssh/github_token)

using docker

Works in Docker and boot2docker. Copy id_rsa and solo-builder.pem to this directory (sorry). Then run

docker build -t 3drobotics/solo-builder .

Then run

docker run -i 3drobotics/solo-builder su -l ubuntu /solo-build/builder.sh

TODO: write a script that gets the files off after

using something else

playbook.yml is an ansible file for an Ubuntu 14.04 distro. builder.sh is the build script for a user named ubuntu. Make it happen!

repos

Private:

Public: