Docker from Scratch, Part 6: CLI Containers and Helper Scripts

 
In the last post, we got our database container up and running. Combined with our web server container, we should have everything we need to get our application running, right? Well, kinda. For many applications, it’s useful to have one more container to act as a command line interface. That way, we can run whatever scripts or utilities our application requires. Building the CLI Container We’ll start off our CLI container just like with all our other containers, but adding a new cli...

Things lost, things found

 
Haven't had much space to write in. Work has been keeping me busy (when I finish tomorrow and finally get a few days off, I will have been working for 22 of 26 days) and I am so behind on school I've been trying to put all my home energies into that. Been neglecting story-writing, cooking and cleaning, personal projects, near any entertainment I can't leave in the background without demanding focus. Not that it does me much good. Still behind, possibly even farther behind than I was. Until the end of...

"You shouldn't need a case"

 
A few weeks ago this opinion wandered across my social media streams. At first, it seems level-headed and sensible. The more I think about it however, the more short-sighted it seems. If you've never needed a case, or never had problems holding your smartphone, it might be easy to think that your experience applies to everyone. Your experience isn’t universal, people are complicated. I, for example, might never really need a case for my phones. I'm fairly careful with them, mind where I put...

Random Star Wars thoughts

 
Saw some folk talking about the forgiveability or lack thereof of Darth Vader, particularly wert the murder of children. The prequel films had not been made at the time Return of the Jedi had been released, and I don't believe Lucas' claims of having planned the whole thing out from the beginning, so usually I am not interested in judging the first three Star Wars films on the basis of actions or emotions depicted in the prequels. I also don't recall Luke saying at any point that he forgave...

New Oscilloscope

 
Since I was very small, I wanted an oscilloscope. As a child in the 80s, this was a nearly impossible want. New ones were unthinkably expensive, while used ones were rare in working condition. I eventually did get my then tiny hands on a clunky, heavy, rack mounted unit with a screen the same color as Thai iced tea. It never worked, of course, but I didn't figure that out until years later. Eventually, it ended up in the bin with a lot of my childhood things. That never stopped me from...

DCI Banks and the Case of the Catastrophic Emotional Errors

 
[This post is talking about the DCI Banks episode "Friend of the Devil" and anyone reading who wants to avoid spoilers for that story would be advised to avoid reading this post. Also, the subject of the crimes is mostly violent rape and murder.] Last night I watched an episode of DCI Banks which struck me as very pro-police. I mean, you could probably safely assume that any mystery series in which the protagonists are police who solve crimes is going to be pro-police but in this case it seemed quite...

Or maybe that's zombies?

 
Falling in love is a lot like being sick First there's the denial phase, refusal to admit the possibility Then the sleepless, feverish nights, thoughts in chaos Finally you emerge, thought processes reconfigured for the new...

This week's theme is plumbing

 
Dishwasher not cleaning – Mitigated. Water wasn’t hot enough led to a build up of nasty and a partial trap clog. Kitchen sink sprayer leaking – Replaced. Original one that came with tap always had a dodgy connection. Bathtub mystery leaking – Failed section of tub caulk replaced. Good to know I can pull that off now. The water damage to the floor remains and has always been a known problem in this...

Docker Circular Import Hell

 
Lately I've been stuck on a particular problem with my Docker container projects. Generally, I need three containers to run Drupal: A web server container, a database container, and a container to host any CLI tools. The latter isn't necessary, but it's very, very useful when working with Drupal core and module code. Drupal has two primary CLI tools, drush, and Drupal Console. These tools allow you to reinitialize the site, clear internal caches, install modules, and generate module code. You...