Recently I've been investigating how to migrate from Google Blogger to Wordpress. The best solution for me so far is by using Google's takeout to get a feed.atom file and use a python script to copy over posts, comments and images.
Along the way, I needed to run Wordpress and my normal approach to this was to install Ubuntu Linux and manually set up mysql, nginx, php, and wordpress. This gets tedious. I've played with docker in the past but was very pleased to find that there is an official wordpress compose.yaml and this makes it very quick to get up and running. (Ubuntu 24.04.2 LTS)
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker $USER
# log out and back in then test
docker run hello-world
docker info
mkdir wp-docker
cd wp-docker
# save the compose.yaml file
# from https://hub.docker.com/_/wordpress
docker compose up
Then visit the machine's web port 8080 like http://latitude.local:8080/
The first time you get this:
The two docker containers, one for mysql, the other for the apache web server, already know how to talk to each other. After just a little config we have Wordpress:
The terminal that you did the 'docker compose up' in can be gracefully shut down with Control-C.
To wipe it all, so you can start fresh or get some space back:
docker compose down --volumes
Note that docker is extremely efficient and takes much fewer resources than running a full vitual machine.
2 comments:
I've used Wordpress for 12 years and it is excellent. I use the free cloud hosting option. They have rebranded the original Wordpress app with something called Jetpack which I don't understand because it looks like the exact same app. Maybe I'll ask Gemini.
BTW there are some Blogger quirks that have always irritated me. For one, when I leave a comment I can provide a name and URL. If I move up your blog and go to post another comment, the name/URL pair are forgotten. Wordpress would never do that.
I use Wordpress for a few sites I help with. MRARC and RAOTC sites. It seems excellent and very flexible. My only complaint is that there are many "free" plugins that try to upsell but holding back features. In general I try to avoid plugins.
Post a Comment