bio4j / bio4j-titan

Titan-specific bio4j implementation
https://github.com/bio4j/bio4j
6 stars 2 forks source link

Help needed to publish and run sbt from AWS #31

Open pablopareja opened 10 years ago

pablopareja commented 10 years ago

Hi!

It takes forever to publish the project with my internet connection so I wanted to do everything from AWS and simply commit-push the code from local. Could you please help me out with what I exactly would need to config for that? @eparejatobes @laughedelic Thanks!

:octopus:

laughedelic commented 10 years ago

first things that you need on the instance: java, sbt & git. I don't know, what else? just clone the repo and run sbt

eparejatobes commented 10 years ago

@laughedelic WDYT?

eparejatobes commented 10 years ago

but I guess it'd be nice to have a hook or something

pablopareja commented 10 years ago

isn't it something that you already do for other projects?

eparejatobes commented 10 years ago

we want to, but we're not doing it right now

laughedelic commented 10 years ago

@pablopareja publishing from ec2? not that I know. @eparejatobes what the heck hook?

pablopareja commented 10 years ago

aahm I thought that there was some sort of standarized way to do it that was already been used in other projects.

laughedelic commented 10 years ago

well, you can apply a git statika bundle. and get the starting configuration, then do what you want. or write a bundle for this particular task and just apply it.

pablopareja commented 10 years ago

ein whaat? :confused: :laughing:

eparejatobes commented 10 years ago

@laughedelic a github webhook

eparejatobes commented 10 years ago

there's even one for sns: https://api.github.com/hooks

eparejatobes commented 10 years ago

and for sqs :)

laughedelic commented 10 years ago

@eparejatobes I don't know anything about it...

@pablopareja a short answer to this issue: no we don't have a one-button solution for you.

eparejatobes commented 10 years ago

but we need one

eparejatobes commented 10 years ago

in general

laughedelic commented 10 years ago

agree. and also many other cool things...

pablopareja commented 10 years ago

well let me know if I can help with something, but I have to say that this would be extremely helpful for me! :smiley:

eparejatobes commented 10 years ago

Let me think about it a bit first, and I'll tell you tomorrow

pablopareja commented 10 years ago

OK!

marina-manrique commented 10 years ago

Maybe I'm saying nonsense but @evdokim gave me a good idea (I had a similar issue for running metapasta and nispero). He has an autoscalling group with everything he needs to publish and do whatever he wants and then he sets the capacity to 1 when he wants an instance for publishing and to 0 when he wants to terminate with it

Maybe it takes a bit to configure this for the first time but then it's useful for all the projects

evdokim commented 10 years ago

@marina-manrique it works perfect for adhoc personal usage. But in general it's quite easy to configure build server with:

pablopareja commented 10 years ago

@eparejatobes any updates on this?

eparejatobes commented 10 years ago

How this could be done in a simple way:

  1. set up an autoscaling group with Jenkins instances together with a funny guy controlling its capacity (after x hours without builds kill everything etc)
  2. an sbt plugin which would configure where this project is supposed to be built and how (basically adding a git hook)

We could easily extend this to importing data, by creating projects for each module; building/releasing them would be done in specific autoscaling groups with the right machine types etc.

pablopareja commented 10 years ago

ok, let's do this when we have some time for it :wink:

eparejatobes commented 10 years ago

Yes, I want to have this for 1.0