blob: a2882dc0b4b02d391b6081cf1e50d0366747d59a [file] [log] [blame]
Zack Williams0171fb32021-09-08 22:31:54 -07001# infra-containers Makefile
2
3# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
4# SPDX-License-Identifier: Apache-2.0
5
6SHELL = bash -eu -o pipefail
7
8BASE_TAG := onfinfra/
9
10# print help by default
11.DEFAULT_GOAL := help
12
13# phony (doesn't make files) targets
14.PHONY: test docker-build docker-push
15
16docker-build:
17 docker build -t $(BASE_TAG)molecule-systemd:debian-11 molecule-systemd/debian-11
18
19docker-push:
20 docker push $(BASE_TAG)molecule-systemd:debian-11
21
22lint: ## run linters (hadolint) on Dockerfiles
23 hadolint --version
24 hadolint */*/Dockerfile
25
26test: lint ## run tests (only lint for now)
27
28license: ## check licenses
29 reuse --version ;\
30 reuse --root . lint
31
32help: ## Print help for each target
33 @echo infra-containers make targets
34 @echo
35 @grep '^[[:alnum:]_-]*:.* ## ' $(MAKEFILE_LIST) \
36 | sort | awk 'BEGIN {FS=":.* ## "}; {printf "%-25s %s\n", $$1, $$2};'