[7.x] Actually dockerize repo, update build-dists for release manager
This commit is contained in:
+6
-3
@@ -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
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user