зеркало из https://github.com/Azure/ARO-RP.git
Minimal Python container to build `az aro` extension (#3490)
* Add build container for az aro extension
This commit is contained in:
Родитель
62253dd77d
Коммит
1a7df460e9
|
@ -0,0 +1,12 @@
|
|||
FROM mcr.microsoft.com/azure-cli:2.61.0 AS builder
|
||||
|
||||
RUN pip install pytest
|
||||
COPY /python /data/
|
||||
|
||||
WORKDIR /data/az/aro
|
||||
RUN pytest --ignore=azext_aro/tests/latest/integration
|
||||
RUN python3 setup.py bdist_wheel
|
||||
|
||||
FROM mcr.microsoft.com/azure-cli:2.61.0-cbl-mariner2.0 AS final
|
||||
COPY --from=builder /data/az/aro/dist /opt/az
|
||||
RUN az extension add --yes --source /opt/az/aro-*-py2.py3-none-any.whl
|
4
Makefile
4
Makefile
|
@ -67,6 +67,10 @@ az: pyenv
|
|||
python3 ./setup.py bdist_wheel || true && \
|
||||
rm -f ~/.azure/commandIndex.json # https://github.com/Azure/azure-cli/issues/14997
|
||||
|
||||
.PHONY: azext-aro
|
||||
azext-aro:
|
||||
docker build --platform=linux/amd64 . -f Dockerfile.ci-azext-aro --no-cache=$(NO_CACHE) -t azext-aro:latest
|
||||
|
||||
clean:
|
||||
rm -rf python/az/aro/{aro.egg-info,build,dist} aro
|
||||
find python -type f -name '*.pyc' -delete
|
||||
|
|
Загрузка…
Ссылка в новой задаче