Skip to content

A small hello_world cross compilation example for raspberry pi4 from macOS using earthly

Notifications You must be signed in to change notification settings

HandOfGod94/elixir-pi4-cross-compile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HelloWorld

Cross compiling elixir has always been PITA.

This is small example to cross-compile elixir app from MacOSX. It uses earthly.dev

Prerequisite

  • Docker >= 19
  • earthly

Command

# build otp release for pi as tarball
earthly +build

This will generate a tarball, which is compatible with raspberry pi 4. If you want to work with older version, tweak --platform value as per the hostnamectl info.

Note: I have not tried this with windows as docker host. It may or may not work.

About

A small hello_world cross compilation example for raspberry pi4 from macOS using earthly

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages