forked from apache/hertzbeat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bugfix] fix github action build docker image error (apache#2525)
Signed-off-by: tomsun28 <[email protected]>
- Loading branch information
Showing
7 changed files
with
62 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,19 +17,17 @@ | |
|
||
FROM openjdk:17-slim-buster | ||
|
||
ARG VERSION | ||
|
||
MAINTAINER Apache HertzBeat "[email protected]" | ||
|
||
# Install SSH | ||
RUN apt-get update && apt-get install -y openssh-server | ||
RUN mkdir /var/run/sshd | ||
|
||
ADD apache-hertzbeat-collector-${VERSION}-incubating-bin.tar.gz /opt/ | ||
ADD apache-hertzbeat-collector-*-incubating-bin.tar.gz /opt/ | ||
|
||
ENV TZ=Asia/Shanghai | ||
ENV LANG=en_US.UTF-8 | ||
|
||
WORKDIR /opt/apache-hertzbeat-collector-${VERSION}-incubating-bin/ | ||
WORKDIR /opt/apache-hertzbeat-collector-*-incubating-bin/ | ||
|
||
ENTRYPOINT ["./bin/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,9 +17,6 @@ | |
|
||
FROM openjdk:17-slim-buster | ||
|
||
# add args version | ||
ARG VERSION | ||
|
||
MAINTAINER Apache HertzBeat "[email protected]" | ||
|
||
# Install SSH And Locales | ||
|
@@ -29,12 +26,12 @@ RUN mkdir /var/run/sshd | |
RUN localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8 | ||
RUN localedef -c -f UTF-8 -i en_US en_US.UTF-8 | ||
|
||
ADD apache-hertzbeat-${VERSION}-incubating-bin.tar.gz /opt/ | ||
|
||
ENV TZ=Asia/Shanghai | ||
ENV LANG=en_US.UTF-8 | ||
|
||
RUN mv /opt/apache-hertzbeat-${VERSION}-incubating-bin /opt/hertzbeat | ||
ADD apache-hertzbeat-1.*-incubating-bin.tar.gz /opt/ | ||
|
||
RUN mv /opt/apache-hertzbeat-*-incubating-bin /opt/hertzbeat | ||
|
||
EXPOSE 1157 1158 22 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters