Collection of cookbooks for Podman Quadlets
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Nicolas Massé 24dc9b8055 nginx tests 1 month ago
..
config/examples reorganization 1 month ago
tests nginx tests 1 month ago
website reorganization 1 month ago
Makefile reorganization 1 month ago
README.md reorganization 1 month ago
nginx-git.image put container images into a .image quadlet to pre-pull images before services start 1 month ago
nginx-init.container put container images into a .image quadlet to pre-pull images before services start 1 month ago
nginx-server.container put container images into a .image quadlet to pre-pull images before services start 1 month ago
nginx-update.container put container images into a .image quadlet to pre-pull images before services start 1 month ago
nginx-update.timer reorganization 1 month ago
nginx.image put container images into a .image quadlet to pre-pull images before services start 1 month ago
nginx.target reorganization 1 month ago

README.md

Podman Quadlet: Nginx

Overview

Nginx is started as a Podman Quadlet and before that, the content to serve is initialized (git clone) or updated (git pull) from a GIT repository.

Usage

In a separate terminal, follow the logs.

sudo make tail-logs

Install the Podman Quadlets and start Nginx.

sudo make clean install

You should see the nginx-init.service cloning this git repository to fetch the content to serve. Then, the nginx-server.service should start up.

You can check that the content is indeed served on port 80.

$ curl http://localhost/
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Hello World</title>
</head>
<body>
    <h1>Hello World</h1>
</body>
</html>

Then restart the nginx.target unit.

sudo systemctl restart nginx.target

In the logs, you should see the nginx-update.service starting up and executing a git pull to update the content to serve. Then, the nginx-server.service should start up.

Finally, remove the quadlets, their configuration and their data.

sudo make uninstall clean

Integration tests

sudo make test