-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[enhancement] Add OCB docker image release (#671)
* create docker and update release workflows * Update builder-config.yaml * add otelcol-otlp manifest to Update Version workflow * Update .gitignore * remove update-version workflow to separate to PR#684 * add workflow for repo testing * Revert "add workflow for repo testing" This reverts commit fd61f1c. * Update builder-config.yaml to reference v0.111.0 release * add user and set permissions/workdir for ocb * update goreleaser and gh actions to remove builder-config.yaml refs * fix goreleaser docker repo ref * remove unnecessary commands from Dockerfile --------- Co-authored-by: Andrzej Stencel <andrzej.stencel@elastic.co>
- Loading branch information
1 parent
38ce901
commit 226dd5d
Showing
5 changed files
with
177 additions
and
2 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
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,14 @@ | ||
FROM golang:1.23-alpine3.20 | ||
RUN apk --update add ca-certificates | ||
|
||
ARG SERVICE_NAME=ocb | ||
|
||
RUN addgroup --gid 10001 --system ${SERVICE_NAME} && \ | ||
adduser --ingroup ${SERVICE_NAME} --shell /bin/false \ | ||
--disabled-password --uid 10001 ${SERVICE_NAME} | ||
|
||
USER ${SERVICE_NAME} | ||
WORKDIR /home/${SERVICE_NAME} | ||
|
||
COPY --chmod=755 ocb /usr/local/bin/ocb | ||
ENTRYPOINT [ "ocb" ] |