Skip to content
This repository was archived by the owner on Apr 1, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ FROM image-registry.openshift-image-registry.svc:5000/openshift/golang:latest as
WORKDIR /build
ADD . /build/

RUN export GARCH="$(uname -m)" && if [[ ${GARCH} == "x86_64" ]]; then export GARCH="amd64"; fi && GOOS=linux GOARCH=${GARCH} CGO_ENABLED=0 go build -mod=vendor -o api-server .

RUN mkdir /tmp/cache
RUN CGO_ENABLED=0 GOCACHE=/tmp/cache go build -mod=vendor -v -o /tmp/api-server .

FROM scratch

WORKDIR /app
COPY --from=builder /build/api-server /app/api-server
COPY --from=builder /tmp/api-server /app/api-server

CMD [ "/app/api-server" ]
9 changes: 9 additions & 0 deletions OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# The OWNERS file is used by prow to automatically merge approved PRs.

approvers:
- chmouel
- vdemeester
- nikhil-thomas
- piyush-garg
- savitaashture
- pradeepitm12
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/sthaha/vote-api-server
module github.com/openshift/pipelines-vote-api

go 1.13
go 1.14

require github.com/gin-gonic/gin v1.4.0
1 change: 1 addition & 0 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3
github.com/gin-contrib/sse
# github.com/gin-gonic/gin v1.4.0
## explicit
github.com/gin-gonic/gin
github.com/gin-gonic/gin/binding
github.com/gin-gonic/gin/internal/json
Expand Down