Skip to content

DonkeyPi/dpi_mix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DonkeyPi Mix

Development

#creates dpi_mix-<version> in project folder
mix archive.build
#installs dpi_mix-<version>.ez archive to 
#/home/samuel/.asdf/installs/
mix archive.install 
#requires vscode github authentication
mix archive.install git https://github.com/DonkeyPi/dpi_mix

Config

#cat .dpi_runtime.sel
rpi4
#cat .dpi_runtime.exs
[
  {:p3420, target: :host, host: "localhost"},
  {:svmbair, target: :host, host: "localhost"},
  {:rpi4, target: :rpi4, host: "dpi-4ad8.local"},
  {:rpi400, target: :rpi4, host: "dpi-4975.local"},
  {:rpi3, target: :rpi3, host: "dpi-62c2.local"},
  {:qemu, target: :x86_64, host: "dpi-3456.local"}
]

Tasks

#runtimes defined in mix.exs
#set rpi4 as default runtime
#creates file .dpi_mix.srt
mix dpi.select rpi4
#arg default to hostname
mix dpi.select

#queries cookie and shows shell commands
mix dpi.shell

#connect to the application log
mix dpi.log

#run app on runtime
#build+upload+start
mix dpi.run

#upload app to runtime
mix dpi.upload

#manages deps for runtime
#task: get | update | clean | ...
mix dpi.deps <task> <args...>

#build app for runtime
mix dpi.build

#start up in runtime
#auto flag set to true
mix dpi.start

#stop up in runtime
#auto flag set to false
mix dpi.stop

Roadmap

  • Eval and shell wont kill their processes on exit
    • To detect process are alive try bang registering
    • true = Process.register(self(), :some_name)
    • typing exit on shell does kill the process
    • ssh connection drop should be detected
    • pending to check if there is a timeout
    • same happens if using ssh -p8022 app@hostname
  • Use target from selected runtime config.
  • [-] Load nerves system dependency from runtime config.
    • Deps changes are infrequent
    • Deps will be autogen eventually

References

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages