-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 846 Bytes
/
Makefile
File metadata and controls
36 lines (28 loc) · 846 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
SHELL := /usr/bin/env bash
# Include shared Makefiles
include project.mk
include standard.mk
include functions.mk
default: generate-syncset gobuild
# Extend Makefile after here
CONTAINER_ENGINE?=docker
# Build the docker image
.PHONY: container-build
container-build:
$(MAKE) build
# Push the docker image
.PHONY: container-push
container-push:
$(MAKE) push
.PHONY: operator-sdk-generate
operator-sdk-generate:
operator-sdk generate crds
operator-sdk generate k8s
.PHONY: generate-syncset
generate-syncset:
if [ "${IN_CONTAINER}" == "true" ]; then \
$(CONTAINER_ENGINE) pull quay.io/app-sre/python:3 && $(CONTAINER_ENGINE) tag quay.io/app-sre/python:3 python:3 || true; \
$(CONTAINER_ENGINE) run --rm -v `pwd -P`:`pwd -P` python:3 /bin/sh -c "cd `pwd`; pip install oyaml; `pwd`/${GEN_SYNCSET}"; \
else \
${GEN_SYNCSET}; \
fi