This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-20
Channels
- # bangalore-clj (1)
- # beginners (145)
- # boot (8)
- # braid-chat (2)
- # capetown (2)
- # cider (27)
- # cljs-dev (232)
- # cljsrn (30)
- # clojure (223)
- # clojure-boston (1)
- # clojure-dusseldorf (2)
- # clojure-greece (1)
- # clojure-italy (21)
- # clojure-russia (16)
- # clojure-sanfrancisco (13)
- # clojure-spec (33)
- # clojure-uk (56)
- # clojurescript (165)
- # core-async (16)
- # core-logic (5)
- # cursive (14)
- # data-science (2)
- # datavis (2)
- # datomic (49)
- # duct (15)
- # editors (5)
- # emacs (6)
- # fulcro (11)
- # graphql (11)
- # hoplon (8)
- # jobs (4)
- # jobs-discuss (82)
- # jobs-rus (7)
- # leiningen (4)
- # luminus (5)
- # off-topic (90)
- # om (7)
- # om-next (1)
- # parinfer (67)
- # pedestal (34)
- # portkey (46)
- # re-frame (12)
- # reagent (4)
- # reitit (3)
- # remote-jobs (1)
- # ring-swagger (8)
- # shadow-cljs (13)
- # spacemacs (18)
- # specter (6)
- # sql (5)
- # tools-deps (4)
- # unrepl (40)
- # yada (26)
@amarjeet, FWIW, I find it easiest to deploy Pedestal services to ElasticBeanstalk in a Docker container.
@ddeaguiar I think I can try that
The lein pedestal-service template creates a Dockerfile which should be suitable for most cases. Keep in mind that EB uses nginx to proxy all requests to your container so you may need to create an nginx config file if you need control over that.
It should be straight forward. You’ll just need to create a Dockerrun.aws.json file. I recommend using the eb cli for pushing change to you environment.
tried building docker image, its not been able to build. Error: `Get https://registry-1.docker.io/v2/: dial tcp: lookup http://registry-1.docker.io on 192.168.65.1:53: read udp 192.168.65.2:45426->192.168.65.1:53: i/o timeout Docker image could not be built.`
@ddeaguiar any clear way to create a jar build? I am getting this error - javax/servlet/http/HttpServletRequest
Creating an uberjar should just work. You need to undo the changes you made to create a war file
Hey @ddeaguiar I am able to run the docker image locally, but the beanstalk is not recognizing Dockerfile when I am deploying standalone.jar
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_docker_image.html
You can provide Elastic Beanstalk with only the Dockerrun.aws.json file, or with a .zip archive containing both the Dockerrun.aws.json and Dockerfile files. When you provide both files, the Dockerfile describes the Docker image and the Dockerrun.aws.json file provides additional information for deployment as described later in this section.
so there are a couple ways to do this, you can deploy your docker image to an ecs registry repo or build the image at deployment time
so, it seems like the configs in this file are created when I was creating the beanstalk environment, so any specific part of the config should I mention (thats is mandatory) in the .json file
it will amount to environment variable mappings (if any), port mappings, memory settings and log mount points
once you have that working, then deploy your app which can have external dependencies