The Ortus BlogBox

"Ortus: A rise, beginning, coming into being, born, the origin!"

 

 

Category Filtering: 'docker'

 

CFSummit2017 - ColdBox Hierarchical MVC - Transform Your Monolith

Luis Majano
Nov 20, 2017

 

Here are our slides from our ColdBox Hierarchical MVC presentation at this year's Adobe ColdFusion Summit. You can also find the source code for our demo here: https://github.com/lmajano/hmvc-presso-demo or you can install it via CommandBox: box install lmajano/hmvc-presso-demo.

ColdBox MVC, ColdFusion, CommandBox, Community, Conferences, Docker, Presentations, REST, WireBox 0

CommandBox 3.8 series Docker Images Released

Jon Clausen
Oct 31, 2017

 

Today we released our 3.8 series of docker images ( current source version 2.1.0 ) which include a number of improvements and enhancements.

Change Log

  • Updates to CommandBox v3.8+
  • Adds support for Docker secrets
  • Adds casing aliases for environment variables
  • Adds new opinionated password security
  • Updates to runtime output for clarity
  • Changes image for alpine build to prevent CommandBox errors when installing dependencies
ColdFusion, CommandBox, Docker, Lucee 0

Screencast Intro to FusionReactor Cloud & Docker Swarm Demo

Brad Wood
Oct 27, 2017

 

We've made a new screencast that shows an introduction to FusionReactor Cloud, a new way to monitor any number of servers in a consolidated interface that can scale up and down with your infrastructure.  Not only do new servers automatically register and deregister themselves with the Cloud dashboard, but it supports a pay-for-what-you-use model that prevents you from locking into a specific number of licenses.  

CommandBox, Docker, FusionReactor, Tutorials 0

CONTAINERS2017 - Keep it secret. Keep it safe (with Docker)

Eric Peterson
Sep 26, 2017

 

Whether you are new to Docker, a Docker expert, or even sticking with a traditional server setup, using environment variables will make your code more dynamic, more portable, and more ready for your eventual transition to Docker (or whatever comes next). Come learn how to use them in CFML, Docker, and the various tools around these technologies.

CommandBox, Docker 0

CONTAINERS2017 - Removing Containers

Luis Majano
Sep 14, 2017

 

The Docker CLI has an extensive suite of commands built-in and it can be painful to remember all of them. So as part of our containers roadshow, we will be blogging about useful tips and tricks for working with containers. We all make mistakes and we all need to be able remove containers from time to time. So let's go ahead and start!

Remove one or more specific containers

Use the docker ps command with the -a flag to locate the name/ID of the containers you want to remove:

# list
docker ps -a

# remove
docker rm ID/nameID/name

Remove Container Upon Exit

If you want to cleanup after yourself, then you can automatically delete a container once it exists from runnable operation using the docker run --rm command.

docker run --rm image_name

Remove All Exited Containers

You can locate containers using docker ps -a and filter them by their status: created, restarting, running, paused, or exited. To review the list of exited containers, use the -f flag to filter based on status. When you've verified you want to remove those containers, using -q to pass the IDs to the docker rm command.

docker ps -a -f status=exited
docker rm $(docker ps -a -f status=exited -q)

Remove Containers Using More Than 1 Filter

Docker filters can be combined by repeating the filter flag with an additional value.

docker ps -a -f status=exited -f status=created
docker rm $(docker ps -a -f status=exited -f status=created -q)

Remove Containers According to Patterns

You can find all the containers that match a pattern using a combination of docker ps and grep. When you're satisfied that you have the list you want to delete, you can use awk and xargs to supply the ID to docker rmi. Please note this will only work on unix based systems.

docker ps -a |  grep "pattern”
docker ps -a | grep "pattern" | awk '{print $3}' | xargs docker rmi

Stop and remove all containers

You can review the containers on your system with docker ps. Adding the -a flag will show all containers. Then you can get funky and pass them to the stop or rm commands.

docker ps -a
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
Docker, RoadShow 0

CONTAINERS2017 - Removing Docker Images

Luis Majano
Sep 12, 2017

 

We all need some help from time to time. The Docker CLI has an extensive suite of commands built-in and it can be painful to remember all of them. So as part of our containers roadshow, we will be blogging about useful tips and tricks for working with containers. We all make mistakes and we all need to be able remove images from time to time. So let's go ahead and start!

Remove one or more specific images

By using the docker images command with the -a flag, you can list all the images in the system by leveraging the image ID. Here is some example output:

$ docker images -a
REPOSITORY                         TAG                    IMAGE ID            CREATED             SIZE
<none>                             <none>                 178eecd0d35a        3 days ago          64MB
nginx_nginx                        latest                 56dab2b8fae4        3 days ago          64MB
<none>                             <none>                 e80436974f2f        3 days ago          64MB
<none>                             <none>                 bea15fa1eee1        3 days ago          64MB

Once you have located the image you want to wipe away pass the ID to the docker rmi command:

docker rmi ImageID

Removing Dangling Images

Please remember that docker images consist of multiple software layers. Dangling images are layers that have no relationships to any images or containers. Basically, orphaned images which still can cosume plenty of space. They can be located by adding the -f with a value of dangling=true to the docker images command. You can pass the -q flag to get a listing of image ID's and pass that to the rmi command for a nice concatenated removal:

