farmbot_os/docs/BUILDING.md

1.2 KiB

Building an Image from source

This project is written in the programming language Elixir and built using the Nerves Project framework.

Before you begin

You will need a number of things before we start.

  • A Linux machine
  • A x64 bit machine
  • probably about 16 gigs of ram
  • about ~30 gigs of hard drive space
  • a fairly recent cpu

Install dependencies

If you have the above set up you will need some software dependencies.

  • Elixir found here
  • Nerves Bootstrapper found here
  • NodeJS found here

Set up environment

We are going to set up the environment for building Farmbot OS

mkdir farmbot
cd farmbot
git clone https://github.com/FarmBot/farmbot_os.git os
cd farmbot_os
npm install

Compile the application

From here you will have to choose your own adventure. You get to choose if you want development mode or production mode, and you get to choose the target you want to build the executables for. see the ENVIRONMENT for more details This will take a while depending on you machine.

export MIX_ENV=prod
export MIX_TARGET=rpi3
mix deps.get
mix firmware