-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
45 lines (31 loc) · 921 Bytes
/
Makefile
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
37
38
39
40
41
42
43
44
45
.EXPORT_ALL_VARIABLES:
# https://makefiletutorial.com/
# set default shell
SHELL=/bin/bash -o pipefail -o errexit
-include .env
AIO_VERSION ?= 5.0.3
CONTAINER_VERSION ?= test
ALPINE_VERSION = 3.20
NGINX_VERSION = 1.26.2
GOMPLATE_VERISON = 3.11.7
COMMIT_SHA ?= git-$(shell git rev-parse --short HEAD)
REGISTRY ?= docker.io/wallarm
IMAGE ?= $(REGISTRY)/node:$(CONTAINER_VERSION)
IMAGE_LATEST := $(REGISTRY)/node:latest
NODE_VERSION ?= $(shell echo $(AIO_VERSION) | awk -F'[-.]' '{print $$1"."$$2"."$$3}')
PYTEST_WORKERS ?= 10
PYTEST_ARGS ?= --allure-features=Node
### Build routines
###
build:
build-scripts/docker_build.sh
rmi:
@docker rmi $(IMAGE)
push-latest:
docker buildx imagetools create -t $(IMAGE_LATEST) $(IMAGE)
dive:
@dive $(IMAGE)
smoke-test: single split
single split:
test/smoke_test.sh $@
.PHONY: smoke-test singe split build push push-latest rmi dive