代码拉取完成,页面将自动刷新
同步操作将从 好雨科技/rainbond-console 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
ARG VERSION=V5.3-dev
FROM golang:1.14-stretch as builder
# ENV GOPROXY=https://goproxy.io
ENV CGO_ENABLED=1
ENV GOPATH=/go
RUN git clone -b main --depth=1 https://github.com/goodrain/cloud-adaptor /go/src/goodrain.com/cloud-adaptor
WORKDIR /go/src/goodrain.com/cloud-adaptor/
ARG LDFLAGS
RUN go build -ldflags "$LDFLAGS" -o /cloud-adaptor $PWD/cmd/cloud-adaptor
FROM rainbond/rainbond-ui:${VERSION}
ARG RELEASE_DESC=
LABEL author="zengqg@goodrain.com"
RUN mkdir -p /app/ui /usr/share/zoneinfo/Asia/ && \
apt-get update && apt-get install -y supervisor && rm -rf /var/lib/apt/lists/* && \
wget https://goodrain-pkg.oss-cn-shanghai.aliyuncs.com/pkg/helm && chmod +x helm && mv helm /usr/local/bin/ && \
mkdir -p /var/log/supervisor
COPY --from=builder /go/src/goodrain.com/cloud-adaptor/chart /app/chart
COPY --from=builder /cloud-adaptor /app/cloudadaptor
ADD . /app/ui
WORKDIR /app/ui
RUN chmod +x /app/ui/entrypoint.sh && \
mv /app/ui/supervisord.conf /etc/supervisor/supervisord.conf && \
mv /app/ui/rainbond.conf /etc/supervisor/conf.d/rainbond.conf && \
chmod +x /app/cloudadaptor && \
mv /dist/index.html /app/ui/www/templates/index.html && \
mkdir /app/ui/www/static/dists && \
cp -a /dist/* /app/ui/www/static/dists/ && \
rm -rf /dist \
&& mkdir /app/logs \
&& mkdir /app/data \
&& mkdir /root/.ssh \
&& python -m pip install --upgrade pip \
&& pip install -r requirements.txt \
&& python manage.py collectstatic --noinput --ignore weavescope-src --ignore drf-yasg --ignore rest_framework\
&& rm -rf /root/.cache \
&& rm -rf /tmp/* \
&& rm -rf /app/ui/www/static/www/weavescope
ENV PORT 7070
ENV IS_OPEN_API=true
ENV RELEASE_DESC=${RELEASE_DESC}
ENV HOME_DIR=/app
# cloud adaptor
ENV DB_PATH=/app/data/cloudadaptor
ENV CHART_PATH=/app/chart
ENV CONFIG_DIR=/app/data/cloudadaptor
ENV HELM_PATH=/usr/local/bin/helm
ENV MYSQL_DB=console
VOLUME /app/data
VOLUME /app/logs
VOLUME /root/.ssh
CMD ["/usr/bin/supervisord"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。