一、下载self-hosted-23.7.2.tar.gz
二、解压
三、cd self-hosted-23.7.2然后执行./install.sh
四、查找python
whereis python
修改yum配置文件:vim /usr/bin/yum
五、修改RUN apt-get update && apt-get install -y --no-install-recommends cron &&
rm -r /var/lib/apt/lists/*报错
添加"Run sed -i ‘s#http://deb.debian.org#https://mirrors.163.com#g’ /etc/apt/sources.list"命令
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
USER 0
RUN if [ -z "${http_proxy}" ]; then echo "Acquire::http::proxy \"${http_proxy}\";" >> /etc/apt/apt.conf; fi
RUN if [ -z "${https_proxy}" ]; then echo "Acquire::https::proxy \"${https_proxy}\";" >> /etc/apt/apt.conf; fi
Run sed -i 's#http://deb.debian.org#https://mirrors.163.com#g' /etc/apt/sources.list
RUN apt-get update && apt-get install -y --no-install-recommends cron && \rm -r /var/lib/apt/lists/*
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
六、拉起sentry服务
docker-compose up -d
七、访问sentry页面
http://ip:9000