Skip to content

Trying to build the project with different poll cycle #41

@ozgia

Description

@ozgia

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions