ElasticBeanstalk applications to AWS How to deploy...

Post on 27-Jul-2020

9 views 0 download

Transcript of ElasticBeanstalk applications to AWS How to deploy...

How to deploy Dockerized applications to AWS ElasticBeanstalkPavel Bely, Seavus2017

AgendaDockerize Spring Boot application

Deploy to AWS ElasticBeanstalk

Automate deployment

+

Orchestration

docker run -p 5432:5432 --name jhipsta-db … postgres:9.5

docker run -p 8080:8080 --link jhipsta-db:jhipsta-db … jhipster-app:latest

Meet docker-compose!

Continuous deployment (Build)

New commit pushed to repo

Webhook triggers

Jenkins build

Docker image

pushed to ECR

mvn clean package,docker build .

Continuous deployment (Deploy)

Run deploy job,select Docker

tag to be deployed

Checkout Dockerrun.aws.json

from git repo

In Dockerrun.aws.json replace placeholder with selected TAG and deploy

to ElasticBeanstalk

Pull images specified in

Dockerrun.aws.json and run containers

from them at a selected

environment

Questions?

https://github.com/pavelbely/javaskop17