3/23/2023 0 Comments Kitematic search stuckCheck the following commands and make sure you don’t get any errors docker ps docker infoĥ. On OSX, you’ll find it in your applications/Docker folder. On Windows, this will be a shortcut on your desktop. Verify that your installation is working by opening the recommended shell for your OS (Terminal for OSX, Powershell for windows) by running “Docker Quickstart Terminal”. Download and install the appropriate version of Docker for your operating systemĤ. Likewise, in later blogs I start covering the use of Compose to start and stop multiple containers at once. This is to better expose you to the underlying mechanisms. Most of this tutorial focuses on using command-line arguments and working with Docker without the Kitematic GUI. With Docker 1.8 and the release of Docker Toolbox, Docker now includes “Kitematic,” a nifty GUI tool to help manage and visualize what’s happening with your Docker images and containers. If using Windows you need to make sure you have Windows Virtualization enabled (see the documentation Docker provides) A QUICK NOTE ON KITEMATIC You’ll need Windows 10 Pro or Mac OSX Yosemite 10.10.3 (or later)Ģ. I’ll be working from an OSX perspective but the same tools exist for Windows. These days there are excellent installers for both operating systems. I prefer to work with Docker on OSX, though it’s perfectly functional on Windows since Docker 1.6. Here at Riot we work with Docker (and Jenkins) on Windows, Mac OSX, and Linux. LESSON 1: SET UP AND RUN YOUR FIRST IMAGE GET YOUR DEV ENVIRONMENT READY If you’re experienced with Docker, some of the material in Lesson 1 will be a bit of a rehash of things you probably already know. Together they’re designed to get you started, especially if you’ve never worked with Docker before or are relatively new to Docker-although they assume you already know and understand how to work with Jenkins. Part two is about laying the groundwork to wrap this image in your own Dockerfile and taking more elegant control of the image. First up, part one is getting your development environment ready and learning to work with the default Jenkins Docker container that Cloudbees offers. Each is sized to take about 30 minutes to complete. This first blog is split into two lesson plans. You can find their documentation here and their Git repo/Dockerfile here. This was my reference point when first thinking about running Jenkins in a Docker container and for many people this might be sufficient. If you haven’t taken a look at the Cloudbees Jenkins Docker image, start there as it’s really quite good. Handling “secret” data with images and Jenkins Minimizing image dependencies on public imagesĬreating and using Data-Volumes, including backupsĬreating containerized “Build Environments” using containers This entire blog series will cover the following Docker concepts: Then we’ll move on to dealing with data persistence and adding a web proxy with NGINX. For starters, we’ll create a Jenkins master server in a Docker container. Over this series of blog posts I’ll be covering ways to think about all of the above as containers and finish with an advanced look at ways to use Docker containers as build slaves. NGINX web proxy (we use SSL certs etc, with NGINX is an easy choice here)īuild slave agents (machines either being SSH’d into, or JNLP connecting to, Jenkins Master) Jenkins master data (Plugins, Job Definitions, etc) We deploy Jenkins with these architectural components in mind: Jenkins is also a great application to demonstrate one way to think about “Dockerizing” your applications. This presents challenges to applications with data persistence needs or multi-process architectures.Īs I mentioned in my last post, we use Jenkins as a foundational piece of open source software on top of which we build our automation. Productionizing applications with Docker containers requires adjusting to their ephemeral nature and single-process focus. When I first started learning about Docker a year ago and exploring its use I had trouble finding great documentation and examples - even today many describe simple use cases that ultimately aren’t production ready. In this first tutorial in the Docker series, you’ll learn:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |