HTBox / allReady

This repo contains the code for allReady, an open-source solution focused on increasing awareness, efficiency and impact of preparedness campaigns as they are delivered by humanitarian and disaster response organizations in local communities.
http://www.htbox.org/projects/allready
MIT License
891 stars 627 forks source link

Investigate (and Create?) Container Images with Requisite Tools to Contribute #2247

Open MisterJames opened 6 years ago

MisterJames commented 6 years ago

We have had a couple of requests that the start-up process can be a bit intimidating.

For those who live in a containerized world, having a Docker image or Azure VM that was prepped to go would be a handy way to jump into a pre-configured world of allReady.

Admittedly, I'm not well enough versed in this area to know how big this task is. We are looking for an SME that would be willing to offer some advice and/or create an easy "on-ramp" to help other who would like to contribute to allReady.

jonparker commented 6 years ago

There's instructions for using a docker image for sql server for Linux / Mac. This could be used for devs running Windows too who don't have sql or are not wanting to install it. For the nodejs and other tools it is a bit more complicated. I started a box starter script for installing the pre reqs on a new machine. I'll try and find the link and post it here.

jonparker commented 6 years ago

I'm wondering if providing a linux docker image with Nodejs, Rider and SQL server pre-installed would help... I'm wondering if people are finding it difficult due to not being familiar with Node/Git/Visual Studio/MS SQL Server.

MisterJames commented 6 years ago

@jonparker I know for sure that would have helped at a few of our code-a-thons.

As far as distribution goes, we'd likely want to set such images up through a CDN or similar, right? Should I start getting some accounts together? If so, who are the popular hosts/registries?

jonparker commented 6 years ago

hub.docker.com account would be good for docker images. For boxstarter you don't need an image as it's a script that downloads everything for you.

Potentially we could do a azure image too but it's probably not worth it unless there's a need for people to develop in a VM.

I think we should solve the problem of setting up a local/container environment first.

jonparker commented 6 years ago

Here's the link to the boxstarter script for setting up an environment for the mobile app development.

https://gist.github.com/jonparker/3f45edbd7eb17ba02c783d9e3b91bb23

mk0sojo commented 6 years ago

Wouldn't something like this help https://docs.docker.com/compose/aspnet-mssql-compose/

Workflow for a user would be something like this:

  1. Clone the allready repo
  2. Run docker "docker-compose up" and that should set everything up to run the the Allready Web app.

I haven't worked on the mobile app so I'm not that familiar with that.

mk0sojo commented 6 years ago

Had a go at creating docker support for debugging. Any feedback welcome.