Added endpoint detection from yaml file

This commit is contained in:
2026-06-11 11:12:09 +02:00
parent 9f7410b7c7
commit 74b5de9193
2 changed files with 54 additions and 22 deletions
+22 -3
View File
@@ -1,7 +1,26 @@
# Variables
container_name := "rest-cobol-app"
image_name := "rest-cobol"
# Build the docker image
build:
docker build -t rest-cobol .
docker build -t {{image_name}} .
# Run the image
# Run the image in the foreground
run: build
docker run -p 8080:8080 rest-cobol
docker run --name {{container_name}} -p 8080:8080 {{image_name}}
# Run the image in the background (detached)
run-d: build
docker run -d --name {{container_name}} -p 8080:8080 {{image_name}}
# Stop the running container
stop:
docker stop {{container_name}}
# Remove the container
rm:
docker rm {{container_name}}
# Stop and remove the container in one command
clean: stop rm