Created
March 2, 2015 01:06
-
-
Save criloz/edfa3df9c68595fe602f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY : all build | |
CURRENT_DIRECTORY := $(shell pwd) | |
GOPATH := $(CURRENT_DIRECTORY):$(CURRENT_DIRECTORY)/src/vendors | |
BUILD_DIR:=$(CURRENT_DIRECTORY)/bin | |
TASKS_DIR:=$(CURRENT_DIRECTORY)/tasks | |
SERVERS_FILE:=$(TASKS_DIR)/servers.yml | |
export GOPATH | |
all: build | |
build: move-assets | |
# build pulsar | |
go build -o $(BUILD_DIR)/pulsar -v $(CURRENT_DIRECTORY)/src/pulsar.go | |
move-assets: | |
cp -r $(CURRENT_DIRECTORY)/assets $(BUILD_DIR) | |
#=========================================================================================== | |
# Infraestructure Tasks | |
#=========================================================================================== | |
install-basic-layer: install-consul install-registratord | |
install-registratord: get-networking | |
exec $(CURRENT_DIRECTORY)/bin/python $(TASKS_DIR)/install_registrator.py $(SERVERS_FILE) | |
install-consul: get-networking | |
exec $(CURRENT_DIRECTORY)/bin/python $(TASKS_DIR)/install_consul.py $(SERVERS_FILE) | |
install-elasticsearch: get-networking | |
exec $(CURRENT_DIRECTORY)/bin/python $(TASKS_DIR)/install_elasticsearch.py $(SERVERS_FILE) | |
get-networking: | |
exec $(CURRENT_DIRECTORY)/bin/python $(TASKS_DIR)/get_networking.py $(SERVERS_FILE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment