Aggregation Service: AWS worker build issue and workaround
Closed this issue · 1 comments
zyw229 commented
Hi Aggregation Service testers,
We have discovered an issue that broke the AWS worker build, caused by an incompatible Docker engine version upgrade. We are planning to release a new patch next week. Meanwhile, if you encounter issues building AWS worker, you can use the following workaround:
- Create a new patch at
<repo_root>/build_defs/shared_libraries/pin_pkr_docker.patch
with the following content:
diff --git a/operator/worker/aws/setup_enclave.sh b/operator/worker/aws/setup_enclave.sh
index e4bd30371..8bf2e0fb1 100644
--- a/operator/worker/aws/setup_enclave.sh
+++ b/operator/worker/aws/setup_enclave.sh
@@ -19,7 +19,7 @@ sudo yum install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/late
#
# Builds enclave image inside the /home/ec2-user directory as part of automatic
# AMI generation.
-sudo yum install docker -y
+sudo yum install docker-24.0.5-1.amzn2023.0.3 -y
sudo systemctl enable docker
sudo systemctl start docker
- Add the new patch to list of
patches
undershared_libraries
rules in theWORKSPACE
file. Theshared_libraries
rule should now become:
git_repository(
name = "shared_libraries",
patch_args = [
"-p1",
],
remote = "https://github.com/privacysandbox/coordinator-services-and-shared-libraries",
patches = [
"//build_defs/shared_libraries:coordinator.patch",
"//build_defs/shared_libraries:gcs_storage_client.patch",
"//build_defs/shared_libraries:dependency_update.patch",
"//build_defs/shared_libraries:key_cache_ttl.patch",
"//build_defs/shared_libraries:pin_pkr_docker.patch",
],
tag = COORDINATOR_VERSION,
workspace_file = "@shared_libraries_workspace//file",
)
Thank you!
zyw229 commented
New patches have been released to all active release branches. If you encounter this issue, please upgrade to the latest patch version of the corresponding release.