+ All Categories
Home > Documents > ElasticBeanstalk applications to AWS How to deploy...

ElasticBeanstalk applications to AWS How to deploy...

Date post: 27-Jul-2020
Category:
Upload: others
View: 7 times
Download: 0 times
Share this document with a friend
7
How to deploy Dockerized applications to AWS ElasticBeanstalk Pavel Bely, Seavus 2017
Transcript
Page 1: ElasticBeanstalk applications to AWS How to deploy Dockerizedjug.mk/presentations/javaskop17/Pavel.pdf · Jenkins build Docker image pushed to ECR mvn clean package, docker build

How to deploy Dockerized applications to AWS ElasticBeanstalkPavel Bely, Seavus2017

Page 2: ElasticBeanstalk applications to AWS How to deploy Dockerizedjug.mk/presentations/javaskop17/Pavel.pdf · Jenkins build Docker image pushed to ECR mvn clean package, docker build

AgendaDockerize Spring Boot application

Deploy to AWS ElasticBeanstalk

Automate deployment

+

Page 3: ElasticBeanstalk applications to AWS How to deploy Dockerizedjug.mk/presentations/javaskop17/Pavel.pdf · Jenkins build Docker image pushed to ECR mvn clean package, docker build

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

Page 4: ElasticBeanstalk applications to AWS How to deploy Dockerizedjug.mk/presentations/javaskop17/Pavel.pdf · Jenkins build Docker image pushed to ECR mvn clean package, docker build

Meet docker-compose!

Page 5: ElasticBeanstalk applications to AWS How to deploy Dockerizedjug.mk/presentations/javaskop17/Pavel.pdf · Jenkins build Docker image pushed to ECR mvn clean package, docker build

Continuous deployment (Build)

New commit pushed to repo

Webhook triggers

Jenkins build

Docker image

pushed to ECR

mvn clean package,docker build .

Page 6: ElasticBeanstalk applications to AWS How to deploy Dockerizedjug.mk/presentations/javaskop17/Pavel.pdf · 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

Page 7: ElasticBeanstalk applications to AWS How to deploy Dockerizedjug.mk/presentations/javaskop17/Pavel.pdf · Jenkins build Docker image pushed to ECR mvn clean package, docker build

Questions?

https://github.com/pavelbely/javaskop17


Recommended