# List
docker images -f dangling=true

# Remove them all baby
docker rmi $(docker images -f dangling=true -q)

Removing Images According to Patterns

You can get fancy by leveraging the grep command (in unix only) and the docker images command to get a nice listing according to patterns. Once you are golden with the images you want, you can then further pipe the command to awk to clean up the buffer and finally pass them to the rmi command.

# listing
docker ps -a |  grep "pattern"

#removing 
docker images | grep "pattern" | awk '{print $1}' | xargs docker rm

Removing All Images

Ok, we want to start fresh and cleany and minty fresh. Just use the following to remove all images

docker rmi $(docker images -a -q)

Don't drink and rmi.

Docker, RoadShow 1

CONTAINERS2017 - Your first Docker Compose - Part 2

Gavin Pickin
Sep 07, 2017

 

The Ortus Solution roadshow continues, we'll keep bringing you free webinars and blog posts through the month of September. If you have tuned in already, you might have learned what Docker is, why you could / should use it, and then maybe a little of how to use it. If the first part of this mini series on First Docker Compose we saw how ou can spin up a Docker container pretty easily, with a command or two, but usually, we work with multiple servers. Docker-Compose makes that easier, it doesn't have to be too confusing. We are building on top of part 1, where we spun up a CFML Server container by itself, and then we added a simple MySQL Server. Next we're going to add Nginx in front of the CFML Server container, and then we'll do more with the MySQL server, like add a database, and then seed it ( preload it ) with data to get things rolling. That is what we're going to look at today.

CommandBox, Docker, Ortus University, RoadShow 0

CONTAINERS2017 - Your first Docker Compose

Gavin Pickin
Sep 05, 2017

 

The roadshow has just started, and you might have learned what Docker is, why you could / should use it, and then maybe a little of how to use it. You can spin up a Docker container pretty easily, with a command or two, but usually, we work with multiple servers. Configuring that might be confusing at first... you might wonder, if i spin up 3 containers, how do they know how to find each other, and other questions like this, are easily solved, with Compose files. That is what we're going to look at today.

CommandBox, Docker, RoadShow, Tutorials 0

CONTAINERS2017 - Docker Roadshow coming in September!

Brad Wood
Aug 29, 2017

 

There's a brand new thing out and it's called Docker.  Maybe you've heard of it? We think it's pretty cool. Oh, who are we kidding?  Docker has been around for a while now and it's becoming HUGE!  Local development is getting more powerful.  Server deployment is becoming more ubiquitous.  And cloud hosts everywhere are consolidating on one container standard.  Docker has been the "next big thing" for a few years now and this has led to a lot of questions from ColdFusion developers and sys admins.  

  • What the heck is Docker?
  • How is it different from just running VMs?
  • How do I deploy it?
  • Is it secure?
  • What are the tradeoffs?

We've been fully embracing Docker and feverishly building tools and guides to help CFers understand and use it.  It felt like the right time to devote an entire month of love to our new best friend, Docker and how it can help you in multiple areas of your development and deployment workflow.  

Docker RoadShow

That's why we've carved out the month of September to lay down a solid foundation for you CF people who are Docker-curious to dig in and find out what this is all about as well as get hands-on examples of how to use Docker and even learn advanced techniques that would otherwise take you hours and hours of googling to understand.  We will feature a series of blog posts all month long so keep an eye right here on the Ortus blog.  We'll also be featuring a recorded webinar every week presented by team Ortus as well as Docker-savvy friends from around the world.

Docker Webinars

Here's a rundown of our Docker webinars that we'll be hosting.  Each of these will happen at 11am Central time.

  • 9/01 11:00 am CST - Intro to Containers with Mark Drew
  • 9/08 11:00 am CST - Containerizing ContentBox CMS with Luis Majano 
  • 9/15 11:00 am CST - Configuring your Containers with CommandBox & CFConfig with Brad Wood
  • 9/22 11:00 am CST - Box Microservices with Jon Clausen
  • 9/29 11:00 am CST - Start playing with Docker with Gavin Pickin

Sign Me Up!

To register for one or more of the webinars, please signup here:

https://zoom.us/meeting/register/90aba9d358d70b17cde7dc3c8da9331e

We're using Zoom this year and can fit 100 people in each meeting, so please sign up early!  We will record each session and post them afterwards.

And if you want a nice place to keep track of each of the blog posts and webinars as they happen, we've also created this page to help track all of our CFML Docker content!  We'll update it as the roadshow gets underway.

https://www.ortussolutions.com/events/container-roadshow-2017

This is your chance to come see what Docker is all about and learn some stuff to take back and impress your team!

 

 

Docker, Events, RoadShow, Training 0

CommandBox 3.7 Docker Images Released

Jon Clausen
Aug 11, 2017

 

On the heels of and in conjunction with the 3.7.0 release of ContentBox, we are pleased to announce the 3.7.0 release of CommandBox ( a happy coincidence that the version numbers of the two are the same! ).

This release provides major updates in security and functionality to the CFConfig module, which may be used to configure CFML servers at runtime. The settings and environment variables, which were previously handled by the bash script used to start the image, are now delegated to CFConfig. You can read more on using environment variables for CFConfig here.

ColdFusion, CommandBox, Docker, Lucee 0
1 2 >>