Skip to content

Commit 9918c03

Browse files
sjarmakclaude
andcommitted
fix: add workspace chown for Daytona remote builds in 81 Dockerfiles
Daytona's remote Docker builder creates WORKDIR directories as root regardless of the current USER, unlike local Docker BuildKit which respects the USER directive. This caused all 81 SDLC baseline Dockerfiles using the clone-as-claude pattern to fail with git clone permission errors on Daytona. Fix: insert `RUN mkdir -p /workspace && chown claude:claude /workspace` before `USER claude` in all affected Dockerfiles. The 109 MCP-unique Dockerfiles already had this pattern from the clone-as-claude migration. Verified with Daytona canary: django-rate-limit-middleware-feat-001 scores 1.0 on Daytona after this fix. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d88e1e3 commit 9918c03

File tree

84 files changed

+268
-1
lines changed
  • benchmarks
    • ccb_design
    • ccb_document
    • ccb_feature
      • camel-fix-protocol-feat-001/environment
      • cilium-policy-audit-logger-feat-001/environment
      • cilium-policy-quota-feat-001/environment
      • curl-http3-priority-feat-001/environment
      • django-rate-limit-middleware-feat-001/environment
      • envoy-custom-header-filter-feat-001/environment
      • k8s-noschedule-taint-feat-001/environment
      • numpy-rolling-median-feat-001/environment
      • pandas-merge-asof-indicator-feat-001/environment
      • prometheus-silence-bulk-api-feat-001/environment
      • pytorch-gradient-noise-feat-001/environment
      • strata-cds-tranche-feat-001/environment
      • terraform-compact-diff-fmt-feat-001/environment
    • ccb_fix
      • django-modelchoice-fk-fix-001/environment
      • django-select-for-update-fix-001/environment
      • flipt-eval-latency-fix-001/environment
      • k8s-dra-scheduler-event-fix-001/environment
    • ccb_refactor
      • cilium-endpoint-manager-refac-001/environment
      • curl-multi-process-refac-001/environment
      • django-request-factory-refac-001/environment
      • envoy-listener-manager-refac-001/environment
      • etcd-raft-storage-refac-001/environment
      • flipt-dep-refactor-001/environment
      • flipt-flagexists-refactor-001/environment
      • istio-discovery-server-refac-001/environment
      • k8s-score-normalizer-refac-001/environment
      • kafka-batch-accumulator-refac-001/environment
      • kubernetes-scheduler-profile-refac-001/environment
      • numpy-array-dispatch-refac-001/environment
      • pandas-index-engine-refac-001/environment
      • prometheus-query-engine-refac-001/environment
      • pytorch-optimizer-foreach-refac-001/environment
      • rust-subtype-relation-refac-001/environment
      • scikit-learn-estimator-tags-refac-001/environment
      • strata-fx-european-refac-001/environment
      • terraform-eval-context-refac-001/environment
    • ccb_secure
      • django-audit-trail-implement-001/environment
      • django-cross-team-boundary-001/environment
      • django-csrf-session-audit-001/environment
      • django-legacy-dep-vuln-001/environment
      • django-policy-enforcement-001/environment
      • django-repo-scoped-access-001/environment
      • django-role-based-access-001/environment
      • django-sensitive-file-exclusion-001/environment
      • flipt-repo-scoped-access-001/environment
      • kafka-sasl-auth-audit-001/environment
      • postgres-client-auth-audit-001/environment
    • ccb_test
    • ccb_understand
      • django-composite-field-recover-001/environment
      • django-template-inherit-recall-001/environment
      • envoy-filter-chain-qa-001/environment
      • envoy-pool-ready-search-001/environment
      • envoy-request-routing-qa-001/environment
      • envoy-retry-eval-search-001/environment
      • k8s-eviction-sync-search-001/environment
      • k8s-scheduler-filter-search-001/environment
      • kafka-assign-handler-search-001/environment
      • kafka-batch-drain-search-001/environment
      • pandas-pivot-internal-search-001/environment
      • rust-liveness-gen-search-001/environment
      • rust-type-tests-search-001/environment
      • sklearn-fastica-fit-search-001/environment
  • docs/ops
  • scripts

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+268
-1
lines changed

benchmarks/ccb_design/camel-routing-arch-001/environment/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1212

