I would like to get advice on the best workflow for dockerizing jenkins on AWS.
I've read these resources one, two, jenkins-docker-github
From those, I summarize I should do the following:
1) Launch new Instance on AWS
2) Add #include http://get.docker.com/ to UserData
3) Install Docker on new instance
4) Download jekins docker repo from github, and run their Dockerfile
5) Mount volume to local disk
6) Save image to private repo
From the image, I can re-launch new containers. The question I now have is this: For containerization and re-use, once I have an image, how can I launch a container on EC2?
Is there a docker specific procedure, or do I provision an EC2 instance normally, and use some CM tool like Ansible to download the image and run it?
Aucun commentaire:
Enregistrer un commentaire