blob: e1a8b926c0ee61ad7257b0ddacb67ed151d8f009 (
plain)
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
|
.PHONY: build
# Shorcut for calling compose commands
DOCKER_COMPOSE = docker-compose -p parsely_localstack
# https://blog.byronjsmith.com/makefile-shortcuts.html
# This allow us to launch tools without having to `souce .venv/bin/activate` first
VENV = .venv
export VIRTUAL_ENV := $(abspath ${VENV})
export PATH := ${VIRTUAL_ENV}/bin:${PATH}
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
build: ## Build the virtual environment
bin/build.sh
up: build ## Bring up the environment
${DOCKER_COMPOSE} up -d
start: ## Run the sample script
awslocal sqs create-queue --queue-name sample-queue
python sqs_sample.py
down: ## shutdown external services
${DOCKER_COMPOSE} down
clean: down ## Remove the virtual environment and shut down services
rm -rf ${VENV}
|