Wednesday, June 19, 2024

Docker, Wordpress, and Linode

Maybe a week ago, I decided to refresh my Linode instance.  I'd been using Ubuntu 16.04 LTS on it the past 10 years.  16.04 has been unsupported for quite a while now, but I was being lazy while still watching the server for compromised (the server was locked down very well).

Initially, I'd planned on a slow rollover to Ubuntu 24.04 LTS, by deploying a new host and slowly migrating over to it from the old server.  One day, I just said, "fuck it" and started from scratch.  I kept my old disk volume and mounted it to the new host so that I could grab old data whenever I needed it...having config files from the old host would help me when reinstalling the software I was using on the old host.

The plan was to migrate my two Wordpress sites to the new host but today I tried running Wordpress on Docker on an old Dell XPS 8930 and it worked well.  I first tried to just get to the point where Wordpress could install onto it.  I then tried to restore a backup of one Wordpress site onto the Dockerized Wordpress instance and I was immediately successful.  It happened so quickly that I spent the rest of the day testing it, to the point that I decided to do the same thing on the 24.04 server tonight.  It's now up and running and I've already been posting to it.  I'll monitor it the next few days and will probably back it up, tear down the whole thing, and then try some different setups, such as trying to run both Wordpress sites from one set of containers (the problem is, I need both Wordpress sites to be serving on port 80 and there's only one port 80 on the server.

Currently the setup is using three small containers (one for MySQL, one for Wordpress, and one for phpmyadmin).  I leveraged the YAML files of two other nerds, using both to build my own YAML file, which I used to pull the images and configure the containers.  I ran in to issues more than a few times, but between what I learned last year on acloud.guru and trial and error, it wasn't all that difficult.  What I haven't done (YET) is build my own dockerfiles.

I usually also use the Linode host as a file server (sharing pictures with friends and forums), and I was doing that using Apache, so that's a 3rd application that I'd need to use port 80...not sure how I'm going to set all this up, but the neat thinga bout Docker is that I can blow it away and start over (keeping my .yml compose files to work with and tweak), again and again, until I get it right.

This was the first time outside of training that I used Docker and I honestly should've been using it a long time ago.

I actually had a lot of fun doing this.

UPDATE (7/28/2024):

I'm having some issues trying to determine how to host two sites on one Dockerized Wordpress setup.  I can probably use the muti-site Wordpress setup but I need to study up on how to alter the wp-config file using the docker-compose.yml file.

Or, I can probably just run two Docker setups, one for my firearms blog and one for my car blog.

I also want to be able to share my many pictures and files using Apache, but found that I can't run Apache AND Worpdress, as both use port 80.  I may have to use some type of proxying.

Lastly, I can just reinstalled Wordpress in a non-Dockerized fashion, while experimenting with Wordpress in Docker.  This is probably the more reasonable approach, as I can study up how to leverage Docker at my own leisure but have a production native Wordpress setup.

Saturday, June 01, 2024

Second GoPro Hero 10 Black Gotcha - Camera Overheating

I've been using the GoPro Hero 10 Black for a bit now,  The last time I posted, I complained that there was no real preview option.  That issue still exists and is still annoying.  There have been more than a few times where I've discovered that my framing is off-center or is not capturing what I require.  I'm almost to the point where it's so annoying that I may replace this camera.

There's another annoying thing that's occurring.

I want to capture in 4K reslution at 60 FPS when I'm at the firearms range.  My range visits are usually an hour long but I don't shoot during that whole hour.  I only record when I'm shooting, and between shooting, I've to load mags or retrieve/replace the target.  I'm finding that the camera can never get through the session while being turned on.  At the last 10 minutes of the range session, I always find that the camera has shut down due to overheating.

This is highly annoying, as sometimes I don't even know that the camera is off...it doesn't audibly alert me (I can't see the camera, as it sits on my head, on a ball cap, using a hat mount).

Note that the range I frequent is an indoor range that is AC-cooled. Ambient temps are cool, to the point that I usually wear a jacket/hoodie.

The camera gets hot just by being on, it seems, then when it's recording, it gets hotter.  I've configured the camera to not have the camera screens on (I view the framing and control the camera using the Quik app on my phone).  Dialing back the resolution is a very LAME workaround, but that's what I think I'll have to do to prevent this from occurring.  :/

The lack of live previewing can be negated by just buying a 360 camera.  I'm sure most 360 cameras that aren't made by GoPro will not overheat.

This is depressing because Ive invested (financially) in using this camera.  I suppose I can sell it and every GoPro accessory I own to attempt to recoup financially.  I also spent a lot of time in researching if this was the camera for me.

So, the hunt begins for yet another camera.  One thing I haven't done is use the Osmo Pocket 3 at the range, and I think it will perform fine, but I really think a good inexpensive 360 camera will work...I don't need to use the $600+ Pocket 3 to replace the Hero 10.

UPDATE (8/13/2024):  I should've shared that the Pocket 3 also shuts down when I used it when capturing Youtube footage.  As with the GoPro, the OP3 overheats when recording in 4K (30 FPS), which is sad.  It's obvious that there are limitations with the higher resolutions.