Skip to content
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
28 changes: 23 additions & 5 deletions skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ build:
context: src/currencyservice
- image: cartservice
context: src/cartservice/src
docker:
dockerfile: Dockerfile
- image: frontend
context: src/frontend
- image: adservice
Expand Down Expand Up @@ -81,9 +79,20 @@ profiles:
activation:
- command: debug
patches:
- op: replace
path: /build/artifacts/7/docker/dockerfile
value: Dockerfile.debug
- op: add
path: /build/artifacts/0/docker
value:
buildArgs:
SKAFFOLD_PY_DEBUG: "true"
- op: add
path: /build/artifacts/2/docker
value:
buildArgs:
SKAFFOLD_PY_DEBUG: "true"
- op: add
path: /build/artifacts/8/docker
value:
dockerfile: Dockerfile.debug
# The "network-policies" profile is not used by default.
# You can use it in isolation or in combination with other profiles:
# skaffold run -p network-policies, debug
Expand Down Expand Up @@ -120,3 +129,12 @@ profiles:
diskSizeGb: 300
machineType: N1_HIGHCPU_32
timeout: 4000s
- name: debug
activation:
- command: debug
patches:
- op: add
path: /build/artifacts/0/docker
value:
buildArgs:
SKAFFOLD_PY_DEBUG: "true"
4 changes: 2 additions & 2 deletions src/cartservice/src/Dockerfile.debug
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM mcr.microsoft.com/dotnet/sdk:10.0@sha256:d599d654aa6fd7baabe54b4272dc475768307ef4d8a07d6e9f9b50b7b1758059 AS build
FROM mcr.microsoft.com/dotnet/sdk:9.0@sha256:7d24e90a392e88eb56093e4eb325ff883ad609382a55d42f17fd557b997022ca AS build
WORKDIR /app
COPY . .
RUN dotnet restore cartservice.csproj
Expand All @@ -22,7 +22,7 @@ FROM build AS publish
RUN dotnet publish cartservice.csproj -c Debug -o /out

# Building final image used in running container
FROM mcr.microsoft.com/dotnet/aspnet:10.0@sha256:5b558c0d5f65031e34528f0c68c954f03f4db77ee18504cad183d239328f55ca AS final
FROM mcr.microsoft.com/dotnet/aspnet:9.0@sha256:372b16214ae67e3626a5b1513ade4a530eae10c172d56ce696163b046565fa46 AS final
# Installing procps on the container to enable debugging of .NET Core
RUN apt-get update \
&& apt-get install -y unzip procps wget
Expand Down
5 changes: 5 additions & 0 deletions src/emailservice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ RUN apk update \
COPY requirements.txt .
RUN pip install -r requirements.txt

ARG SKAFFOLD_PY_DEBUG=false
RUN if [ "$SKAFFOLD_PY_DEBUG" = "true" ]; then \
pip install debugpy; \
fi

FROM base
# Enable unbuffered logging
ENV PYTHONUNBUFFERED=1
Expand Down
5 changes: 5 additions & 0 deletions src/loadgenerator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ COPY requirements.txt .

RUN pip install --prefix="/install" -r requirements.txt

ARG SKAFFOLD_PY_DEBUG=false
RUN if [ "$SKAFFOLD_PY_DEBUG" = "true" ]; then \
pip install --prefix="/install" debugpy; \
fi

FROM base

RUN apk update \
Expand Down
5 changes: 5 additions & 0 deletions src/recommendationservice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ RUN apk update \
COPY requirements.txt .
RUN pip install -r requirements.txt

ARG SKAFFOLD_PY_DEBUG=false
RUN if [ "$SKAFFOLD_PY_DEBUG" = "true" ]; then \
pip install debugpy; \
fi

FROM base
# Enable unbuffered logging
ENV PYTHONUNBUFFERED=1
Expand Down