Lin Minquan's Blog

Experience technology to change life

Building a Pytest Enabled Docker Image Using Python Base Image

Attempting to create a Docker image based on Python and install the dependencies required for Pytest. Windows systems require installing WSL2 and Docker Desktop. Create a file called Dockerfile in the project root directory with the following content: FROM python:3.12.11-slim RUN apt-get update && apt-get install -y curl unzip wget # Install Java (required for Allure) RUN apt-get install -y default-jre-headless # Install Allure Report RUN wget https://github.com/allure-framework/allure2/releases/download/2.32.0/allure_2.32.0-1_all.deb && \ dpkg -i allure_2. Read more →

3HK Prepaid SIM Validity Extension Logic

3HK prepaid SIM cards have an annoying feature - they don’t simply extend the validity period based on your current remaining days. If your remaining validity period already exceeds the extension days, then the extension days will be ignored. For example, if your current remaining validity is 100 days and you top up HK$20, your validity period won’t be extended by 30 days, but will remain at 100 days. Let’s say I top up over two hundred HK dollars on July 1, 2025. Read more →