container the hard way
problem #1
create a docker images and host php sample application in container with following parameter
Problem #2 :
Deploy docker private registry with following parameters
Problem #3 :
USe aws elastic bean stalk to build and deploy code using jenkins like CI|CD
problem #4:
write compose file to host multi tier application
case 1 :
create a docker images and host php sample application in container with following parameter
- base image must be centos
- use adhoc.dockerfile as docker filename
- sample php page must be on github repo
- use github repo directly inside dockerfile
- expose 81 port inside dockerfile
- configure httpd daemon in foreground mode using ENTRYPOINT
- container name must be adhocweb1
- container must not use more than 1024MB RAM
- container must be exceed more than 20% cpu of host
Problem #2 :
Deploy docker private registry with following parameters
- docker client must use TLS & SSL certification to secure connection
- docker client must use username and password to push the images
- Integrate this docker registry with jenkins to push the images after build
- make a pipeline job to use the same image to deploy the container
Problem #3 :
USe aws elastic bean stalk to build and deploy code using jenkins like CI|CD
- Use any github code of html/css
- write a jenkins job that can build zip file of github code in every push
- that compressed code must be deployed to Eb
- to deploy code use pipeline job if you wish to
- check the deployed output in your browser
problem #4:
write compose file to host multi tier application
case 1 :
- create and html css and python CGI|FLASK|DJANGO based web app
- keep it in the main host the code
- write dockerfile that can use centos image to install httpd
- also use volume keyword in dockerfile to copy code from host to docker image
- now write a docker-compose file to use that dockerfile and create and image
case 2:
- use same docker-compose file
- create another service that can use mysql image
- use have an external db backup file that must be restored in the mysql container
- now you fronted app must be able to connect you db container using python mysql connect
outcome: final outcome is overall when a client run docker-compose file that must create a docker image for front end and another image for backend of mysql db and create container that must connect to each other.
problem #5
- create a dockerfile with any image usage
- image created by dockerfile must be able to gedit or firefox as default program
Comments
Post a Comment
Have a wonderful coding life.
Stay cool and do more code !!!