Browse Source

Merge pull request #11076 from jumpserver/pr@dev@perf_django_version

perf: 降级 Django 版本
pull/11078/head^2
老广 1 year ago committed by GitHub
parent
commit
c9fffa50a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Dockerfile
  2. 9
      requirements/requirements.txt

2
Dockerfile

@ -82,13 +82,11 @@ RUN set -ex \
WORKDIR /tmp/build WORKDIR /tmp/build
COPY ./requirements ./requirements COPY ./requirements ./requirements
ARG ANSIBLE_CORE_VERSION=2.14.1
ARG PIP_MIRROR=https://pypi.douban.com/simple ARG PIP_MIRROR=https://pypi.douban.com/simple
RUN --mount=type=cache,target=/root/.cache/pip \ RUN --mount=type=cache,target=/root/.cache/pip \
set -ex \ set -ex \
&& pip config set global.index-url ${PIP_MIRROR} \ && 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 && pip install -r requirements/requirements.txt
COPY --from=stage-build /opt/jumpserver/release/jumpserver /opt/jumpserver COPY --from=stage-build /opt/jumpserver/release/jumpserver /opt/jumpserver

9
requirements/requirements.txt

@ -2,7 +2,7 @@
cython==3.0.0 cython==3.0.0
aiofiles==23.1.0 aiofiles==23.1.0
amqp==5.1.1 amqp==5.1.1
#git+https://github.com/jumpserver/ansible@master#egg=ansible-core ansible-core@https://github.com/jumpserver/ansible/archive/refs/tags/v2.14.1.zip
ansible==7.1.0 ansible==7.1.0
ansible-runner==2.3.3 ansible-runner==2.3.3
asn1crypto==1.5.1 asn1crypto==1.5.1
@ -70,7 +70,7 @@ geoip2==4.7.0
ipip-ipdb==1.6.1 ipip-ipdb==1.6.1
pywinrm==0.4.3 pywinrm==0.4.3
# Django environment # Django environment
Django==4.2.3 Django==4.1.10
django-bootstrap3==23.4 django-bootstrap3==23.4
django-filter==23.2 django-filter==23.2
django-formtools==2.4.1 django-formtools==2.4.1
@ -108,8 +108,7 @@ websockets==11.0.3
# Auth # Auth
python-ldap==3.4.3 python-ldap==3.4.3
ldap3==2.9.1 ldap3==2.9.1
#django-radius==1.5.0 django-radius@https://github.com/ibuler/django-radius/archive/refs/tags/1.5.0.zip
git+https://github.com/robgolding/django-radius@develop#egg=django-radius
django-cas-ng==4.3.0 django-cas-ng==4.3.0
python-cas==1.6.0 python-cas==1.6.0
django-auth-ldap==4.4.0 django-auth-ldap==4.4.0
@ -121,8 +120,6 @@ kubernetes==27.2.0
# DB requirements # DB requirements
mysqlclient==2.2.0 mysqlclient==2.2.0
PyMySQL==1.1.0 PyMySQL==1.1.0
pymssql==2.2.7
django-mysql==4.11.0
django-redis==5.3.0 django-redis==5.3.0
python-redis-lock==4.0.0 python-redis-lock==4.0.0
pyOpenSSL==23.2.0 pyOpenSSL==23.2.0

Loading…
Cancel
Save