Fork me on GitHub
#boot
<
2016-01-09
>
richiardiandrea00:01:33

boot is amazing guys, thanks, enjoying it as we speak 😄

micha03:01:52

glad you're enjoying @richiardiandrea

jethroksy04:01:55

are there any examples of a barebones web app that's deployed to elastic beanstalk with docker?

jethroksy04:01:21

mine works locally but seems to have problems when deployed up...

micha04:01:50

can you paste your Dockerfile and Dockerrun.aws.json file please?

micha04:01:06

we deploy apps to beanstalk all the time

micha04:01:20

so i might be able to see what's up

micha04:01:54

oops wrong window 😕

jethroksy04:01:28

I started another project that only has immutant, will link the github page soon

micha04:01:05

have you done eb ssh and gone into the docker container in a beanstalk instance?

micha04:01:10

you can debug locally there

micha04:01:26

docker exec -it <dockerid> bash

micha04:01:40

that's probably what i would do

micha04:01:52

you can also look at the nginx config in the host

micha04:01:09

if you need to know how it's set up

jethroksy04:01:43

i'm not on my office machine, so can't really ssh there now

jethroksy04:01:56

but i can set up another instance i guess

micha04:01:20

i mean that's the best way to debug it

micha04:01:29

because it takes so long to deploy those things

micha04:01:41

you don't want to be editing files locally and deploying for each chaneg

micha04:01:54

you can edit stuff in the running server, have a repl going etc

micha05:01:16

also eb logs is pretty key

micha05:01:34

so you can see if something is failing

jethroksy05:01:36

if i don't use load balancing and stuff

jethroksy05:01:45

would i be better off just using an EC2 instance

micha05:01:47

the stdouterr.log log file is usually filled with interesting stuff

jethroksy05:01:15

eb adds a lot of fluff that i don't yet know about

micha05:01:21

especially if you don't mind manually installing and deploying

micha05:01:31

yeah i'm not a huge fan of eb really

micha05:01:43

it's kind of a leaky abstraction

micha05:01:58

you end up needing to know all the implementation details

jethroksy05:01:00

wouldn't it just be apt-get install docker and enabling the service

micha05:01:02

and then they change something

micha05:01:21

well you need to set up security groups and whatnot

micha05:01:32

but that's pretty simple

micha05:01:38

open port 80 or whatever

jethroksy05:01:39

i'm way more comfortable with that than eb ><

micha05:01:43

yeah i hear ya

micha05:01:07

and if you need to scale there are asgs and elbs you can plug in anyway

jethroksy05:01:18

won't need to scale because its for internal use

micha05:01:29

yeah i'm just saying

micha05:01:43

the general anti eb mood lol

jethroksy05:01:04

i'd really rather just get a DO 5 dollar a month tier

jethroksy05:01:14

but the company is against that

micha05:01:51

an m3.medium will run your app i'm sure

micha05:01:41

if you make an asg and elb you can have it spin up a new machine if your thing crashes

micha05:01:57

which is a nice thing that beanstalk gives you

jethroksy05:01:35

I'll probably consult someone else in my office/task him to do it lol

jethroksy05:01:48

i'm no unicorn dev

micha05:01:07

what is a unicorn dev?

flyboarder06:01:40

i saw this and had to share 😛

jethroksy07:01:18

haha yeah basically someone who can do it all

micha07:01:47

but doesn't really exist, yes

micha07:01:06

except in my niece's imagination

magomimmo08:01:03

hi there: just released the tutorial 19 of the modern-cljs series. It try to explain how to make a library compliant with the new Reader Conditionals extension: https://github.com/magomimmo/modern-cljs/blob/master/doc/second-edition/tutorial-19.md

onetom14:01:40

@magomimmo: wow, that's a lot of info! but it's great how you detail out every step and also include the reasoning, so people don't have to look so many things up elsewhere. if someone is advanced enough, they can skim thru the parts which are familiar anyway, but it's immensely useful for beginners.

magomimmo14:01:00

@onetom: yep. the web is great, until you get lost in its immensity. I still have to better grasp the import/require part for google closure class/namespace. At the moment I used import for goog.Uri, but require works as well (and smell more clojurish to me too)

donmullen14:01:44

@onetom: I don’t recall - did you ever do a native wrapper around hoplon? If so was it phonecap/cordova or http://trigger.io?

martinklepsch14:01:31

@magomimmo: wouldn't it make sense to use boot for local installation as well if you're already using it for everything else?

magomimmo14:01:34

@martinklepsch: I'd had to introduce pom as well and the tutorial was already too long 😞. In the next tutorial I’ll do all that stuff with boot, including clojars deployment

magomimmo14:01:15

@martinklepsch: but first I’d like to introduce test.check….

onetom14:01:29

@donmullen: my colleague - @peterromfeld - did it with http://trigger.io as per micha's/alan's recommendation.