forked from argoproj/argo-events
-
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.
chore: Combine Dockerfiles (argoproj#801)
- Loading branch information
Showing
10 changed files
with
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#################################################################################################### | ||
# base | ||
#################################################################################################### | ||
FROM golang:alpine as base | ||
RUN apk --update add ca-certificates | ||
RUN apk --no-cache add tzdata | ||
|
||
#################################################################################################### | ||
# eventbus-controller | ||
#################################################################################################### | ||
FROM scratch as eventbus-controller | ||
COPY --from=base /usr/share/zoneinfo /usr/share/zoneinfo | ||
COPY --from=base /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
COPY dist/eventbus-controller /bin/eventbus-controller | ||
ENTRYPOINT [ "/bin/eventbus-controller" ] | ||
|
||
#################################################################################################### | ||
# eventsource-controller | ||
#################################################################################################### | ||
FROM scratch as eventsource-controller | ||
COPY --from=base /usr/share/zoneinfo /usr/share/zoneinfo | ||
COPY --from=base /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
COPY dist/eventsource-controller /bin/eventsource-controller | ||
ENTRYPOINT [ "/bin/eventsource-controller" ] | ||
|
||
#################################################################################################### | ||
# sensor-controller | ||
#################################################################################################### | ||
FROM scratch as sensor-controller | ||
COPY --from=base /usr/share/zoneinfo /usr/share/zoneinfo | ||
COPY --from=base /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
COPY dist/sensor-controller /bin/sensor-controller | ||
ENTRYPOINT [ "/bin/sensor-controller" ] | ||
|
||
#################################################################################################### | ||
# eventsource | ||
#################################################################################################### | ||
FROM scratch as eventsource | ||
COPY --from=base /usr/share/zoneinfo /usr/share/zoneinfo | ||
COPY --from=base /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
COPY dist/eventsource /bin/eventsource | ||
ENTRYPOINT [ "/bin/eventsource" ] | ||
|
||
#################################################################################################### | ||
# sensor | ||
#################################################################################################### | ||
FROM centos:8 as sensor | ||
RUN yum -y update && yum -y install ca-certificates openssh openssh-server openssh-clients openssl-libs curl git | ||
|
||
# Argo Workflow CLI | ||
COPY assets/argo-linux-amd64 /usr/local/bin/argo | ||
RUN argo version || true | ||
|
||
COPY dist/sensor /bin/sensor | ||
|
||
ENTRYPOINT [ "/bin/sensor" ] | ||
|
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
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 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.
This file was deleted.
Oops, something went wrong.