-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (26 loc) · 800 Bytes
/
Makefile
File metadata and controls
36 lines (26 loc) · 800 Bytes
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
NAME := postgres-toolbox
TAG := latest
IMAGE_NAME := panubo/$(NAME)
.PHONY: build test push clean
build:
docker build --pull -t $(IMAGE_NAME):$(TAG) .
build-quick:
docker build -t $(IMAGE_NAME):$(TAG) .
build-with-cache:
# Used by CI to speed up build and test process
docker pull $(IMAGE_NAME):$(TAG)
docker build -t $(IMAGE_NAME):$(TAG) --cache-from $(IMAGE_NAME):$(TAG) .
test:
bats -r tests/
_ci_test:
true
push:
docker push $(IMAGE_NAME):$(TAG)
clean:
docker rmi $(IMAGE_NAME):$(TAG)
bash: .env
docker run --rm -it --env-file .env $(IMAGE_NAME):$(TAG) bash
.env:
touch .env
shellcheck:
shellcheck commands/common.sh commands/create-user-db commands/drop-user-db commands/psql commands/report commands/save commands/pg-ping commands/vacuumdb commands/pganalyze