Added endpoint detection from yaml file
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user