This repository has been archived by the owner on Dec 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
53 lines (46 loc) · 2.11 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
ENV_FILE := .env
# use bash, for making echo -n work (see below)
SHELL=/bin/bash
include ${ENV_FILE}
export $(shell sed 's/=.*//' ${ENV_FILE})
export PIPENV_DOTENV_LOCATION=${ENV_FILE}
deploy_ultrahook:
oc process -f openshift/ludus.ultrahook.deployment.template.yaml \
--param ULTRAHOOK_API_KEY=$(shell echo -n "${ULTRAHOOK_API_KEY}" | base64) \
--param ULTRAHOOK_SUBDOMAIN=${ULTRAHOOK_SUBDOMAIN} \
--param ULTRAHOOK_DESTINATION=${ULTRAHOOK_DESTINATION} | oc apply -f -
delete_ultrahook:
oc process -f openshift/ludus.ultrahook.deployment.template.yaml \
--param ULTRAHOOK_API_KEY=$(shell echo -n "${ULTRAHOOK_API_KEY}" | base64) \
--param ULTRAHOOK_SUBDOMAIN=${ULTRAHOOK_SUBDOMAIN} \
--param ULTRAHOOK_DESTINATION=${ULTRAHOOK_DESTINATION} | oc delete -f -
deploy_event_listener:
oc process -f openshift/ludus.event_listener.deployment.template.yaml \
--param GITHUB_URL=${GITHUB_URL} \
--param KAFKA_TOPIC=${KAFKA_TOPIC} \
--param KAFKA_BOOTSTRAP_SERVER=${KAFKA_BOOTSTRAP_SERVER} | oc apply -f -
delete_event_listener:
oc process -f openshift/ludus.event_listener.deployment.template.yaml \
--param GITHUB_URL=${GITHUB_URL} \
--param KAFKA_TOPIC=${KAFKA_TOPIC} \
--param KAFKA_BOOTSTRAP_SERVER=${KAFKA_BOOTSTRAP_SERVER} | oc delete -f -
deploy_awarder:
oc process -f openshift/ludus.awarder.deployment.template.yaml \
--param GITHUB_URL=${GITHUB_URL} \
--param KAFKA_TOPIC=${KAFKA_TOPIC} \
--param KAFKA_BOOTSTRAP_SERVER=${KAFKA_BOOTSTRAP_SERVER} \
--param AWARDER_NAME=${AWARDER_NAME} \
--param AWARDER_PORT=${AWARDER_PORT} \
--param EVENTS_TABLE_NAME=${EVENTS_TABLE_NAME} \
--param BADGES_TABLE_NAME=${BADGES_TABLE_NAME} | oc apply -f -
delete_awarder:
oc process -f openshift/ludus.awarder.deployment.template.yaml \
--param GITHUB_URL=${GITHUB_URL} \
--param KAFKA_TOPIC=${KAFKA_TOPIC} \
--param KAFKA_BOOTSTRAP_SERVER=${KAFKA_BOOTSTRAP_SERVER} \
--param AWARDER_NAME=${AWARDER_NAME} \
--param AWARDER_PORT=${AWARDER_PORT} \
--param EVENTS_TABLE_NAME=${EVENTS_TABLE_NAME} \
--param BADGES_TABLE_NAME=${BADGES_TABLE_NAME} | oc delete -f -
setup_trello:
pipenv run python setup_trello.py