Network Policy
Restricted Egress
仅允许访问内网订单库与制品仓库,其余出网请求全部拦截。
订单查询 / 退款判断回归环境,预置订单库快照与退款规则配置。
—
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Asia/Shanghai
RUN apt-get update && apt-get install -y \
curl git ca-certificates postgresql-client \
python3 python3-pip \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /workspace
COPY requirements.txt /workspace/requirements.txt
RUN pip3 install --no-cache-dir -r /workspace/requirements.txt
ENV ORDER_DB_HOST=order-db.internal
ENV ORDER_DB_PORT=5432
CMD ["/bin/bash"]
psql -f /workspace/seed/orders_snapshot.sql python3 /workspace/seed/build_refund_rules.py --out /opt/rules python3 -m compileall /workspace chmod -R 755 /opt/rules
pip3 install -r requirements-dev.txt python3 manage.py migrate --noinput
service postgresql start python3 /workspace/order-service/scripts/warmup.py
仅允许访问内网订单库与制品仓库,其余出网请求全部拦截。
| Version | Status | Created At | Build Finished At | Created From | Actions |
|---|