Add Dockerfile, Makefile, specs, SSL certs

This commit is contained in:
2025-06-24 14:24:38 -07:00
parent b5757a6c91
commit 6de5e6b847
4 changed files with 68 additions and 2 deletions

19
Makefile Normal file
View File

@@ -0,0 +1,19 @@
image = test-nginx
loopback = 127.0.0.1
image-build:
docker build -t $(image) .
image-rm:
docker image rm $(image)
test:
@ct=$(shell docker run --rm -d \
-v $(PWD)/conf/conf.d:/etc/nginx/conf.d \
-v $(PWD)/html:/var/www \
-v $(PWD):/opt/app \
--network no-internet \
--add-host=domain.abc=$(loopback) \
$(image)); \
docker exec -t $$ct busted; \
docker exec $$ct openresty -s stop