Skip to content

Dockerfile #1

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
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
9 changes: 6 additions & 3 deletions vertical-pod-autoscaler/pkg/admission-controller/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang AS builder
COPY . /go/src/vertical-pod-autoscaler
WORKDIR /go/src/vertical-pod-autoscaler/pkg/admission-controller
RUN make

FROM gcr.io/distroless/static:latest
MAINTAINER Tomasz Kulczynski "[email protected]"
ARG ARCH
copy admission-controller-$ARCH /admission-controller
COPY --from=builder /go/src/vertical-pod-autoscaler/pkg/admission-controller/admission-controller /admission-controller

ENTRYPOINT ["/admission-controller"]
CMD ["--v=4", "--stderrthreshold=info"]
10 changes: 6 additions & 4 deletions vertical-pod-autoscaler/pkg/recommender/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM gcr.io/distroless/static:latest
MAINTAINER Krzysztof Grygiel "[email protected]"
FROM golang AS builder
COPY . /go/src/vertical-pod-autoscaler
WORKDIR /go/src/vertical-pod-autoscaler/pkg/recommender
RUN make

ARG ARCH
COPY recommender-$ARCH /recommender
FROM gcr.io/distroless/static:latest
COPY --from=builder /go/src/vertical-pod-autoscaler/pkg/recommender/recommender /recommender

ENTRYPOINT ["/recommender"]
CMD ["--v=4", "--stderrthreshold=info", "--prometheus-address=http://prometheus.monitoring.svc"]
8 changes: 5 additions & 3 deletions vertical-pod-autoscaler/pkg/updater/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang AS builder
COPY . /go/src/vertical-pod-autoscaler
WORKDIR /go/src/vertical-pod-autoscaler/pkg/updater
RUN make

FROM gcr.io/distroless/static:latest
MAINTAINER Marcin Wielgus "[email protected]"

ARG ARCH
COPY updater-$ARCH /updater
COPY --from=builder /go/src/vertical-pod-autoscaler/pkg/updater/updater /updater

ENTRYPOINT ["/updater"]
CMD ["--v=4", "--stderrthreshold=info"]