This is an automated email from the ASF dual-hosted git repository.
zhaoqingran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
The following commit(s) were added to refs/heads/master by this push:
new 175c289e6 modify apt sources from http to https. (#3808)
175c289e6 is described below
commit 175c289e66aa77e51840bbdc941671c3ca2c7036
Author: pentium100 <[email protected]>
AuthorDate: Sat Oct 11 14:37:06 2025 +0800
modify apt sources from http to https. (#3808)
Co-authored-by: liwei <[email protected]>
Co-authored-by: Logic <[email protected]>
---
script/docker/collector/Dockerfile | 3 ++-
script/docker/server/Dockerfile | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/script/docker/collector/Dockerfile
b/script/docker/collector/Dockerfile
index 23c575e87..a6f89d8c8 100644
--- a/script/docker/collector/Dockerfile
+++ b/script/docker/collector/Dockerfile
@@ -22,7 +22,8 @@ MAINTAINER Apache HertzBeat "[email protected]"
ARG VERSION
# Install SSH
-RUN apt-get update && apt-get install -y openssh-server
+RUN sed -i 's#http://#https://#g' /etc/apt/sources.list.d/ubuntu.sources && \
+ apt-get update && apt-get install -y openssh-server
RUN mkdir /var/run/sshd
ADD apache-hertzbeat-collector-*-bin.tar.gz /opt/
diff --git a/script/docker/server/Dockerfile b/script/docker/server/Dockerfile
index 057778d4f..773c21c0d 100644
--- a/script/docker/server/Dockerfile
+++ b/script/docker/server/Dockerfile
@@ -20,7 +20,8 @@ FROM eclipse-temurin:21-jdk
MAINTAINER Apache HertzBeat "[email protected]"
# Install SSH And Locales
-RUN apt-get update && apt-get install -y openssh-server && apt-get install -y
locales
+RUN sed -i 's#http://#https://#g' /etc/apt/sources.list.d/ubuntu.sources && \
+ apt-get update && apt-get install -y openssh-server && apt-get install -y
locales
RUN mkdir /var/run/sshd
# Build zh_CN en_US locale resource package
RUN localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]