forked from miguno/java-docker-build-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
36 lines (28 loc) · 933 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This justfile requires https://github.com/casey/just
# Load environment variables from `.env` file.
set dotenv-load
# print available targets
default:
@just --list --justfile {{justfile()}}
# evaluate and print all just variables
evaluate:
@just --evaluate
# print system information such as OS and architecture
system-info:
@echo "architecture: {{arch()}}"
@echo "os: {{os()}}"
@echo "os family: {{os_family()}}"
# create a docker image (requires Docker)
docker-image-create:
@echo "Creating a docker image ..."
@./create_image.sh
# size of the docker image (requires Docker)
docker-image-size:
@docker images $DOCKER_IMAGE_NAME
# run the docker image (requires Docker)
docker-image-run:
@echo "Running container from docker image ..."
@./start_container.sh
# send request to the app's HTTP endpoint (requires running container)
send-request-to-app:
curl http://localhost:8123/status