Skip to content

Commit

Permalink
Update dockerfiles (#7229)
Browse files Browse the repository at this point in the history
### Description of the change

Upgrading the versions of the components used in our container images.
Note this is only used for development; our official chart release by
Bitnami do not get affected by this change.

### Benefits

Up to date dependencies.

### Possible drawbacks

N/A

### Applicable issues

N/A

### Additional information

N/A

---------

Signed-off-by: Antonio Gamez Diaz <[email protected]>
  • Loading branch information
antgamdia authored Jan 8, 2024
1 parent 2622c9e commit f0eb78b
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/kubeapps-general.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ env:
NODE_VERSION: "20.10.0"
OLM_VERSION: "v0.26.0"
POSTGRESQL_VERSION: "16.1.0-debian-11-r16"
RUST_VERSION: "1.74.1"
RUST_VERSION: "1.75.0"
SEMVER_VERSION: "3.4.0"
GKE_STABLE_VERSION: "1.27.9"
GKE_REGULAR_VERSION: "1.27.9"
Expand Down
10 changes: 5 additions & 5 deletions cmd/apprepository-controller/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 2018-2023 the Kubeapps contributors.
# Copyright 2018-2024 the Kubeapps contributors.
# SPDX-License-Identifier: Apache-2.0

# syntax = docker/dockerfile:1

FROM bitnami/golang:1.21.1 as builder
FROM bitnami/golang:1.21.5 as builder
WORKDIR /go/src/github.com/vmware-tanzu/kubeapps
COPY go.mod go.sum ./
COPY pkg pkg
Expand All @@ -14,9 +14,9 @@ ARG VERSION
ARG lint

# https://github.com/golangci/golangci-lint/releases
ARG GOLANGCILINT_VERSION="1.53.3"
ARG GOLANGCILINT_VERSION="1.55.2"

RUN if [ ! -z "$lint" ]; then \
RUN if [ ! -z ${lint:-} ]; then \
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v$GOLANGCILINT_VERSION && \
# Run golangci-lint to detect issues
golangci-lint run --timeout=10m ./cmd/apprepository-controller/... && \
Expand All @@ -27,7 +27,7 @@ RUN if [ ! -z "$lint" ]; then \
# https://github.com/golang/go/issues/27719#issuecomment-514747274
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
GOPROXY="https://proxy.golang.org,direct" CGO_ENABLED=0 go build -installsuffix cgo -ldflags "-X github.com/vmware-tanzu/kubeapps/cmd/apprepository-controller/cmd.version=$VERSION" ./cmd/apprepository-controller
GOPROXY="https://proxy.golang.org,direct" CGO_ENABLED=0 go build -installsuffix cgo -ldflags "-X github.com/vmware-tanzu/kubeapps/cmd/apprepository-controller/cmd.version=${VERSION:-}" ./cmd/apprepository-controller

FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
Expand Down
10 changes: 5 additions & 5 deletions cmd/asset-syncer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 2020-2023 the Kubeapps contributors.
# Copyright 2020-2024 the Kubeapps contributors.
# SPDX-License-Identifier: Apache-2.0

# syntax = docker/dockerfile:1

FROM bitnami/golang:1.21.1 as builder
FROM bitnami/golang:1.21.5 as builder
WORKDIR /go/src/github.com/vmware-tanzu/kubeapps
COPY go.mod go.sum ./
COPY pkg pkg
Expand All @@ -14,9 +14,9 @@ ARG VERSION
ARG lint

# https://github.com/golangci/golangci-lint/releases
ARG GOLANGCILINT_VERSION="1.53.3"
ARG GOLANGCILINT_VERSION="1.55.2"

RUN if [ ! -z "$lint" ]; then \
RUN if [ ! -z ${lint:-} ]; then \
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v$GOLANGCILINT_VERSION && \
# Run golangci-lint to detect issues
golangci-lint run --timeout=10m ./cmd/asset-syncer/... && \
Expand All @@ -27,7 +27,7 @@ RUN if [ ! -z "$lint" ]; then \
# https://github.com/golang/go/issues/27719#issuecomment-514747274
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
GOPROXY="https://proxy.golang.org,direct" CGO_ENABLED=0 go build -installsuffix cgo -ldflags "-X github.com/vmware-tanzu/kubeapps/cmd/asset-syncer/cmd.version=$VERSION" ./cmd/asset-syncer
GOPROXY="https://proxy.golang.org,direct" CGO_ENABLED=0 go build -installsuffix cgo -ldflags "-X github.com/vmware-tanzu/kubeapps/cmd/asset-syncer/cmd.version=${VERSION:-}" ./cmd/asset-syncer

FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
Expand Down
14 changes: 7 additions & 7 deletions cmd/kubeapps-apis/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 2021-2023 the Kubeapps contributors.
# Copyright 2021-2024 the Kubeapps contributors.
# SPDX-License-Identifier: Apache-2.0

# syntax = docker/dockerfile:1

FROM bitnami/golang:1.21.1 as builder
FROM bitnami/golang:1.21.5 as builder
WORKDIR /go/src/github.com/vmware-tanzu/kubeapps
COPY go.mod go.sum ./
ARG VERSION="devel"
Expand All @@ -13,16 +13,16 @@ ARG TARGETARCH
ARG lint

# https://github.com/bufbuild/buf/releases/
ARG BUF_VERSION="1.26.0"
ARG BUF_VERSION="1.28.1"

# https://github.com/golangci/golangci-lint/releases
ARG GOLANGCILINT_VERSION="1.53.3"
ARG GOLANGCILINT_VERSION="1.55.2"

# https://github.com/grpc-ecosystem/grpc-health-probe/releases/
ARG GRPC_HEALTH_PROBE_VERSION="0.4.19"
ARG GRPC_HEALTH_PROBE_VERSION="0.4.24"

# Install lint tools
RUN if [ ! -z "$lint" ]; then \
RUN if [ ! -z ${lint:-} ]; then \
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v$GOLANGCILINT_VERSION; \
fi

Expand All @@ -43,7 +43,7 @@ RUN --mount=type=cache,target=/go/pkg/mod \
COPY pkg pkg
COPY cmd cmd

RUN if [ ! -z "$lint" ]; then \
RUN if [ ! -z ${lint:-} ]; then \
# Run golangci-lint to detect issues
golangci-lint run --timeout=10m ./cmd/kubeapps-apis/... && \
golangci-lint run --timeout=10m ./pkg/...; \
Expand Down
6 changes: 3 additions & 3 deletions cmd/oci-catalog/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Copyright 2023 the Kubeapps contributors.
# Copyright 2023-2024 the Kubeapps contributors.
# SPDX-License-Identifier: Apache-2.0

# syntax = docker/dockerfile:1

FROM rust:1.72.0 as builder
FROM rust:1.75.0 as builder

WORKDIR /oci-catalog
ARG VERSION="devel"
ARG TARGETARCH

# https://github.com/grpc-ecosystem/grpc-health-probe/releases/
ARG GRPC_HEALTH_PROBE_VERSION="0.4.19"
ARG GRPC_HEALTH_PROBE_VERSION="0.4.24"

# Ensure protoc is available for the build.rs step.
RUN apt-get update && apt-get -y install --no-install-recommends protobuf-compiler && rm -rf /var/lib/apt/lists/*
Expand Down
4 changes: 2 additions & 2 deletions cmd/pinniped-proxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 2020-2023 the Kubeapps contributors.
# Copyright 2020-2024 the Kubeapps contributors.
# SPDX-License-Identifier: Apache-2.0

# syntax = docker/dockerfile:1

FROM rust:1.72.0 as builder
FROM rust:1.75.0 as builder

WORKDIR /pinniped-proxy
ARG VERSION
Expand Down
6 changes: 3 additions & 3 deletions dashboard/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2018-2023 the Kubeapps contributors.
# Copyright 2018-2024 the Kubeapps contributors.
# SPDX-License-Identifier: Apache-2.0

FROM bitnami/node:18.18.0 AS build
FROM bitnami/node:20.10.0 AS build
WORKDIR /app

COPY package.json yarn.lock /app/
Expand All @@ -12,5 +12,5 @@ COPY . /app
RUN yarn run prettier-check && yarn run ts-compile-check
RUN yarn run build

FROM bitnami/nginx:1.25.2
FROM bitnami/nginx:1.25.3
COPY --from=build /app/build /app
4 changes: 2 additions & 2 deletions integration/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2019-2022 the Kubeapps contributors.
# Copyright 2019-2024 the Kubeapps contributors.
# SPDX-License-Identifier: Apache-2.0

FROM mcr.microsoft.com/playwright:v1.38.0-jammy
FROM mcr.microsoft.com/playwright:v1.40.1-jammy
WORKDIR /app/

# Copy and install deps
Expand Down

0 comments on commit f0eb78b

Please sign in to comment.