File tree Expand file tree Collapse file tree 13 files changed +27
-51
lines changed Expand file tree Collapse file tree 13 files changed +27
-51
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ kind: Config
17
17
metadata :
18
18
name : app
19
19
build :
20
- platforms : ["linux/amd64", "linux/arm64"]
21
20
artifacts :
22
21
# image tags are relative; to specify an image repo (e.g. GCR), you
23
22
# must provide a "default repo" using one of the methods described
50
49
tagPolicy :
51
50
gitCommit : {}
52
51
local :
53
- useDockerCLI : true
54
- useBuildkit : true
52
+ useBuildkit : false
55
53
manifests :
56
54
kustomize :
57
55
paths :
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- FROM --platform=$BUILDPLATFORM eclipse-temurin:21.0.5_11-jdk @sha256:a20cfa6afdbf57ff2c4de77ae2d0e3725a6349f1936b5ad7c3d1b06f6d1b840a AS builder
15
+ FROM eclipse-temurin:21@sha256:b5fc642f67dbbd1c4ce811388801cb8480aaca8aa9e56fd6dcda362cfea113f1 AS builder
16
16
17
17
WORKDIR /app
18
18
@@ -25,7 +25,7 @@ COPY . .
25
25
RUN chmod +x gradlew
26
26
RUN ./gradlew installDist
27
27
28
- FROM eclipse-temurin:21.0.5_11 -jre-alpine@sha256:4300bfe1e11f3dfc3e3512f39939f9093cf18d0e581d1ab1ccd0512f32fe33f0
28
+ FROM eclipse-temurin:21.0.4_7 -jre-alpine@sha256:8cc1202a100e72f6e91bf05ab274b373a5def789ab6d9e3e293a61236662ac27
29
29
30
30
# @TODO: https://github.com/GoogleCloudPlatform/microservices-demo/issues/2517
31
31
# Download Stackdriver Profiler Java agent
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
# https://mcr.microsoft.com/product/dotnet/sdk
16
- FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:9.0.101-noble@sha256:1f13e67d295e02abdfd187c341f887442bad611eda536766172ced401fc8b9fa AS builder
17
- ARG TARGETARCH
16
+ FROM mcr.microsoft.com/dotnet/sdk:9.0.100-noble@sha256:bd0365368f46274500ebb086f491703052b8ce23e3d52d3233a23b2020730057 AS builder
18
17
WORKDIR /app
19
18
COPY cartservice.csproj .
20
19
RUN dotnet restore cartservice.csproj \
21
- -a $TARGETARCH
20
+ -r linux-x64
22
21
COPY . .
23
22
RUN dotnet publish cartservice.csproj \
24
23
-p:PublishSingleFile=true \
25
- -a $TARGETARCH \
24
+ -r linux-x64 \
26
25
--self-contained true \
27
26
-p:PublishTrimmed=true \
28
27
-p:TrimMode=full \
29
28
-c release \
30
29
-o /cartservice
31
30
32
31
# https://mcr.microsoft.com/product/dotnet/runtime-deps
33
- FROM mcr.microsoft.com/dotnet/runtime-deps:9.0.1 -noble-chiseled@sha256:6f7466eda39e24efaf7eab2325e15d776a685d13cc93b4ea0cde9ee4f7982210
32
+ FROM mcr.microsoft.com/dotnet/runtime-deps:9.0.0 -noble-chiseled@sha256:5cc893809e2d2869e1a98c1eecc4c6ff6978d53bc3e5342014eff28a058867a4
34
33
35
34
WORKDIR /app
36
35
COPY --from=builder /cartservice .
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- FROM --platform=$BUILDPLATFORM golang:1.23.4-alpine@sha256:c23339199a08b0e12032856908589a6d41a0dab141b8b3b21f156fc571a3f1d3 AS builder
16
- ARG TARGETOS
17
- ARG TARGETARCH
15
+ FROM golang:1.23.2-alpine@sha256:9dd2625a1ff2859b8d8b01d8f7822c0f528942fe56cfe7a1e7c38d3b8d72d679 AS builder
18
16
WORKDIR /src
19
17
20
18
# restore dependencies
@@ -25,7 +23,7 @@ COPY . .
25
23
26
24
# Skaffold passes in debug-oriented compiler flags
27
25
ARG SKAFFOLD_GO_GCFLAGS
28
- RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -gcflags="${SKAFFOLD_GO_GCFLAGS}" -o /checkoutservice .
26
+ RUN CGO_ENABLED=0 GOOS=linux go build -gcflags="${SKAFFOLD_GO_GCFLAGS}" -o /checkoutservice .
29
27
30
28
FROM scratch
31
29
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- FROM --platform=$BUILDPLATFORM node:20.18.1 -alpine@sha256:24fb6aa7020d9a20b00d6da6d1714187c45ed00d1eb4adb01395843c338b9372 AS builder
15
+ FROM node:20.17.0 -alpine@sha256:2d07db07a2df6830718ae2a47db6fedce6745f5bcd174c398f2acdda90a11c03 AS builder
16
16
17
17
# Some packages (e.g. @google-cloud/profiler) require additional
18
18
# deps for post-install scripts
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- FROM --platform=$BUILDPLATFORM python:3.12.8 -alpine@sha256:54bec49592c8455de8d5983d984efff76b6417a6af9b5dcc8d0237bf6ad3bd20 AS base
15
+ FROM python:3.12.7 -alpine@sha256:b83d5ec7274bee17d2f4bd0bfbb082f156241e4513f0a37c70500e1763b1d90d AS base
16
16
17
17
FROM base AS builder
18
18
19
19
RUN apk update \
20
- && apk add --no-cache g++ linux-headers \
20
+ && apk add --no-cache wget g++ \
21
21
&& rm -rf /var/cache/apk/*
22
22
23
23
# get packages
@@ -30,10 +30,6 @@ ENV PYTHONUNBUFFERED=1
30
30
# Enable Profiler
31
31
ENV ENABLE_PROFILER=1
32
32
33
- RUN apk update \
34
- && apk add --no-cache libstdc++ \
35
- && rm -rf /var/cache/apk/*
36
-
37
33
WORKDIR /email_server
38
34
39
35
# Grab packages from builder
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- FROM --platform=$BUILDPLATFORM golang:1.23.4-alpine@sha256:c23339199a08b0e12032856908589a6d41a0dab141b8b3b21f156fc571a3f1d3 AS builder
16
- ARG TARGETOS
17
- ARG TARGETARCH
15
+ FROM golang:1.23.2-alpine@sha256:9dd2625a1ff2859b8d8b01d8f7822c0f528942fe56cfe7a1e7c38d3b8d72d679 AS builder
18
16
WORKDIR /src
19
17
20
18
# restore dependencies
@@ -24,7 +22,7 @@ COPY . .
24
22
25
23
# Skaffold passes in debug-oriented compiler flags
26
24
ARG SKAFFOLD_GO_GCFLAGS
27
- RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -gcflags="${SKAFFOLD_GO_GCFLAGS}" -o /go/bin/frontend .
25
+ RUN CGO_ENABLED=0 GOOS=linux go build -gcflags="${SKAFFOLD_GO_GCFLAGS}" -o /go/bin/frontend .
28
26
29
27
FROM scratch
30
28
WORKDIR /src
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- FROM --platform=$BUILDPLATFORM python:3.12.8-alpine @sha256:54bec49592c8455de8d5983d984efff76b6417a6af9b5dcc8d0237bf6ad3bd20 AS base
15
+ FROM python:3.12.6-slim @sha256:ad48727987b259854d52241fac3bc633574364867b8e20aec305e6e7f4028b26 AS base
16
16
17
17
FROM base AS builder
18
18
19
- RUN apk update \
20
- && apk add --no-cache wget g++ linux-headers \
21
- && rm -rf /var/cache/apk/*
22
-
23
19
COPY requirements.txt .
24
20
25
21
RUN pip install --prefix="/install" -r requirements.txt
26
22
27
23
FROM base
28
24
29
- RUN apk update \
30
- && apk add --no-cache libstdc++ \
31
- && rm -rf /var/cache/apk/*
32
-
33
25
WORKDIR /loadgen
34
26
35
27
COPY --from=builder /install /usr/local
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- FROM --platform=$BUILDPLATFORM node:20.18.1 -alpine@sha256:24fb6aa7020d9a20b00d6da6d1714187c45ed00d1eb4adb01395843c338b9372 AS builder
15
+ FROM node:20.17.0 -alpine@sha256:2d07db07a2df6830718ae2a47db6fedce6745f5bcd174c398f2acdda90a11c03 AS builder
16
16
17
17
# Some packages (e.g. @google-cloud/profiler) require additional
18
18
# deps for post-install scripts
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- FROM --platform=$BUILDPLATFORM golang:1.23.4-alpine@sha256:c23339199a08b0e12032856908589a6d41a0dab141b8b3b21f156fc571a3f1d3 AS builder
16
- ARG TARGETOS
17
- ARG TARGETARCH
15
+ FROM golang:1.23.2-alpine@sha256:9dd2625a1ff2859b8d8b01d8f7822c0f528942fe56cfe7a1e7c38d3b8d72d679 AS builder
18
16
19
17
WORKDIR /src
20
18
# restore dependencies
@@ -24,7 +22,7 @@ COPY . .
24
22
25
23
# Skaffold passes in debug-oriented compiler flags
26
24
ARG SKAFFOLD_GO_GCFLAGS
27
- RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -gcflags="${SKAFFOLD_GO_GCFLAGS}" -o /productcatalogservice .
25
+ RUN CGO_ENABLED=0 GOOS=linux go build -gcflags="${SKAFFOLD_GO_GCFLAGS}" -o /productcatalogservice .
28
26
29
27
FROM scratch
30
28
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- FROM --platform=$BUILDPLATFORM python:3.12.8-alpine@sha256:54bec49592c8455de8d5983d984efff76b6417a6af9b5dcc8d0237bf6ad3bd20 AS base
15
+ FROM python:3.12.8-alpine@sha256:f92e36f6569658ba9501e2e1e3ca780d61faea8e84edd990a0ed70d0ca8add4a AS base
16
16
17
17
FROM base AS builder
18
18
19
19
RUN apk update \
20
- && apk add --no-cache g++ linux-headers \
20
+ && apk add --no-cache \
21
+ wget \
22
+ g++ \
21
23
&& rm -rf /var/cache/apk/*
22
24
23
25
# get packages
@@ -28,10 +30,6 @@ FROM base
28
30
# Enable unbuffered logging
29
31
ENV PYTHONUNBUFFERED=1
30
32
31
- RUN apk update \
32
- && apk add --no-cache libstdc++ \
33
- && rm -rf /var/cache/apk/*
34
-
35
33
# get packages
36
34
WORKDIR /recommendationservice
37
35
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- FROM --platform=$BUILDPLATFORM golang:1.23.4-alpine@sha256:c23339199a08b0e12032856908589a6d41a0dab141b8b3b21f156fc571a3f1d3 AS builder
16
- ARG TARGETOS
17
- ARG TARGETARCH
15
+ FROM golang:1.23.2-alpine@sha256:9dd2625a1ff2859b8d8b01d8f7822c0f528942fe56cfe7a1e7c38d3b8d72d679 AS builder
18
16
WORKDIR /src
19
17
20
18
# restore dependencies
@@ -24,7 +22,7 @@ COPY . .
24
22
25
23
# Skaffold passes in debug-oriented compiler flags
26
24
ARG SKAFFOLD_GO_GCFLAGS
27
- RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -gcflags="${SKAFFOLD_GO_GCFLAGS}" -o /go/bin/shippingservice .
25
+ RUN CGO_ENABLED=0 GOOS=linux go build -gcflags="${SKAFFOLD_GO_GCFLAGS}" -o /go/bin/shippingservice .
28
26
29
27
FROM scratch
30
28
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- FROM --platform=$BUILDPLATFORM python:3.12.8 -slim@sha256:123be5684f39d8476e64f47a5fddf38f5e9d839baff5c023c815ae5bdfae0df7 AS base
15
+ FROM python:3.12.6 -slim@sha256:ad48727987b259854d52241fac3bc633574364867b8e20aec305e6e7f4028b26 AS base
16
16
17
17
FROM base AS builder
18
18
19
19
RUN apt-get -qq update \
20
- && apt-get install -y --no-install-recommends g++ \
20
+ && apt-get install -y --no-install-recommends \
21
+ wget g++ \
21
22
&& rm -rf /var/lib/apt/lists/*
22
23
23
24
# get packages
You can’t perform that action at this time.
0 commit comments