self-hosted icon indicating copy to clipboard operation
self-hosted copied to clipboard

./install.sh

Open liansky opened this issue 3 years ago • 4 comments

          > “[https://deb.debian.org”](https://deb.debian.org%E2%80%9D) access is too slow for me,my dockerfile like this : ARG BASE_IMAGE FROM ${BASE_IMAGE} USER 0 RUN sed -i "s@http://deb.debian.org@http://mirrors.aliyun.com@g" /etc/apt/sources.list && apt-get clean && apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/* 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 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"]

and my “/etc/apt/sources.list” like this deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse

deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib deb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contrib deb https://mirrors.aliyun.com/debian-security/ bullseye-security main deb-src https://mirrors.aliyun.com/debian-security/ bullseye-security main deb https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib deb-src https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib deb https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib deb-src https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib

and run sudo apt-get update,but its still bad😭😭😭

昨天成功了 使用阿里镜像 建议下载发布版本替换这个。不要直接clone仓库 - 然后install.sh 一次成功

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 echo "\
	deb http://mirrors.aliyun.com/debian/ bullseye main non-free contrib \
	deb-src http://mirrors.aliyun.com/debian/ bullseye main non-free contrib \
	deb http://mirrors.aliyun.com/debian-security/ bullseye-security main \
	deb-src http://mirrors.aliyun.com/debian-security/ bullseye-security main \
	deb http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib \
	deb-src http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib \
	deb http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib \
	deb-src http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib \
" > /etc/apt/sources.list
RUN apt-get clean

RUN ln -s /lib/x86_64-linux-gnu/libpcre.so.3.13.3  /lib/libpcre.so.1
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"]

Originally posted by @MR-ZiWeiter in https://github.com/getsentry/self-hosted/issues/2399#issuecomment-1718517050

liansky avatar Oct 12 '23 13:10 liansky

I can't really understand your post. Could you translate the portion in a foreign language, and fill our the default form for filing bugs (Docker version, Sentry version, and other fields)?

azaslavsky avatar Oct 13 '23 19:10 azaslavsky

I think he would like to customize the repository's url, change from default to fastest mirror based on his location.

thuvh avatar Oct 17 '23 03:10 thuvh

If that's the case, I think we should default to using deb.debian.org and if you'd like to use mirrors, you should be able to set that up yourself. @liansky are you able to get this working on a mirror?

hubertdeng123 avatar Oct 18 '23 21:10 hubertdeng123

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

getsantry[bot] avatar Nov 09 '23 08:11 getsantry[bot]