mirror of https://github.com/jumpserver/jumpserver
perf: 预构建 ansible-core
parent
d5461fe66f
commit
94d40efcad
|
@ -82,11 +82,13 @@ RUN set -ex \
|
|||
WORKDIR /tmp/build
|
||||
COPY ./requirements ./requirements
|
||||
|
||||
ARG ANSIBLE_CORE_VERSION=2.14.1
|
||||
ARG PIP_MIRROR=https://pypi.douban.com/simple
|
||||
|
||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
||||
set -ex \
|
||||
&& pip config set global.index-url ${PIP_MIRROR} \
|
||||
&& pip install https://github.com/jumpserver/ansible/releases/download/v${ANSIBLE_CORE_VERSION}/ansible_core-${ANSIBLE_CORE_VERSION}-py3-none-any.whl \
|
||||
&& pip install -r requirements/requirements.txt
|
||||
|
||||
COPY --from=stage-build /opt/jumpserver/release/jumpserver /opt/jumpserver
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
cython==3.0.0
|
||||
aiofiles==23.1.0
|
||||
amqp==5.1.1
|
||||
git+https://github.com/jumpserver/ansible@master#egg=ansible-core
|
||||
#git+https://github.com/jumpserver/ansible@master#egg=ansible-core
|
||||
ansible==7.1.0
|
||||
ansible-runner==2.3.3
|
||||
asn1crypto==1.5.1
|
||||
|
|
Loading…
Reference in New Issue