Files
opensearch-pyd/Makefile
T
Nick Lang 0867a56ce3 update makefile to create a docker-compose project
this allows for running multiple versions of python/es at the same time
on a single host
2018-11-16 16:28:11 -07:00

19 lines
616 B
Makefile

clean:
docker-compose down --remove-orphans --volumes
build:
PYTHON_VERSION=${PYTHON_VERSION} docker-compose build client
pull:
ELASTICSEARCH_VERSION=${ELASTICSEARCH_VERSION} PYTHON_VERSION=${PYTHON_VERSION} docker-compose pull
push:
# requires authentication.
PYTHON_VERSION=${PYTHON_VERSION} docker-compose push client
run_tests:
ELASTICSEARCH_VERSION=${ELASTICSEARCH_VERSION} PYTHON_VERSION=${PYTHON_VERSION} docker-compose -p "${ELASTIC_VERSION}-${PYTHON_VERSION}" run client python setup.py test
start_elasticsearch:
ELASTICSEARCH_VERSION=${ELASTICSEARCH_VERSION} docker-compose up -d elasticsearch