-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
81 lines (64 loc) · 3.45 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
.PHONY: list
list:
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
ubuntu_prepare:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CC86BB64
sudo add-apt-repository ppa:rmescandon/yq
sudo apt update
sudo apt install yq -y
dependencies:
python3 -m pip install jmespath
python3 -m pip install lxml
python3 -m pip install pygithub
# Install Boost Core Locally
install:
$(eval boost_version := $(shell yq r src/boost/openshift/definitions/product.yml boost.version))
@rm -rf src/boost/openshift/playbooks
@mkdir -p src/boost/openshift/playbooks
@wget https://raw.githubusercontent.com/boostcd/boostcd/${boost_version}/src/boost/openshift/playbooks/install.yml -q -P src/boost/openshift/playbooks
@wget https://raw.githubusercontent.com/boostcd/boostcd/${boost_version}/src/boost/openshift/playbooks/hosts.ini -q -P src/boost/openshift/playbooks
@ansible-galaxy collection install ansible.posix
@ansible-galaxy collection install community.general
@ansible-playbook -i src/boost/openshift/playbooks/hosts.ini src/boost/openshift/playbooks/install.yml
# Installs Boost Development Environment
install_boost_development:
@ansible-playbook -i src/boost/openshift/playbooks/hosts.ini src/boost/openshift/playbooks/install_boost_development.yml
# Uninstalls Boost Development Environment
uninstall_boost_development:
@ansible-playbook -i src/boost/openshift/playbooks/hosts.ini src/boost/openshift/playbooks/uninstall_boost_development.yml
# Installs the Product Environment
install_product:
@ansible-playbook -i src/boost/openshift/playbooks/hosts.ini src/boost/openshift/playbooks/install_product.yml
# Uninstalls the Product Environment
uninstall_product:
@ansible-playbook -i src/boost/openshift/playbooks/hosts.ini src/boost/openshift/playbooks/uninstall_product.yml
# Installs the Boost Services
install_services:
@ansible-playbook -i src/boost/openshift/playbooks/hosts.ini src/boost/openshift/playbooks/install_services.yml
# Uninstalls the Boost Services
uninstall_services:
@ansible-playbook -i src/boost/openshift/playbooks/hosts.ini src/boost/openshift/playbooks/uninstall_services.yml
# Update Environments
update_environments:
@ansible-playbook -i src/boost/openshift/playbooks/hosts.ini src/boost/openshift/playbooks/update_environments.yml
# Update Microservices
update_microservices:
@ansible-playbook -i src/boost/openshift/playbooks/hosts.ini src/boost/openshift/playbooks/update_microservices.yml
# Update Libraries
update_libraries:
@ansible-playbook -i src/boost/openshift/playbooks/hosts.ini src/boost/openshift/playbooks/update_libraries.yml
# Update Openshift
update_openshift:
@ansible-playbook -i src/boost/openshift/playbooks/hosts.ini src/boost/openshift/playbooks/update_openshift.yml
# Update Product
update_product:
@ansible-playbook -i src/boost/openshift/playbooks/hosts.ini src/boost/openshift/playbooks/update_product.yml
# Update Users
update_users:
@ansible-playbook -i src/boost/openshift/playbooks/hosts.ini src/boost/openshift/playbooks/update_users.yml
# Update Boost and Services to the Stated Version
update: install
@ansible-playbook -i src/boost/openshift/playbooks/hosts.ini src/boost/openshift/playbooks/update.yml
# Repair Product Jenkins
repair_jenkins:
@ansible-playbook -i src/boost/openshift/playbooks/hosts.ini src/boost/openshift/playbooks/repair_product_jenkins.yml