Simple DevOps Project-3 | DevOps project with Git, Jenkins and Docker on AWS | CICD on containers
Articles,  Blog

Simple DevOps Project-3 | DevOps project with Git, Jenkins and Docker on AWS | CICD on containers

62 Comments

  • Vaibhav Pokale

    Great efforts sir..! Helped me a lot…! I am following this series.. Expecting more videos on aws CICD(Codebuild, codedeploy, codecommit, ECS with Fargate)..! Thank you Soo much..!

  • vijaykumar reddy

    thanks for doing this waiting for nexw video i.e doing this all steps by writing yaml playbook,8500234770 its my number i really feel great to talk with you regarding devops tips which currently im looking to change to devops technology its really great to get call from you thaks sir

  • srinivas rao

    hi i am trying to set up jenkings job to push docker image to ECS but when i try to access application i amnot able to access applicaiton
    please send me any link ..i would like to take up AS training pls help me i want to do in online iam basically from bangalore

  • Manish Saini

    sir i am using my localhost not using aws instance and getting this error when i clicked on build now………..
    can tell me something about this error?

    SSH: Failed to get hostname [sunarc-kmaster: sunarc-kmaster: Name or service not known]
    SSH: Connecting with configuration [docker_host] …

    ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [1]]
    Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE

    I hope you will response me

  • Madhire Ramakrishna Reddy

    Great video sir, Really thank you for your work sir. Waiting for your next video "Simple DevOps Project 4"

  • murra mahendra reddy

    Thanks a lot of you sharing couple of videos on devops in valaxy youtube channel. which help us to resolve the real time scenarios in my project. I learn lot of new things on devops from this you tube channel.

  • manideep reddy

    Hi, I am getting this error:
    docker: Error response from daemon: pull access denied for valaxy_demo, repository does not exist or may require 'docker login'.

    Please help me out.Thank you.

  • Bessen Philip

    Hi, I am getting the below error while building…even though webapp.war gets listed in docker directory. please advice

    Error response from daemon: No such container: valaxy_demo

    Error: No such container: valaxy_demo

    Edit: ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [1]]

    Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE
    it resulted in an unstable build…
    Edit2: For the above error there was a "." missing in the docker build command
    Needed to add the outbound for http/https traffic too..success finally 🙂

  • Yang Simon

    It's a great demo to fully understand CI/CD pipeline with Jenkins, docker with AWS. Could you please share github link so we could take a look steps you showed in Youtube.

  • Nagaraju Yarlagadda

    Many thanks for sharing such a beautiful Video. I followed step by step and did deployment in same procedure successfully.

  • venkatasai nuthalapati

    Hi sir while executing docker build command it showing
    SSH : EXEC :STDOUT/STDERR from command can you please explain

  • hemanth kamadadni

    Wow.. Would have grabbed a great opportunity had i been through your videos a while ago….looking very much forward for the next project example…conveying to all my dear one's your lessons…thanks

  • Jyothirmayi Chejerla

    Hi
    Thanks for the videos. All the topics are clear but i have a small doubt.
    In my old project We have used the Jenkins to restart the Application Server instances as well. we will go to the jobs and select the particular instance and click start/stop/restart. Could you please explain how to do that???

  • Ethashamuddin Mohammed

    Shankar garu,

    When you say, source files: "webapp/target/*.war" where can I see, "webapp/target/*.war" in jenkins server? because this path is created after jenkins build the code…

  • Ethashamuddin Mohammed

    Sir,

    Do I need to create pipeline for git-jenkins-ansiblle-tomcat(dev) in private subnet or public subnet?
    What is the standard practice?
    Sham

  • Pkz

    Hi I am stuck on this for days, can someone help pls. i am not sure if this is a permission issue but here is the error from jenkins:

    Step 3/3 : COPY ./webapp.war /usr/local/tomcat/webapp

    COPY failed: stat /var/lib/docker/tmp/docker-builder170051845/webapp.war: no such file or directory

    SSH: EXEC: completed after 27,665 ms

    SSH: Disconnecting configuration [Docker host] …

    ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [1]]

    Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE

    SSH: Connecting from host [ip-172-31-18-30.ap-south-1.compute.internal]

    SSH: Connecting with configuration [Docker host] …

    SSH: EXEC: STDOUT/STDERR from command [docker run -d –name dockerimage -p 8090:8080 dockerimage] …

    Unable to find image 'dockerimage:latest' locally

    docker: Error response from daemon: pull access denied for dockerimage, repository does not exist or may require 'docker login'.

    See 'docker run –help'.

  • Marblehead Stargirl

    how you have webapp.war file in ansible server /opt/playbook/webapp/target ?
    can you show us how to do it please ?
    thanks in advance

  • Madhura Gimhan Walakuluarachchi

    This is good lesson, thanks a lot. I have one question that is, After committed recreate the container then what happen in log files

  • Ubedulla Syed

    Hello sir, I'm getting below error could you please help me.

    SSH: Connecting from host [ip-172-31-88-153]

    SSH: Connecting with configuration [docker_hub] …

    SSH: Disconnecting configuration [docker_hub] …

    ERROR: Exception when publishing, exception message [Permission denied]

    Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE

    Finished: UNSTABLE

  • Anil Saravade

    Can you help me out with this?

    SSH: Connecting from host [swapstyle-VirtualBox]

    SSH: Connecting with configuration [docker_host] …

    SSH: EXEC: STDOUT/STDERR from command [docker stop valaxy_demo; docker rm -f valaxy_demo; docker image rm -f valaxy_demo; cd /opt/docker; ] …

    Error response from daemon: No such container: valaxy_demo

    Error: No such container: valaxy_demo

    Error: No such image: valaxy_demo

    SSH: EXEC: completed after 402 ms

    SSH: Disconnecting configuration [docker_host] …

    SSH: Transferred 1 file(s)

    Build step 'Send files or execute commands over SSH' changed build result to SUCCESS

    SSH: Connecting from host [swapstyle-VirtualBox]

    SSH: Connecting with configuration [docker_host] …

    SSH: EXEC: STDOUT/STDERR from command [docker run -d –name valaxy_demo -p 8090:8080 valaxy_demo] …

    Unable to find image 'valaxy_demo:latest' locally

    docker: Error response from daemon: pull access denied for valaxy_demo, repository does not exist or may require 'docker login'.

    See 'docker run –help'.

    SSH: EXEC: completed after 2,406 ms

    SSH: Disconnecting configuration [docker_host] …

    ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [125]]

    Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE

    Finished: UNSTABLE

  • ahmd elswafy

    the following error appear when make build ,
    i review the permission but i don,t know where the problem exactly

    ERROR: Exception when publishing, exception message [Permission denied]
    Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE

  • Deepak Agarwal

    I am getting below error:
    [ERROR] COMPILATION ERROR :
    [INFO] ————————————————————-
    [ERROR] Unable to locate the Javac Compiler in:
    C:Program Files (x86)Jenkinsjre..libtools.jar

    I have JAVA/JDK installed in my system and tried reinstall and set JAVA_HOME, still getting same error…Pls help

  • rajesh naidu

    Hi Shankar sir…i haved the same steps which you have mentioned but getting the below error….can u pls suggest whats wrong with my execution..

    [INFO] BUILD SUCCESS
    [INFO] ————————————————————————
    [INFO] Total time: 9.680 s
    [INFO] Finished at: 2019-03-01T19:11:08Z
    [INFO] ————————————————————————
    Waiting for Jenkins to finish collecting data
    [JENKINS] Archiving /var/lib/jenkins/workspace/docker-tomcat/pom.xml to devops/test/s2/test-s2.pom
    [JENKINS] Archiving /var/lib/jenkins/workspace/docker-tomcat/target/test-s2.war to devops/test/s2/test-s2.war
    channel stopped
    SSH: Connecting from host [ip-172-31-5-145.ec2.internal]
    SSH: Connecting with configuration [Docker-Host] …
    SSH: EXEC: STDOUT/STDERR from command [docker stop sample, docker rm sample, docker image rmi sample, cd /opt/docker, docker build -t sample .] …
    invalid argument "sample" for "-t, –time" flag: strconv.ParseInt: parsing "sample": invalid syntax
    See 'docker stop –help'.
    SSH: EXEC: completed after 200 ms
    SSH: Disconnecting configuration [Docker-Host] …
    ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [125]]
    Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE
    SSH: Connecting from host [ip-172-31-5-145.ec2.internal]
    SSH: Connecting with configuration [Docker-Host] …
    SSH: EXEC: STDOUT/STDERR from command [docker run -d –name sample -p 8085:8080 sample] …
    Unable to find image 'sample:latest' locally
    docker: Error response from daemon: pull access denied for sample, repository does not exist or may require 'docker login'.
    See 'docker run –help'.
    SSH: EXEC: completed after 201 ms
    SSH: Disconnecting configuration [Docker-Host] …
    ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [125]]
    Finished: UNSTABLE

  • Pranay Lambat

    hello sir ,
    good lessons,
    but on this project I am getting these errors

    docker image rm -f valaxy_demo; cd /opt/docker; docker build -t valaxy_demo] …

    Error response from daemon: No such container: valaxy_demo

    Error: No such container: valaxy_demo

    Error: No such image: valaxy_demo

    "docker build" requires exactly 1 argument.

    See 'docker build –help'.

    Usage: docker build [OPTIONS] PATH | URL | –

    Build an image from a Dockerfile

    SSH: EXEC: completed after 400 ms

    SSH: Disconnecting configuration [docker] …

    ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [1]]

    Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE

    Finished: UNSTABLE

  • Anki Reddy

    im getting this error ,can anyone help me plz

    SSH: Connecting from host [ip-172-31-46-68]

    SSH: Connecting with configuration [Docker] …

    SSH: EXEC: STDOUT/STDERR from command [docker build -t bitcot .] …

    unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/dockeradmin/Dockerfile: no such file or directory

    SSH: EXEC: completed after 203 ms

    SSH: Disconnecting configuration [Docker] …

    ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [1]]

    Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE

    Finished: UNSTABLE

  • Gopinaath Chandrasekar

    Hi , I am getting this following error…Failed to connect to repository : Error performing command: git ls-remote -h https://github.com/ValaxyTech/hello-world.git HEAD

    can you please help me to solve this error

  • saravanakumar Murugan

    hi bro very awesome video.. am very impressed.. and i have a doubt do you have any link and idea about deploy kubernetes using CI/CD& ansible

  • Farooq Arogundade

    I keep getting an error – Failed to connect to repository : Error performing command: git ls-remote -h. Please help

  • Akshay Amin

    "Publish Over SSH" step fails. I typed IP address, username , password, enable passwordAuthentication exectly the way it is showned in video. Please help

  • Santiago Fernandez

    Excellents Tutorials!You must change this command docker build -t "INSTANCENAME" /opt/docker

    I have got a problem in tomcat HTTP 404. I have got wrong a route…

  • Naga Satish

    i was configured all details in jenkins ssh server and i comment passwordless authonication then when i am test the connection i am getting error like……….how to resolve this issue please tell me…
    jenkins.plugins.publish_over.BapPublisherException: Failed to connect and initialize SSH connection. Message: [Failed to connect session for config [docker]. Message [java.net.ConnectException: Connection timed out (Connection timed out)]]

  • tarmizy harsha

    Hai. Can help me. I want to deploy laravel project. Can you help me, how deploy laravel project with jenkins ? Thank you

  • HIMANSHU SINGH TOMER

    I FOLLOWED ALL STEPS AND ALSO CAN SEE THE FILE BUILT BUT WHEN I TRIED TO DOCKER IMAGES AND CONATINER IT SHOWS NOTHING

  • nishchal gahoi

    Hello Sir
    No doubt your videos on CI CD are too good to learn from
    But I see these are limited to CI CD , not the pipeline ( declarative scripting or using Jenkins File )
    Just a suggestion if you can replicate any 1 project video using pipeline

    Thanks
    1 once again for all the learning’s you have awarded me with

  • Rajendra Prasad M

    Hi, I am getting below error, please help: error reading info about "/home/dockeradmin/home/dockeradmin/Dockerfile": stat /home/dockeradmin/home/dockeradmin/Dockerfile: no such file or directory

  • Jagdish Belapure

    Hello Sir, these are wonderful videos from learning perspective, I have implemented each ansible, jenkins and project1 , 2 and 3.. These give me confidence. Moreover, the project3 I tried to implement by my own taking the scenario as a use case and i was successful. I feel happy and little boost to my confidence level thank you for sharing and publishing these videos. I am not sure what additional learning I need to focus on to become really good at DevOps, please guide and advice some tips.

Leave a Reply

Your email address will not be published. Required fields are marked *