-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
42 lines (34 loc) · 1.37 KB
/
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
38
39
40
41
42
NHC=lbnl-nhc-1.4.3.tar.gz
.PHONY: clean
clean: ## Remove all deployed applications
juju remove-application --force mysql \
slurmdbd-mysql-router \
slurmctld \
slurmd \
slurmdbd \
slurmrestd
${NHC}: ## Download NHC resource
wget https://github.com/mej/nhc/releases/download/1.4.3/${NHC}
resources: ${NHC} ## Download all resources
.PHONY: lxd
lxd: resources ## Deploy slurm-core in a local LXD Ubuntu Jammy cluster
juju deploy ./slurm-core/bundle.yaml \
--overlay ./slurm-core/clouds/lxd.yaml \
--overlay ./slurm-core/series/jammy.yaml \
--overlay ./slurm-core/charms/local-development.yaml
.PHONY: aws
aws: resources ## Deploy slurm-core in a AWS Ubuntu Jammy cluster
juju deploy ./slurm-core/bundle.yaml \
--overlay ./slurm-core/clouds/aws.yaml \
--overlay ./slurm-core/series/jammy.yaml \
--overlay ./slurm-core/charms/local-development.yaml
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
# SETTINGS
# Use one shell for all commands in a target recipe
.ONESHELL:
# Set default goal
.DEFAULT_GOAL := help
# Use bash shell in Make instead of sh
SHELL := /bin/bash