Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Continuous Delivery with Docker and Jenkins

You're reading from   Continuous Delivery with Docker and Jenkins Delivering software at scale

Arrow left icon
Product type Paperback
Published in Aug 2017
Publisher Packt
ISBN-13 9781787125230
Length 332 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Rafał Leszko Rafał Leszko
Author Profile Icon Rafał Leszko
Rafał Leszko
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Introducing Continuous Delivery FREE CHAPTER 2. Introducing Docker 3. Configuring Jenkins 4. Continuous Integration Pipeline 5. Automated Acceptance Testing 6. Configuration Management with Ansible 7. Continuous Delivery Pipeline 8. Clustering with Docker Swarm 9. Advanced Continuous Delivery

Exercises

In this chapter, we have covered the fundamentals of Ansible and the way to use it together with Docker. As an exercise, we propose the following tasks:

  1. Create the server infrastructure and use Ansible to manage it.
    • Connect a physical machine or run a VirtualBox machine to emulate the remote server
    • Configure SSH access to the remote machine (SSH keys)
    • Install Python on the remote machine
    • Create an Ansible inventory with the remote machine
    • Run the Ansible ad hoc command (with the ping module) to check that the infrastructure is configured correctly
  2. Create a Python-based "hello world" web service and deploy it in a remote machine using Ansible playbook.
    • The service can look exactly the same as described in the exercises for the chapter
    • Create a playbook, which deploys the service into the remote machine
    • Run the ansible-playbook command and check whether...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at AU $24.99/month. Cancel anytime