docker-tips | Docker user for a long time | Continuous Deployment library
kandi X-RAY | docker-tips Summary
kandi X-RAY | docker-tips Summary
After being a Docker user for a long time, focusing mainly on Docker on Azure, I joined Docker Inc. Discussing with engineers, I realized there are many undocumented tips and best practices they use daily that could benefit the Docker user community. I will try to document as many as I can in this repository.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of docker-tips
docker-tips Key Features
docker-tips Examples and Code Snippets
Community Discussions
Trending Discussions on docker-tips
QUESTION
I wanted to make a CI/CD with a project on Github using GitHub Actions. Used this tutorial:
https://www.blog.labouardy.com/elastic-beanstalk-docker-tips/
But I still do not understand how elastic beanstalk will pull the docker image from the DockerHub.
How should this happen?
And why do we need a Dockerrun.aws.json file and how to use it?
ANSWER
Answered 2020-Oct-20 at 08:53There are different approaches that can be followed. The blogger chose to use the Dockerrun.aws.json
+ Dockerfile
+ zipfile approach. In other words, every time the CircleCI builds, it uploads a zip file containing the Dockerrun.aws.json
(the Dockerfile
is not really needed in this case since he's building the image remotely as well as the rest of the application since he's not mapping anything).
The circleci executes the following steps:
- build image
- push image
- send zip file to AWS Elastic Beanstalk
AWS Elastic Beanstalk will simply follow the configuration inside the Dockerrun.aws.json
and update using the tag ${CIRCLE_SHA1}
.
Is the Dockerrun.aws.json
necessary? No, you can also use a docker-compose.yml
file.
I suggest you check AWS documentation on this topic.
EDIT: IMHO it's better to use docker-compose.yml
since it allows to start the containers locally and make sure they're ok before updating the application remotely
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install docker-tips
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page