diff --git a/Dockerfile.aro-azext b/Dockerfile.aro-azext new file mode 100644 index 00000000000..bf295bd96d9 --- /dev/null +++ b/Dockerfile.aro-azext @@ -0,0 +1,7 @@ +FROM mcr.microsoft.com/azure-cli:2.58.0 + +RUN pip install pytest +COPY /python /data/ + +WORKDIR /data/az/aro +CMD ["/bin/sh", "-c", "pytest --ignore=azext_aro/tests/latest/integration; python3 setup.py bdist_wheel"] diff --git a/Makefile b/Makefile index a50e8bc3e98..09cf47ee768 100644 --- a/Makefile +++ b/Makefile @@ -67,6 +67,11 @@ az: pyenv python3 ./setup.py bdist_wheel || true && \ rm -f ~/.azure/commandIndex.json # https://github.com/Azure/azure-cli/issues/14997 +azext-aro: + docker build . -f Dockerfile.aro-azext --no-cache=$(NO_CACHE) -t aro-azext:latest + mkdir -p ./python/az/aro/dist + docker run -v ./python/az/aro/dist/:/data/az/aro/dist:z aro-azext:latest + clean: rm -rf python/az/aro/{aro.egg-info,build,dist} aro find python -type f -name '*.pyc' -delete