Devlog #3
This is a shortened version due to the character limit. I posted the full version on GitHub.
Hi!
It has been a long time since I posted my last devlog, whether you count the days or the coding hours. I took a break surfing the internet and listening to the radio. After I came back, I ended up spending more than 10 hours coding. Anyway, there are some big changes.
If you missed the previous devlogs, I am making an OCI Image, basically a Docker image, that includes Nginx and a bunch of third-party modules and runs out of the box.
Changes:
-
I first tried to make a Containerfile generator. Just like most complicated C/C++ projects use ./configure to generate the Makefile, I planned to write a python program that can generate the Containerfile for different combination of Nginx plugins. However, I think this may be too complicated for my project right now, so I moved the unfinished code to the experiment/containerfile-generator branch. I may come back to it later.
82 additions & 0 deletions
#(WIP) Commit 2884ed1 -
Also, I did a big refactor with 134 additions and 89 deletions. Now the user can customize the versions of software and the installation path when building the image! I replaced a lot of fixed commands with build ARGs. The replacement tool really helped a lot!
#Commit c9a2643 -
I changed the project name from
slim-lua-nginxtoModsNGX. Does it feel better? Old GitHub links should automatically redirect. If you run into any issue, try replacing the repository name in the link withModsNGX, and feel free to contact me.
It is kinda weird, but I committed my latest changes first, and then commit my early generator code. It’s somehow out of order. Some code I commit now is written two weeks ago.
Plan:
Ship it when I feel it is ready!!
I regret making the gap between the two devlogs this long. It literally took me an hour to separate the mixed code and stage the changes, and I also spent almost my whole day on this devlog. Even worse, I hit the 4000-character limit.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.