-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (27 loc) · 973 Bytes
/
Makefile
File metadata and controls
33 lines (27 loc) · 973 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
OWNER ?= pipekit
IMAGE_NAME ?= databricks-connector
TAG ?= latest
CLUSTER_NAME ?= k3s-default
.PHONY: all
all: docker-build k3d-import
.PHONY: docs
docs:
go run cmd/databricks-connector/main.go docs
.PHONY: docker-build
docker-build:
docker build -t $(OWNER)/$(IMAGE_NAME):$(TAG) .
docker push $(OWNER)/databricks-connector:latest
.PHONY: k3d-import
k3d-import:
k3d image import $(IMAGE_NAME):$(TAG) -c $(CLUSTER_NAME)
.PHONY: gomod2nix
gomod2nix:
docker run --rm -v $$(pwd):/app -w /app nixos/nix nix --extra-experimental-features "nix-command flakes" run github:nix-community/gomod2nix -- --dir .
.PHONY: help
help:
@echo "Usage:"
@echo " make docs Generate CLI documentation"
@echo " make docker-build Build the docker image"
@echo " make k3d-import Import the docker image into k3d cluster ($(CLUSTER_NAME))"
@echo " make gomod2nix Update gomod2nix.toml using Docker"
@echo " make all Build and import the image"