forked from grafana/grafana-image-renderer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (25 loc) · 822 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
.PHONY: all clean deps build clean_package package archive build_package docker-alpine docker-debian
ARCH = darwin-x64-unknown
SKIP_CHROMIUM =
OUT =
DOCKER_TAG = dev
all: clean build
clean:
rm -rf build
deps: node_modules
node_modules: package.json yarn.lock ## Install node modules.
@echo "install frontend dependencies"
yarn install --pure-lockfile --no-progress
build:
yarn build
clean_package:
./scripts/clean_target.sh ${ARCH} ${OUT}
package:
./scripts/package_target.sh ${ARCH} ${SKIP_CHROMIUM} ${OUT}
archive:
./scripts/archive_target.sh ${ARCH} ${OUT}
build_package: clean clean_package build package archive
docker-alpine:
docker build -t grafana/grafana-image-renderer:${DOCKER_TAG} .
docker-debian:
docker build -t grafana/grafana-image-renderer:${DOCKER_TAG}-debian -f debian.Dockerfile .