forked from ByteInternet/hypernode-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 626 Bytes
/
Makefile
File metadata and controls
24 lines (18 loc) · 626 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
DISTROBOX_NAME := $$(basename $$(pwd))
CONTAINER_MANAGER ?= docker
.PHONY: build
build: create-distrobox build-with-distrobox
build-with-distrobox:
distrobox enter $(DISTROBOX_NAME) \
-e 'make compile'
#distrobox stop -Y $(DISTROBOX_NAME)
clean:
$(CONTAINER_MANAGER) kill $(DISTROBOX_NAME) || /bin/true
$(CONTAINER_MANAGER) rm -f $(DISTROBOX_NAME)
rm -rf .venv
compile:
ci/compile.sh
sudo cp build/hypernode-deploy.phar /usr/local/bin/hypernode-deploy
create-distrobox:
$(CONTAINER_MANAGER) build -t distrobox-$(DISTROBOX_NAME) .distrobox
distrobox create --image distrobox-$(DISTROBOX_NAME) $(DISTROBOX_NAME)