intuit / wasabi

Wasabi A/B Testing service is an open source project that is no longer under active development or being supported
Apache License 2.0
1.13k stars 241 forks source link

Running on AWS in ECS or Fargate? #329

Open jgillick opened 6 years ago

jgillick commented 6 years ago

Has anyone successfully run this on ECS or Fargate? I'm wondering how I'd go about approaching this with wasabi. Any help is appreciated.

Thank you!

stefanrmeier commented 6 years ago

@jgillick I am working on this right now. Did you have any progress?

jgillick commented 6 years ago

I haven't had the time to put towards this yet. How are you planning to approach it?

rwadstein commented 6 years ago

I managed to get a dedicated docker image working and ready to be deployed. We use Codeship Pro to do our CI and have yet to get it in there to actually build and push to AWS ECR. So far this is what I have done and got it working:

  1. Built a docker image whose sole responsibility is to bootstrap and build via an entrypoint script.
  2. After bootstrap and build complete, the entrypoint script would copy all relative build directories over to a docker volume mount including the Dockerfile in the wasabi repo.
  3. Created a docker-compose.yml for the image to be built
  4. Created a bash script to launch the compose file, build the wasabi-main Dockerfile, build cqlsh.docker, build migration.docker

Essentially all I really needed for an ECS deployment is the wasabi-main docker image.

stefanrmeier commented 6 years ago

@rwadstein Would you mind to share your docker and docker-compose file? @jgillick I was thinking of creating a docker file where I install the debian rpms. For mysql I will probably use RDS and a cassandra cluster.

ahmet8282 commented 5 years ago

It would be great if you can share it @rwadstein

brendanjryan commented 5 years ago

☝️ interested in this as well!

Here at @vsco we are running wasabi in K8s and found the docker workflow to be a little tricky to run in prod.

With these few patches (and a few internal) we have been successful and stable for the last year+ though!!

https://github.com/intuit/wasabi/pull/304 https://github.com/intuit/wasabi/pull/294