21f25419eb
Co-authored-by: Seth Michael Larson <seth.larson@elastic.co>
19 lines
512 B
Bash
Executable File
19 lines
512 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eo pipefail
|
|
|
|
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
BASE_DIR="$( dirname "$BASE_DIR" )"
|
|
|
|
if [[ "$1" == "assemble" ]]; then
|
|
mkdir -p $BASE_DIR/.ci/output
|
|
docker build . --tag elastic/elasticsearch-py -f .ci/Dockerfile
|
|
docker run --rm -it -v $BASE_DIR/.ci/output:/code/elasticsearch-py/dist \
|
|
elastic/elasticsearch-py \
|
|
python /code/elasticsearch-py/utils/build-dists.py $2
|
|
exit 0
|
|
fi
|
|
|
|
echo "Must be called with '.ci/make.sh [command]"
|
|
exit 1
|