compdemocracy / polis

:milky_way: Open Source AI for large scale open ended feedback
https://pol.is
GNU Affero General Public License v3.0
775 stars 183 forks source link

Support deployment via AWS #238

Open patcon opened 4 years ago

patcon commented 4 years ago

Re-ticketed from https://github.com/pol-is/polis-issues/issues/128

From 2020-04-03 notes:

  • david: would like to use AWS fargate infra to deploy all components. pulumi tool? helps build AWS stacks.

@crkrenn @david-nadaraia do you still hope to work on this?

crkrenn commented 4 years ago

Fargate is still on my wish list, but I think I will be working with EC2 for the near term.


Q: Why is this email [hopefully] five sentences or less? A: http://five.sentenc.es

From: Patrick Connolly notifications@github.com Reply-To: pol-is/polisServer reply@reply.github.com Date: Saturday, May 9, 2020 at 7:53 PM To: pol-is/polisServer polisServer@noreply.github.com Cc: Ckl krenn1@llnl.gov, Mention mention@noreply.github.com Subject: [pol-is/polisServer] Support deployment via AWS Fargate (#238)

Re-ticketed from https://github.com/pol-is/polis-issues/issues/128

From 2020-04-03 noteshttps://hackmd.io/1U58Q-KOSpeDUagCMCDwzQ?view:

@crkrennhttps://github.com/crkrenn @david-nadaraiahttps://github.com/david-nadaraia do you still hope to work on this?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/pol-is/polisServer/issues/238, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABOJ5VZZCACRS4XQYJ6I3G3RQYJJLANCNFSM4M5BXM5Q.

crkrenn commented 4 years ago

I've given up on pulumi. It is still a work in progress. A benefit was that they support multiple languages (typescript, python & go) and multiple cloud providers (Azure, Google, AWS, etc.). In practice, their examples were all for a single cloud provider and they API's were significantly different between typescript, python, and go.

I am switching to docker-compose and docker-machine right now. It also supports multiple cloud providers and fargate.

I've added some brief notes on using docker-machine and docker-compose to launch polis on an aws instance in the docs folder in the following pull request: https://github.com/pol-is/polisServer/pull/414.

Next

  1. Test docker-machine and docker-compose with fargate for a simple webserver container.
  2. Test docker-machine and docker-compose with fargate for polisServer.
  3. Work on https and route 53 for a named service.
patcon commented 4 years ago

Related: New amazon plugin announced last week: https://www.docker.com/blog/from-docker-straight-to-aws/