Skip to content

Minimal-ish elixir development environment with easy ssh/rsync public key access

Notifications You must be signed in to change notification settings

toreriklinnerud/alpine-elixir-rsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

alpine-elixir-rsync

Zero config development Exlir development environment based on the lightweight Alpine Linux distribution to keep the image size managable. Your github username is used to find your public SSH key, after which you can log straight in without any configuration required. The idea is that you can easily edit the project on your laptop whilst compiling and running your code on a powerful server.

If running the docker image on a server replace localhost with the corresponding hostname

To launch the Elixir environment

This assumes that you've first added your public key to your GitHub profile (common).

  docker run -p 22:22 alpine-elixir-rsync <your_github_username>

To connect over ssh

  ssh default@localhost -p 2222

To continously sync an existing Elixir project from OS X to the Elixir enviroment

   brew install fswatch
   cd ~/<your>/<local_app_folder>
   alias run_rsync='rsync -azP -e "ssh -p 2222" --exclude ".*/" --exclude ".*" --exclude "tmp/" . default@localhost:/opt/app'
   run_rsync; fswatch -o . | while read f; do run_rsync; done

Run your Elixir code

   ssh default@localhost -p 2222
   cd <your_app>
   iex -S mix # etc...

About

Minimal-ish elixir development environment with easy ssh/rsync public key access

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages