perf: Upgrade ansible postgresql

This commit is contained in:
feng
2026-01-15 11:12:03 +08:00
committed by Jiangjie Bai
parent 04abdfc346
commit a996257052

View File

@@ -10,6 +10,7 @@ ARG DEPENDENCIES=" \
default-libmysqlclient-dev \
freetds-dev \
gettext \
locales \
libkrb5-dev \
libldap2-dev \
libsasl2-dev"
@@ -24,6 +25,8 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=core \
&& sed -i "s@http://.*.debian.org@${APT_MIRROR}@g" /etc/apt/sources.list.d/debian.sources \
&& apt-get update > /dev/null \
&& apt-get -y install --no-install-recommends ${DEPENDENCIES} \
&& sed -i 's/^# *\(en_US.UTF-8 UTF-8\)/\1/' /etc/locale.gen \
&& locale-gen \
&& echo "no" | dpkg-reconfigure dash
# Install bin tools
@@ -42,6 +45,7 @@ WORKDIR /opt/jumpserver
ARG PIP_MIRROR=https://pypi.org/simple
ENV ANSIBLE_COLLECTIONS_PATHS=/opt/py3/lib/python3.11/site-packages/ansible_collections
ENV LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8 \
PATH=/opt/py3/bin:$PATH
ENV SETUPTOOLS_SCM_PRETEND_VERSION=3.4.5
@@ -55,5 +59,6 @@ RUN --mount=type=cache,target=/root/.cache \
&& uv venv \
&& uv pip install -i${PIP_MIRROR} -r pyproject.toml \
&& ln -sf $(pwd)/.venv /opt/py3 \
&& ansible-galaxy collection install -r collections.yml --force --ignore-certs \
&& bash utils/static_files.sh \
&& bash clean_site_packages.sh