ElasticBeanstalk applications to AWS How to deploy...
Transcript of ElasticBeanstalk applications to AWS How to deploy...
![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](https://reader034.fdocuments.us/reader034/viewer/2022050314/5f76f7c077d17b16dc4ecaf0/html5/thumbnails/1.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022050314/5f76f7c077d17b16dc4ecaf0/html5/thumbnails/2.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022050314/5f76f7c077d17b16dc4ecaf0/html5/thumbnails/3.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022050314/5f76f7c077d17b16dc4ecaf0/html5/thumbnails/4.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022050314/5f76f7c077d17b16dc4ecaf0/html5/thumbnails/5.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022050314/5f76f7c077d17b16dc4ecaf0/html5/thumbnails/6.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022050314/5f76f7c077d17b16dc4ecaf0/html5/thumbnails/7.jpg)
Questions?
https://github.com/pavelbely/javaskop17