|
|
@@ -16,6 +16,17 @@ RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates
|
|
|
# SmartBotics APT repository (for libsmartbotic-db-client-dev)
|
|
|
ARG REPO_USER=callerai
|
|
|
ARG REPO_PASS
|
|
|
+
|
|
|
+# Pinned deliberately. Unpinned, the apt layer caches and a newer client in the
|
|
|
+# repository changes nothing at all - the image kept installing 2.11.3 for a
|
|
|
+# month after 2.12.0 was published, and nothing said so. Pinning makes the
|
|
|
+# version a declared fact, busts the layer when it is bumped, and turns a
|
|
|
+# missing version into a build failure instead of a silently old client.
|
|
|
+#
|
|
|
+# Keep this at the version the daemon runs. The client is backward compatible,
|
|
|
+# so a newer daemon with an older client works - it just cannot use anything
|
|
|
+# the newer one added.
|
|
|
+ARG DB_CLIENT_VERSION=2.12.0-1
|
|
|
COPY packaging/smartbotics-repo.gpg /usr/share/keyrings/smartbotics-repo.gpg
|
|
|
RUN echo "deb [signed-by=/usr/share/keyrings/smartbotics-repo.gpg] https://repository.smartbotics.ai trixie main" \
|
|
|
> /etc/apt/sources.list.d/smartbotics.list \
|
|
|
@@ -23,7 +34,9 @@ RUN echo "deb [signed-by=/usr/share/keyrings/smartbotics-repo.gpg] https://repos
|
|
|
"$REPO_USER" "$REPO_PASS" > /etc/apt/auth.conf.d/smartbotics.conf \
|
|
|
&& chmod 600 /etc/apt/auth.conf.d/smartbotics.conf \
|
|
|
&& apt-get update \
|
|
|
- && apt-get install -y --no-install-recommends libsmartbotic-db-client-dev \
|
|
|
+ && apt-get install -y --no-install-recommends \
|
|
|
+ libsmartbotic-db-client-dev=${DB_CLIENT_VERSION} \
|
|
|
+ libsmartbotic-db-client=${DB_CLIENT_VERSION} \
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
&& rm -f /etc/apt/auth.conf.d/smartbotics.conf \
|
|
|
&& rm -f /etc/apt/sources.list.d/smartbotics.list
|