margyle / decaf

Decaf: Does Every Coffee Action, Friend
26 stars 10 forks source link

[WIP] Dockerise environment #7

Closed jjok closed 5 years ago

jjok commented 5 years ago

I think using Docker or similar(?) would at least help get people involved with development, and potentially also make distributing Mugsy images for Production a lot easier too.

@margyle Have you used Docker before?

margyle commented 5 years ago

I only know the very basics and haven't actually used it much. I have been hoping to learn more though and had thought it would be a great fit for the exact reasons you listed. Really appreciate this commit, definitely not something I would have been able to implement with out finding some extra time to learn the basics.

jjok commented 5 years ago

It means, to get Decaf running on a Pi, you have to:

  1. Burn Raspbian to your SD card
  2. Install Git and Docker
  3. Clone this repo
  4. Build the image
  5. Run the image

That would be the process for development.

For Production, you would

  1. Do the build yourself
  2. Push it to some public(?) Docker image repository (eg Docker Hub)
  3. Have some way, on each Musgy, to change to see if there's a new version of the image, and pull it, if there is.
jjok commented 5 years ago

@margyle Do you want me to add some instructions to the README?

margyle commented 5 years ago

Thanks for the additional info! Feel free to add to the readme as well. I'm gonna find some time to organize/clean it up tomorrow.