[7.x] Actually dockerize repo, update build-dists for release manager

This commit is contained in:
Seth Michael Larson
2020-11-04 13:53:41 -06:00
parent acc37ea1e4
commit 708e282eaf
13 changed files with 101 additions and 21 deletions
+6 -3
View File
@@ -1,7 +1,10 @@
ARG PYTHON_VERSION=3.8
FROM python:${PYTHON_VERSION}
COPY dev-requirements.txt /tmp
RUN python -m pip install -r /tmp/dev-requirements.txt
WORKDIR /code/elasticsearch-py
COPY . .
RUN python -m pip install \
--no-cache-dir \
--disable-pip-version-check \
-e . \
-r dev-requirements.txt
+7 -6
View File
@@ -5,11 +5,12 @@ set -eo pipefail
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
BASE_DIR="$( dirname "$BASE_DIR" )"
if [[ "$1" != "release" ]]; then
echo "Must be called ./.ci/make.sh release [version]"
exit 1
if [[ "$1" == "release" ]]; then
python $BASE_DIR/utils/build-dists.py $2
mkdir -p $BASE_DIR/.ci/output
cp $BASE_DIR/dist/* $BASE_DIR/.ci/output/
exit 0
fi
python $BASE_DIR/utils/build_dists.py
mkdir -p $BASE_DIR/.ci/output
cp $BASE_DIR/dist/* $BASE_DIR/.ci/output/
echo "Must be called with '.ci/make.sh [command]"
exit 1
-1
View File
@@ -40,6 +40,5 @@ docker run \
--env "TEST_TYPE=server" \
--name elasticsearch-py \
--rm \
--volume `pwd`:/code/elasticsearch-py \
elastic/elasticsearch-py \
python setup.py test