-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
761cce5
commit eb598f3
Showing
4 changed files
with
43 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# use a minimal alpine image | ||
FROM alpine:3.17 | ||
|
||
# add ca-certificates in case you need them | ||
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/* | ||
|
||
# define arguments and default values | ||
ARG TARGETOS TARGETARCH | ||
ARG USER_UID=10001 | ||
|
||
# create a non-root user for running the migrator | ||
USER ${USER_UID} | ||
|
||
# copy the binaries from the multi-stage build | ||
COPY .build/${TARGETOS}-${TARGETARCH}/signoz-collector-migrator /signoz-collector-migrator | ||
|
||
# run the binary as the entrypoint and pass the default config file as a flag | ||
ENTRYPOINT [ "/signoz-collector-migrator" ] |
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