-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #495 from village-way/main
add make node-agent target and improve the cmd return formate
- Loading branch information
Showing
26 changed files
with
60 additions
and
596 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM ubuntu:latest as release-env | ||
|
||
ARG BINARY | ||
|
||
WORKDIR /app | ||
# copy install file to container | ||
# build context is _output/xx/xx | ||
COPY agent/* . | ||
|
||
# install rsync | ||
RUN apt-get update && apt-get install -y rsync pwgen openssl && \ | ||
openssl req -x509 -sha256 -new -nodes -days 3650 -newkey rsa:2048 -keyout key.pem -out cert.pem -subj "/C=CN/O=Kosmos/OU=Kosmos/CN=kosmos.io" | ||
|
||
COPY ${BINARY} /app | ||
|
||
# install command | ||
CMD ["bash", "/app/install.sh", "/app"] |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM ubuntu:latest as release-env | ||
|
||
ARG BINARY | ||
ARG TARGETPLATFORM | ||
|
||
WORKDIR /app | ||
# copy install file to container | ||
COPY ${TARGETPLATFORM}/agent/* . | ||
|
||
# install rsync | ||
RUN apt-get update && apt-get install -y rsync pwgen openssl && \ | ||
openssl req -x509 -sha256 -new -nodes -days 3650 -newkey rsa:2048 -keyout key.pem -out cert.pem -subj "/C=CN/O=Kosmos/OU=Kosmos/CN=kosmos.io" | ||
|
||
COPY ${TARGETPLATFORM}/${BINARY} /app | ||
|
||
# install command | ||
CMD ["bash", "/app/install.sh", "/app"] |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.