forked from etcd-io/etcd
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename unused Dockerfile.openshift to Dockerfile.art and update for c…
…achito Signed-off-by: Sam Batschelet <sbatsche@redhat.com>
- Loading branch information
Showing
3 changed files
with
24 additions
and
20 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,23 @@ | ||
FROM registry.ci.openshift.org/ocp/builder:rhel-8-etcd-golang-1.16 AS builder | ||
|
||
COPY $REMOTE_SOURCES $REMOTE_SOURCES_DIR | ||
WORKDIR $REMOTE_SOURCES_DIR/cachito-gomod-with-deps/app | ||
RUN ls -lR $REMOTE_SOURCES_DIR | ||
RUN cat $REMOTE_SOURCES_DIR/cachito-gomod-with-deps/cachito.env | ||
RUN source $REMOTE_SOURCES_DIR/cachito-gomod-with-deps/cachito.env && GOFLAGS='-mod=readonly' GO_BUILD_FLAGS='-v' ./build.sh | ||
|
||
RUN mkdir -p /go/src/go.etcd.io/ | ||
RUN ln -s $REMOTE_SOURCES_DIR/cachito-gomod-with-deps/app /go/src/go.etcd.io/etcd | ||
|
||
# stage 2 (note: any changes should reflect in Dockerfile.rhel) | ||
FROM registry.ci.openshift.org/ocp/4.9:base | ||
|
||
ENTRYPOINT ["/usr/bin/etcd"] | ||
|
||
COPY --from=builder /go/src/go.etcd.io/etcd/bin/etcd /usr/bin/ | ||
COPY --from=builder /go/src/go.etcd.io/etcd/bin/etcdctl /usr/bin/ | ||
COPY --from=builder /go/src/go.etcd.io/etcd/bin/discover-etcd-initial-cluster /usr/bin/ | ||
|
||
LABEL io.k8s.display-name="etcd server" \ | ||
io.k8s.description="etcd is a distributed key-value store which stores the persistent master state for Kubernetes and OpenShift." \ | ||
maintainer="Sam Batschelet <sbatsche@redhat.com>" |
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