Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to build the project with different poll cycle #41

Open
ozgia opened this issue Dec 15, 2020 · 0 comments
Open

Trying to build the project with different poll cycle #41

ozgia opened this issue Dec 15, 2020 · 0 comments

Comments

@ozgia
Copy link

ozgia commented Dec 15, 2020

Im trying to build the project with a different poll cycle and im experiencing some issues with building the dockerfile.
What i did it is:

  1. clone the repo
  2. change the relevant code (pkg/controller/awssecret/awssecret_controller.go: 138;140)
  3. changed Second to Hour
  4. modifying the dockerfile
FROM golang:1.14 as builder

ENV APP_VERSION=0.3.3

ENV GOOS=linux
ENV GOARCH=amd64

WORKDIR /go/src/github.com/mumoshu/aws-secret-operator
COPY . /go/src/github.com/mumoshu/aws-secret-operator


RUN make build -e GO111MODULE=on

FROM alpine:3.10

RUN apk add --update --no-cache ca-certificates libc6-compat

USER nobody

COPY --from=builder /go/src/github.com/mumoshu/aws-secret-operator/bin/aws-secret-operator /usr/local/bin/aws-secret-operator

Failing with

=> ERROR [builder 4/4] RUN make build -e GO111MODULE=on                                                                                                                                                                           0.3s
------                                                                                                                                                                                                                                  
 > [builder 4/4] RUN make build -e GO111MODULE=on:
#11 0.278 make: *** No rule to make target 'build'.  Stop.
------
failed to solve with frontend dockerfile.v0: failed to build LLB: executor failed running [/bin/sh -c make build -e GO111MODULE=on]: runc did not terminate sucessfully
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant