Mark Drew talks about “Getting started fast with Docker” in this episode of ColdFusion Alive podcast with host Michael Smith. In this presentation, Mark Drew will go through the fundamentals of the Query Language, structure, use cases and how we can get started with GraphQL endpoints.
In a world where APIs and REST are the way that we can communicate with services, it can become an arduous task to get to the information you need.
For example, if you look at a single tweet, obtained from Twitter’s API, you will so a stack of information that you don’t need! If only there was a way to query this data to get just what you need.
Enter Facebook’s GraphQL language. A language specification that solves the same problem that SQL did for Relational Databases.
This talk covers all the most important aspects of getting started with Docker and containers.
- What the heck is a Docker container and why should all CFer care?
- Analogy with containerized shipping of goods across the sea
- The challenges they overcome
- Separation of apps from how they are deployed
- Need to pre-warm your server before running new code
- Scripting of container building
- Live and dev versions can be the same
- Environment variables eg which db are we using
- Able to test on load balanced cluster
- Docker containers are lightweight compared to VM
- Fast to start up
- Able to run other types of task in micro services and micro transactions
- Adobe CF vs Lucee CFML licensing on Docker
- Separate lifecycle for each container
- All developers in same environment
- Easier port mapping running many versions of CF, db, OS etc
- Safe and clean way to test out new programming languages
- VMs vs Containers
- Docker vs Vagrant
- Are traditional ISPs going to go away?
- But now you have to keep your CF etc patched
- How to Get started with the Docker Engine
- Install Docker
- Before needed VirtualBox VM first
- Now we have native versions on Linux and Windows
- Kitematic to search for instances – auto download and install
- Attach a volume (OS folder) to your container
- Create a Docker file (it is called DockerFile!)
- From command
- Copy CF files
- Docker Build
- Commit to Docker version control such as Docker Hub private repository (or AWS repository)
- Command Box
- Install Docker
- WTF is Docker compose?
- Create a whole web app environment with multiple containers for CF, db etc
- Virtual networks between them
- Documents the environment
- How Docker Swarm can make your sites more reliable
- Docker clusters
- Automatic restart
- Automatic adding extra Docker instances
- Rolling updates across your cluster
- Docker Cloud and Continuous Integration
- Slack bot messages
- Why are you proud to use CFML?
- It actually gets stuff done
- Modern language
- Commandbox CFML scripting
- Easy to scale
- WWIT for you to make CF more alive this year?
- More Forgebox contributions
- Code of conduct on GitHub
- No more X vs Y flame wars – focus on the positive of X (or Y)
- What are you looking forward to at CFObjective?
Mentioned in this episode
- Amazon Docker
- Heroku container provider
- Google containers Kubernetes
- Malcolm Mc Lean invented the common sized container in 1956
- Reefer – refrigerated containers (and not something you might smoke!)
- Lucee CFML
- VM = Virtual Machine
- YAML (Docker Compose file format)
- Puppet (for Vagrant)
- Chef (for Vagrant)
- Repository for the containers
- Ubuntu Linux
- Alpine Linux
- Headless Wind
- Lucee Docker
- Docker Hub
- Docker Swarm
- Docker Cloud
- A WAR file
- Ruby programming language
- 99Percent invisible podcast
- Localhost podcast
Michael: Welcome back to the show. I am here with Mark Drew otherwise known as the amazing C.F.O. from London.
Mark: There’s only one of us in London.
Michael: There’s only one, others 00:12 [crosstalk]
Mark: There’s hundreds of them.
Michael: Yes and he’s the director of web development at C.M.D. which is a web development shop, I believe in the U.K.
Mark: In sunny Greenwich.
Michael: In Greenwich yes, he got Greenwich Mean Time exactly down. And he’s also the co-host of a new podcast called ‘Local Host’. So, check that out too. I’ll put the link in the show notes to that.
So today, we’re looking at how C.F.S. can get started fast with Docker and we’re going to look at what a Dock container is and why everyone listening should care about that. The challenges they overcome, Docker versus Vagrant even controversially our traditional I.S.P. is going to go away if Docker gets his way.
And how they compare the virtual machines, how you can get started with a Docker engine. What the heck is Docker compose? And using Docker 01:13 [inaudible] to make your sites even more reliable. Docker cloud and how you can get started with Docker.
So, welcome Mark.
Mark: Well, thank you Michel for having me on board. This is very exciting all across the internets.
Mark Drew has been programming CFML since 1996, and even though he has had forays into Perl, ASP and PHP he is still loving every line of code he has crafted with CFML. His career has concentrated on eCommerce, Content Management and Application Scalability for various well-known brands in the UK market such as Jaeger, Hackett, Hobbs, Dyson, B&W, Diesel amongst others.