-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (25 loc) · 899 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
VERSION=0.1.0
all: service-package container
ui:
npm run build
rm -rf config-ui/config_ui/ui/
cp -r dist/ config-ui/config_ui/ui/
cp public/tg.svg config-ui/config_ui/ui/
template-data:
rm -rf config-ui/config_ui/templates
mkdir -p config-ui/config_ui/templates
find templates -name '*.jsonnet' | cpio -pdm config-ui/config_ui/
resources-data:
rm -rf config-ui/config_ui/resources
mkdir -p config-ui/config_ui/resources
cp -r grafana config-ui/config_ui/resources/
cp -r prometheus config-ui/config_ui/resources/
service-package: ui template-data resources-data update-package-versions
cd config-ui && python3 setup.py sdist --dist-dir ../pkgs/
update-package-versions:
echo __version__ = \"${VERSION}\" > config-ui/config_ui/version.py
CONTAINER=localhost/config-ui
DOCKER=podman
container:
${DOCKER} build -f Containerfile -t ${CONTAINER}:${VERSION} \
--format docker