Skip to content

Commit ef3fb0d

Browse files
committed
Allow remote Docker
1 parent 27d160e commit ef3fb0d

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ jobs:
8383
- checkout
8484
- attach_workspace:
8585
at: ~/repo/
86+
- setup_remote_docker:
87+
docker_layer_caching: true
8688
- restore_cache:
8789
keys:
8890
- v3-dependencies-{{ checksum "uv.lock" }}
@@ -122,6 +124,8 @@ jobs:
122124
- checkout
123125
- attach_workspace:
124126
at: ~/repo/
127+
- setup_remote_docker:
128+
docker_layer_caching: true
125129
- restore_cache:
126130
keys:
127131
- v3-dependencies-{{ checksum "uv.lock" }}

cdk/stacks/lgsf_stack.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
from aws_cdk import aws_stepfunctions_tasks as tasks
1111
from constructs import Construct
1212

13+
from aws_cdk import BundlingOptions as CoreBundlingOptions
14+
1315
EXCLUDE_FILES = [
1416
"cdk.out",
1517
".venv",
@@ -104,6 +106,11 @@ def create_dependencies_layer(self) -> None:
104106
compatible_runtimes=[aws_lambda.Runtime.PYTHON_3_12],
105107
description="Dependencies layer for LGSF Lambda functions",
106108
removal_policy=cdk.RemovalPolicy.DESTROY,
109+
bundling=aws_lambda_python.BundlingOptions(
110+
# Fix CircleCI remote Docker permission issues
111+
# Run Docker container as root to avoid rsync permission errors
112+
bundling_file_access=cdk.BundlingFileAccess.VOLUME_COPY,
113+
),
107114
)
108115

109116
def create_sns_topic(self) -> None:

0 commit comments

Comments
 (0)