Skip to content

Commit

Permalink
Add build container for az aro extension
Browse files Browse the repository at this point in the history
  • Loading branch information
tsatam committed Mar 6, 2024
1 parent 3ad2754 commit 5b64c4d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile.aro-azext
Original file line number Diff line number Diff line change
@@ -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"]
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5b64c4d

Please sign in to comment.