1313
RUN (adduser --disabled-password --gecos '' claude 2>/dev/null || true)
1414

15+
RUN mkdir -p /workspace && chown claude:claude /workspace
16+
1517
USER claude
1618
WORKDIR /workspace
1719
RUN git clone --depth 1 https://github.com/sg-evals/camel--1006f047.git . && \

benchmarks/ccb_design/django-modeladmin-impact-001/environment/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1010

1111
RUN (adduser --disabled-password --gecos '' claude 2>/dev/null || true)
1212

13+
RUN mkdir -p /workspace && chown claude:claude /workspace
14+
1315
USER claude
1416
WORKDIR /workspace
1517
RUN git clone --depth 1 https://github.com/sg-evals/django--674eda1c.git . && \

benchmarks/ccb_design/django-pre-validate-signal-design-001/environment/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1010

1111
RUN (adduser --disabled-password --gecos '' claude 2>/dev/null || true)
1212

13+
RUN mkdir -p /workspace && chown claude:claude /workspace
14+
1315
USER claude
1416
WORKDIR /workspace
1517
RUN git clone --depth 1 https://github.com/sg-evals/django--674eda1c.git . && \

benchmarks/ccb_design/django-rate-limit-design-001/environment/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1010

1111
RUN (adduser --disabled-password --gecos '' claude 2>/dev/null || true)
1212

13+
RUN mkdir -p /workspace && chown claude:claude /workspace
14+
1315
USER claude
1416
WORKDIR /workspace
1517
RUN git clone --depth 1 https://github.com/sg-evals/django--674eda1c.git . && \

benchmarks/ccb_design/flink-checkpoint-arch-001/environment/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1212

1313
RUN (adduser --disabled-password --gecos '' claude 2>/dev/null || true)
1414

15+
RUN mkdir -p /workspace && chown claude:claude /workspace
16+
1517
USER claude
1618
WORKDIR /workspace
1719
RUN git clone --depth 1 https://github.com/sg-evals/flink--0cc95fcc.git . && \

benchmarks/ccb_design/flipt-protobuf-metadata-design-001/environment/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1010

1111
RUN (adduser --disabled-password --gecos '' claude 2>/dev/null || true)
1212

13+
RUN mkdir -p /workspace && chown claude:claude /workspace
14+
1315
USER claude
1416
WORKDIR /workspace
1517
RUN git clone --depth 1 https://github.com/sg-evals/flipt--3d5a345f.git . && \

benchmarks/ccb_design/flipt-transitive-deps-001/environment/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1010

1111
RUN (adduser --disabled-password --gecos '' claude 2>/dev/null || true)
1212

13+
RUN mkdir -p /workspace && chown claude:claude /workspace
14+
1315
USER claude
1416
WORKDIR /workspace
1517
RUN git clone --depth 1 https://github.com/sg-evals/flipt--3d5a345f.git . && \

benchmarks/ccb_design/k8s-crd-lifecycle-arch-001/environment/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1212

1313
RUN (adduser --disabled-password --gecos '' claude 2>/dev/null || true)
1414

15+
RUN mkdir -p /workspace && chown claude:claude /workspace
16+
1517
USER claude
1618
WORKDIR /workspace
1719
RUN git clone --depth 1 https://github.com/sg-evals/kubernetes--11602f08.git . && \

benchmarks/ccb_design/k8s-scheduler-arch-001/environment/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1212

1313
RUN (adduser --disabled-password --gecos '' claude 2>/dev/null || true)
1414

15+
RUN mkdir -p /workspace && chown claude:claude /workspace
16+
1517
USER claude
1618
WORKDIR /workspace
1719
RUN git clone --depth 1 https://github.com/sg-evals/kubernetes--11602f08.git . && \

benchmarks/ccb_design/kafka-flink-streaming-arch-001/environment/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ RUN (adduser --disabled-password --gecos '' claude 2>/dev/null || true)
1414

1515
WORKDIR /workspace
1616

17+
RUN mkdir -p /workspace && chown claude:claude /workspace
18+
1719
USER claude
1820
RUN git clone --depth 1 https://github.com/sg-evals/kafka--0753c489.git kafka && \
1921
git clone --depth 1 https://github.com/sg-evals/flink--0cc95fcc.git flink && \

0 commit comments

Comments
 (0)