Skip to content

Commit a2d3915

Browse files
committed
fix Dockerfile build after deprecation of apt-key
1 parent cd2c647 commit a2d3915

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

edge_orchestrator/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ ARG BUILDOS
77
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ] && [ "$BUILDOS" = "linux" ]; then \
88
apt update && apt install -y --no-install-recommends gnupg; \
99
echo "deb http://archive.raspberrypi.org/debian/ bookworm main" > /etc/apt/sources.list.d/raspi.list \
10-
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 82B129927FA3303E; \
10+
&& gpg --keyserver keyserver.ubuntu.com --recv-keys 82B129927FA3303E \
11+
&& gpg --export 82B129927FA3303E | tee /etc/apt/trusted.gpg.d/raspberry.gpg > /dev/null; \
1112
fi
1213

1314
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ] && [ "$BUILDOS" = "linux" ]; then \

edge_orchestrator/tests/helpers/tf_serving_container.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import time
12
from typing import Dict
23

34
from testcontainers.core.container import DockerContainer
@@ -28,4 +29,5 @@ def _connect(self, default_starting_log: str):
2829
def start(self, starting_log: str = r"Uvicorn running on"):
2930
super().start()
3031
self._connect(starting_log)
32+
time.sleep(2) # wait for the container to be fully started
3133
return self

0 commit comments

Comments
 (0)