This blog shows a sample DevOps cycle using combination of Oracle Developer Cloud Service & Ansible playbook.
Scenario: An organization wants to setup DevOps practice with Oracle public cloud for Dev & test. However production still remains on-premise. In such case Oracle Developer cloud service can deploy artifacts(e.g. JAR file) to JCS (Java cloud Service) or ACCS (Application container Cloud service). However to get the artifact on premise we can write extension. So that artifact is downloaded and production environment is rolled out automatically.
Note that here we are discussing a simple example to get the concept. In real implementation there will be more complex architecture. What we discuss below is just one of the possible way.
Tools/features used:
- Oracle Public Cloud:
- Source code repository – GIT Repository available OOTB with Developer CS. Used to maintain source code of sample Java Spring bootstrap based application
- Continuous Integration- Hudson build server available OOTB with Developer CS. Used to compile code, generate Jar file and perform Unit testing
- Internet:
- GIT Hub - to maintain artifacts/binaries generated by Developer CS. (Here jar generated from Developer CS is moved to GIT Hub)
- On Premise:
- Docker – Docker container to run java application
- Ansible – Ansible playbook to download artifact from GIT Hub, configure with Docker and rollout the environment.
Flow:
Implementation:
- I am assuming that audience is familiar with Developer Cloud service, Docker concepts, Checkin code from their respective IDE to GIT repository. If you need information on Developer CS please refer to Oracle documentations (https://docs.oracle.com/en/cloud/paas/developer-cloud/index.html )
- I have built a Spring bootstrap based J2SE project.
- Let’s login to Developer CS. Provide your Identity domain and user credential.
- On successful login you will see projects already configured in Developer CS. In my case I already have a Spring Medrec J2SE Project. A new project can be created from this page.
- Click on the project and go to Project section. Copy the GIT repository path. That needs to configured with your IDE
- Go to IDE (Netbean in my case) and check-in source code in GIT repository. Once source code is successfully pushed go to Code section. Here it shows source code checked-in to the GIT repository. It also has a pom.xml as Maven script, checked in as a part of source code.
- Now go to build section to create a build job. Here I have created a Job named “Master Build”. Go to the configure section of Master build. And click on Source code tab. Here you need to configure repository info where code is checked-in.
- Now click on Build steps. Add build step “Invoke Maven 3”. And define appropriate goals configured in your maven.xml
- Go to post build section and select option to archive artifact. If you have Junit test cases select option to publish Junit test cases as well. It will show test results on Developer CS console.
- Save changes and run the build. You will see an artifact generated as a result of successful build. Here a zip file ‘medrec-0.0.1-SNAPSHOT.zip’ can be seen. This zip contains application JAR inside.
- Also you can see Junit test results by clicking on ‘Tests’
- Since the artifact is generated successfully it can be deployed to Oracle ACCS. Click on ‘Deploy’ menu option configure & Deploy application in your ACCS account.
- Let’s write another build job ‘Move Artifacts to Remote GIT Hub’ to move artifact from Developer CS to GIT Hub.
- Go to configuration section of this job.
- Click on build steps and select execute shell as an option. Here we will copy artifact generated by previous build and move to GIT Hub.
- Click on build steps and select execute shell as an option. Here we will copy artifact generated by previous build and move to GIT Hub. On successful build ‘medrec-0.0.1-SNAPSHOT.zip’ file can be seen in GIT hub.
- Next, we will use Ansible playbook to pull zip file from GIT Hub and deploy on Docker. I am using a Linux VM where docker engine & Ansible are already installed.
- Here is the Ansible playbook (deploy.yml) created to perform following tasks in sequence:
- Pull Artifacts (medrec-0.0.1-SNAPSHOT.zip file) on local file system
- Unzip the archive
- Stop and remove pre-existing docker contianer
- Build new docker image
- Start a new container
- This is how deploy.yml looks like (2 screenshots) :
- We will execute deploy.yml on localhost. However Ansible can perform same task on remote host as well.
- Once above command is executed it will perform each task mentioned in playbook.
- Lets check we check docker images and container.
- Access URL to run java application on Docker’s IP address. (Here the application shows Swagger API)
35 comments:
This above information really Good beginners are looking for these type of blogs, Thanks for sharing article on Devops Online Training Hyderabad
Webtrackker is one only IT company who will provide you best class training with real time working on marketing from last 4 to 8 Years Experience Employee. We make you like a strong technically sound employee with our best class training.
WEBTRACKKER TECHNOLOGY (P) LTD.
C - 67, sector- 63, Noida, India.
F -1 Sector 3 (Near Sector 16 metro station) Noida, India.
+91 - 8802820025
0120-433-0760
Best SAS Training Institute in delhi
SAS Training in Delhi
SAS Training center in Delhi
Best Sap Training Institute in delhi
Best Sap Training center in delhi
Sap Training in delhi
Best Software Testing Training Institute in delhi
Software Testing Training in delhi
Software Testing Training center in delhi
Best Salesforce Training Institute in delhi
Salesforce Training in delhi
Salesforce Training center in delhi
Best Python Training Institute in delhi
Python Training in delhi
Best Python Training center in delhi
Best Android Training Institute In delhi
Android Training In delhi
best Android Training center In delhi
It is really helpful !An opportunity to read a fantastic and imaginary blogs.It gives me lots of pleasure and interest.
sap abap online courses
Best institute for 3d Animation and Multimedia Course training Classes
Best institute for 3d Animation and Multimedia
Best institute for 3d Animation Course training Classes in Noida- webtrackker Is providing the 3d Animation and Multimedia training in noida with 100% placement supports. for more call - 8802820025.
3D Animation Training in Noida
Company Address:
Webtrackker Technology
C- 67, Sector- 63, Noida
Phone: 01204330760, 8802820025
Email: info@webtrackker.com
Website: http://webtrackker.com/Best-institute-3dAnimation-Multimedia-Course-training-Classes-in-Noida.php
Our courses:
3D Animation and Multimedia Training in Noida.
3d Multimedia Institute in Noida.
Animation and Multimedia Training in Noida.
Animation and Multimedia Training institute in Noida .
Multimedia Training institute in Noida.
Multimedia Training classes in Noida.
3D Animation Training in Noida.
3D Animation Training institute in Noida.
Thanks for giving a great information about DevOps Good Explination nice Article
anyone want to learn advance devops tools or devops online training
DevOps Online Training
DevOps Online Training hyderabad
DevOps Training
DevOps Training institute in Ameerpet
DevOps Training in Ameerpet
DevOps Training institute in Hyderabad
DevOps Course in Hyderabad
Well written. Keep sharing Devops Online Course
Sap fico training institute in Noida
Sap fico training institute in Noida - Webtrackker Technology is IT Company which is providing the web designing, development, mobile application, and sap installation, digital marketing service in Noida, India and out of India. Webtrackker is also providing the sap fico training in Noida with working trainers.
WEBTRACKKER TECHNOLOGY (P) LTD.
C - 67, sector- 63, Noida, India.
F -1 Sector 3 (Near Sector 16 metro station) Noida, India.
+91 - 8802820025
0120-433-0760
0120-4204716
EMAIL: info@webtrackker.com
Website: www.webtrackker.com
thanks for Providing a Good Information
anyone want to learn advance devops tools or devops online training visit:
DevOps Training
DevOps Online Training
DevOps Training institute in Hyderabad
Thank you so much for a well written, easy to understand article on this. It can get really confusing when trying to explain it – but you did a great job. Thank you!
DevOps Online Training
DevOps Training in Pune
Great, this article is quite awesome and I have bookmarked this page for my future reference. Keep blogging like this with the latest info.
DevOps course in Chennai
Best DevOps Training in Chennai
AWS Training in Chennai
AWS Certification in Chennai
RPA Training in Chennai
Robotics Process Automation Training in Chennai
DevOps Training in Anna Nagar
DevOps Training in Chennai
Very good description regarding oracle.Thank you for clear and detailed descriptions with the help of screenshots.
iphone service centres in chennai
iphone service center velachery
iphone service center in vadapalani
iphone service center in porur
lenovo service center in porur
lenovo service center in vadapalani
I would like to share your article with my friends and colleagues
German Classes in Chennai
android Training in Chennai
Java Training in Chennai
CCNA Training in Chennai
ccna Training institute in Chennai
ccna institute in Chennai
Thanks for sharing Information to us. If someone wants to know about,I think this is the right place for you!
Mobile App Development in Coimbatore
Mobile app development company in atlanta
3D Animation Company
Informative blog. Thank you for sharing with us...
and also we are providing E-Learning Portal Videos for students and working Professionals
Hurry Up! Bag All Courses in Rs - 10000 /- + taxes
41 Career building courses.
Designed by 33 industrial experts
600+ hours of video Content
DevOps and Cloud E-Learning Portal
Nice Posting !! Thanks for sharing..
Docker Training in Hyderabad
Docker and Kubernetes Online Training
Docker Training
Docker Online Training
Kubernetes Online Training
Kubernetes Training in Hyderabad
Best Docker and kubernetes training in ameerpet
Docker and Kubernetes Training in Hyderabad
Very nice blog I just happy to see your article and learn more to yoursSAP ALE IDOC Self Learning Online Training
Thanks for sharing such a great blog Keep posting.
Android Training in Delhi
Android Training institute in Delhi
Nice post.very interesting and informative Blog...
Docker Training in Hyderabad
Docker and Kubernetes Online Training
Docker Training
Nice Article !! Thankyou for sharing..
Docker Online Training
Kubernetes Online Training
Kubernetes Training in Hyderabad
Gone through your blog recently, it's very informative about the technology. I expect the next post in the future.
Devops Training
DevOps Online Training
DevOps Training Online
Nice information and good article,thank you for sharing your knowledge,keep posting such information that's helpful to others.
Devops Training
Devops E-Learning Course
Devops Online Training
Useful Blog,Thanks for sharing this info with us.
DevOps Training
DevOps Online Training
Thanks for Sharing This Article.It is very so much valuable content.
Local Packers and Movers in Pragathi Nagar
Top 20 Best Packers and Movers in Pragathi Nagar
Top 20 Best Affordable Packers and Movers in Pragathi Nagar
Excellent post gained so much of the information, Keep posting like this.
Packers and Movers Hyderabad
Packers and Movers in Hyderabad
I seriously love your site.. Excellent colors & theme. Did you create this website yourself? Please reply back as I’m trying to create my own personal site and would love to know where you got this from or exactly what the theme is called. Cheers!
Techno
This is good information and really helpful for the people who need information about this.
Devops Training in Delhi
Devops Training institute in Delhi
I have read your blog and I got very useful and knowledgeable information from your blog. It’s really a very nice article.
DevOps Online Training
DevOps Training
DevOps Training in Ameerpet
It's very Inspiring to Visit your Site... I got very useful and knowledgeable information from your blog...keep Updating
BEST JAVA TRAINING IN CHENNAI WITH PLACEMENT
Java training in chennai | Java training in annanagar | Java training in omr | Java training in porur | Java training in tambaram | Java training in velachery
A very nice guide. I will definitely follow these tips. Thank you for sharing such detailed article. I am learning a lot from you. DevOps Training | Certification in Chennai | DevOps Training | Certification in anna nagar | DevOps Training | Certification in omr | DevOps Training | Certification in porur | DevOps Training | Certification in tambaram | DevOps Training | Certification in velachery
Nice blog. You have provided such a useful information in this blog. Thanks for sharing.
Thanks for sharing!! That's a really interesting article on devops with oracle
DevOps Training in Chennai
DevOps Online Training in Chennai
DevOps Training in Bangalore
DevOps Training in Hyderabad
DevOps Training in Coimbatore
DevOps Training
DevOps Online Training
Thanks for one marvelous posting! I enjoyed reading it; you are a great author.
Thank You so much for your effort in sharing such a wonderful blog with us.
I have learned a lot from this
oracle training in chennai
oracle training institute in chennai
oracle training in bangalore
oracle training in hyderabad
oracle training
oracle online training
hadoop training in chennai
hadoop training in bangalore
Hi, your site is very interesting. Please visit :
Work From Home Jobs For Women
Its a wonderful post and very helpful, thanks for all this information. You are including better information.
Cyber Security Training Course in Chennai | Certification | Cyber Security Online Training Course | Ethical Hacking Training Course in Chennai | Certification | Ethical Hacking Online Training Course |
CCNA Training Course in Chennai | Certification | CCNA Online Training Course | RPA Robotic Process Automation Training Course in Chennai | Certification | RPA Training Course Chennai | SEO Training in Chennai | Certification | SEO Online Training Course
the content on your blog was really helpful and informative. Thakyou. # BOOST Your GOOGLE RANKING.It’s Your Time To Be On #1st Page
Our Motive is not just to create links but to get them indexed as will
Increase Domain Authority (DA).We’re on a mission to increase DA PA of your domain
High Quality Backlink Building Service
1000 Backlink at cheapest
50 High Quality Backlinks for just 50 INR
2000 Backlink at cheapest
5000 Backlink at cheapest
Nice article. Thanks for sharing.
also, join DevOps classes in Pune
Post a Comment