代码拉取完成,页面将自动刷新
同步操作将从 好雨科技/rainbond-console 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
ARG IMAGE_NAMESPACE=rainbond
ARG VERSION=v6.0.0-release
# build ui
FROM ${IMAGE_NAMESPACE}/rainbond-ui:${VERSION} AS ui
ADD . /app/ui
WORKDIR /app/ui
RUN mv /dist/index.html /app/ui/www/templates/index.html && \
rm -rf /app/ui/www/static/dists && \
mkdir -p /app/ui/www/static/dists && \
cp -a /dist/* /app/ui/www/static/dists/
# build console
FROM python:3.6-stretch AS build-console
ARG PYTHONPROXY
ARG TARGETARCH
ARG VERSION
COPY --from=ui /app/ui /app/ui
WORKDIR /app/ui
ENV PATH="/app/ui/py_venv/bin:$PATH"
RUN python -m venv --copies /app/ui/py_venv && \
python -m pip install --upgrade pip && \
pip install -r requirements.txt $PYTHONPROXY && \
python manage.py collectstatic --noinput --ignore weavescope-src --ignore drf-yasg --ignore rest_framework
RUN git clone --depth=1 -b main https://github.com/goodrain/rainbond-chart /app/ui/rainbond-chart && \
sed -i "s/installVersion: .*/installVersion: $VERSION/" /app/ui/rainbond-chart/values.yaml && \
wget https://get.helm.sh/helm-v3.16.2-linux-$TARGETARCH.tar.gz -O /tmp/helm.tar.gz && \
tar -zxvf /tmp/helm.tar.gz -C /tmp && \
mv /tmp/linux-$TARGETARCH/helm /tmp && \
chmod +x /tmp/helm
# build console image
FROM python:3.6-slim-stretch
ARG RELEASE_DESC=
ARG VERSION
COPY --from=build-console /app/ui /app/ui
COPY --from=build-console /tmp/helm /usr/local/bin/helm
WORKDIR /app/ui
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo 'Asia/Shanghai' >/etc/timezone && \
echo "deb http://archive.debian.org/debian/ stretch main" > /etc/apt/sources.list && \
echo "deb http://archive.debian.org/debian-security stretch/updates main" >> /etc/apt/sources.list && \
apt-get update && apt-get --no-install-recommends install -y \
curl mysql-client sqlite3 default-libmysqlclient-dev && \
mkdir -p /app/logs /app/data && \
rm -rf /var/lib/apt/lists/*
ENV PATH=/app/ui/py_venv/bin:$PATH
ENV PORT 7070
ENV IS_OPEN_API=true
ENV RELEASE_DESC=${RELEASE_DESC}
ENV HOME_DIR=/app
VOLUME /app/data
VOLUME /app/logs
EXPOSE 7070
CMD [ "bash", "/app/ui/entrypoint.sh" ]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。