Today was meant to be 'make a video' day, It turned into a DevOps day
TL:DR Claude on its website and Claude in Cursor seem to have different focuses. I didn't get to do what I planned today but I did learn lots of other things like Powershell, More Docker, OBS
I sat down Infront of my computer this morning about 8am with the intention of creating a video on installing Supabase and its other tools locally on your own computer.
Well, that was the intention, but as they say "The road to hell is paved with good intentions."
It was going to be quite easy.
  1. Delete the container in Docker
  2. Uninstall supabase cli
  3. Reinstall supabase cli
  4. Run supabase start which would pull down all the supabase images.
  5. Point browser at http://localhost:54321 and get Supabase studio up on my PC
Simple, nice and easy.
It was easy the first time. That's when I was getting my process sorted out. Writing my notes, noting the steps and commands I was running. All good.
Time to run through it all again.
  1. Delete the container in Docker
  2. Uninstall supabase cli
  3. Reinstall supabase cli
  4. Run supabase start which pulled down all the supabase images.
  5. Point browser at http://localhost:54321 and get Supabase studio up on my PC.
It's all good. We seem to be doing okay. Going through the Docker desktop and deleting the containers, images, and volumes is a bit repetitive. I should probably write a script for that. And so I did...
So I don't know PowerShell all that well. I have a bit of knowledge about Docker, so I thought with the help of Claude, I would write a Windows batch file that would do the cleanup of Docker. I was getting somewhere after several iterations in Claude, but we constantly missed stuff.
Initially, I wanted to delete everything from Docker, but that seemed like using a hammer to crack a nut. I am better than that, so I decided to delete only what I wanted and not everything. I'm starting to think like a LUser here.
It is now 12PM, I have been at this 5 min task for 4 hours. Not to worry its an investment in time. Writting it right the first time will save refactoring it later.
It was also taking ages to download stuff so I decided to go with nginix and nextcloud images as these could be pulled from Docker Hub relatively quickly.
Claude is still messing up my scripts!!
I fired up Cursor, which happens to be using Claude-3.5-sonnet (the same as I was using from the website). I asked it the same question. About 30 minutes later, I had a working script that does exactly what I wanted. A few minor tweaks, and it's now working as I wanted.
The windows and Linux/Mac scripts can be found on my github
Here's a little vid I made. Not the one I was aiming for but its a video.
2
0 comments
Tom Welsh
6
Today was meant to be 'make a video' day, It turned into a DevOps day
AI Developer Accelerator
skool.com/ai-developer-accelerator
Master AI & software development to build apps and unlock new income streams. Transform ideas into profits. šŸ’”āž•šŸ¤–āž•šŸ‘Øā€šŸ’»šŸŸ°šŸ’°
powered by