Skip to content

Commit

Permalink
Upgrade from Buster to Bullseye Docker images (#607)
Browse files Browse the repository at this point in the history
* Upgrade from Buster to Bullseye Docker images

Signed-off-by: jbpaux <[email protected]>

* Update USE_OPENCV_BASE_VERSION

Signed-off-by: jbpaux <[email protected]>

* Update patch version

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Signed-off-by: jbpaux <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
jbpaux and github-actions[bot] authored Jun 28, 2023
1 parent 3c8c62f commit 08c9ac7
Show file tree
Hide file tree
Showing 34 changed files with 69 additions and 69 deletions.
28 changes: 14 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion agent/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "agent"
version = "0.10.14"
version = "0.10.15"
authors = ["Kate Goldenring <[email protected]>", "<[email protected]>"]
edition = "2018"
rust-version = "1.68.1"
Expand Down
2 changes: 1 addition & 1 deletion build/akri-containers.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
USE_OPENCV_BASE_VERSION = 0.0.9
USE_OPENCV_BASE_VERSION = 0.0.11

# Akri container defines
include build/akri-rust-containers.mk
Expand Down
6 changes: 3 additions & 3 deletions build/akri-dotnet-containers.mk
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ define add_opcua_target

$(1)-build-amd64:
ifeq (1, ${BUILD_AMD64})
docker build $(CACHE_OPTION) -f $(DOCKERFILE_DIR)/Dockerfile.$(2) . -t $(PREFIX)/$(2):$(LABEL_PREFIX)-$(AMD64_SUFFIX) --build-arg OUTPUT_PLATFORM_TAG=3.1-buster-slim --build-arg DOTNET_PUBLISH_RUNTIME=linux-x64
docker build $(CACHE_OPTION) -f $(DOCKERFILE_DIR)/Dockerfile.$(2) . -t $(PREFIX)/$(2):$(LABEL_PREFIX)-$(AMD64_SUFFIX) --build-arg OUTPUT_PLATFORM_TAG=3.1-bullseye-slim --build-arg DOTNET_PUBLISH_RUNTIME=linux-x64
endif
$(1)-build-arm32:
ifeq (1, ${BUILD_ARM32})
docker build $(CACHE_OPTION) -f $(DOCKERFILE_DIR)/Dockerfile.$(2) . -t $(PREFIX)/$(2):$(LABEL_PREFIX)-$(ARM32V7_SUFFIX) --build-arg OUTPUT_PLATFORM_TAG=3.1-buster-slim-$(ARM32V7_SUFFIX) --build-arg DOTNET_PUBLISH_RUNTIME=linux-arm
docker build $(CACHE_OPTION) -f $(DOCKERFILE_DIR)/Dockerfile.$(2) . -t $(PREFIX)/$(2):$(LABEL_PREFIX)-$(ARM32V7_SUFFIX) --build-arg OUTPUT_PLATFORM_TAG=3.1-bullseye-slim-$(ARM32V7_SUFFIX) --build-arg DOTNET_PUBLISH_RUNTIME=linux-arm
endif
$(1)-build-arm64:
ifeq (1, ${BUILD_ARM64})
docker build $(CACHE_OPTION) -f $(DOCKERFILE_DIR)/Dockerfile.$(2) . -t $(PREFIX)/$(2):$(LABEL_PREFIX)-$(ARM64V8_SUFFIX) --build-arg OUTPUT_PLATFORM_TAG=3.1-buster-slim-$(ARM64V8_SUFFIX) --build-arg DOTNET_PUBLISH_RUNTIME=linux-arm64
docker build $(CACHE_OPTION) -f $(DOCKERFILE_DIR)/Dockerfile.$(2) . -t $(PREFIX)/$(2):$(LABEL_PREFIX)-$(ARM64V8_SUFFIX) --build-arg OUTPUT_PLATFORM_TAG=3.1-bullseye-slim-$(ARM64V8_SUFFIX) --build-arg DOTNET_PUBLISH_RUNTIME=linux-arm64
endif

$(1)-docker-per-arch-amd64:
Expand Down
4 changes: 2 additions & 2 deletions build/containers/Dockerfile.agent
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
ARG PLATFORM=amd64
ARG CROSS_BUILD_TARGET=x86_64-unknown-linux-gnu
FROM ${PLATFORM}/debian:buster-slim
FROM ${PLATFORM}/debian:bullseye-slim
ARG CROSS_BUILD_TARGET
ARG PLATFORM
ARG BUILD_TYPE=release
RUN echo "Creating container based on ${PLATFORM}/debian:buster-slim"
RUN echo "Creating container based on ${PLATFORM}/debian:bullseye-slim"
RUN echo "Using Rust binaries from ${CROSS_BUILD_TARGET}/${BUILD_TYPE}"

# Link the container to the Akri repository
Expand Down
4 changes: 2 additions & 2 deletions build/containers/Dockerfile.agent-full
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
ARG PLATFORM=amd64
ARG CROSS_BUILD_TARGET=x86_64-unknown-linux-gnu
FROM ${PLATFORM}/debian:buster-slim
FROM ${PLATFORM}/debian:bullseye-slim
ARG PLATFORM
ARG CROSS_BUILD_TARGET
ARG BUILD_TYPE=release
RUN echo "Creating container based on ${PLATFORM}/debian:buster-slim"
RUN echo "Creating container based on ${PLATFORM}/debian:bullseye-slim"
RUN echo "Using Rust binaries from ${CROSS_BUILD_TARGET}/${BUILD_TYPE}"

# Link the container to the Akri repository
Expand Down
4 changes: 2 additions & 2 deletions build/containers/Dockerfile.anomaly-detection-app
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
ARG PLATFORM=amd64
FROM ${PLATFORM}/debian:buster-slim
FROM ${PLATFORM}/debian:bullseye-slim

# Avoid tzdata prompt
ARG DEBIAN_FRONTEND=noninteractive

RUN echo "Creating container based on ${PLATFORM}/debian:buster-slim" && \
RUN echo "Creating container based on ${PLATFORM}/debian:bullseye-slim" && \
apt-get update && \
apt-get install -y protobuf-compiler libprotoc-dev python3-pip \
python3-grpcio python3-sklearn && \
Expand Down
4 changes: 2 additions & 2 deletions build/containers/Dockerfile.controller
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ARG PLATFORM=amd64
ARG CROSS_BUILD_TARGET=x86_64-unknown-linux-gnu
FROM ${PLATFORM}/debian:buster-slim
FROM ${PLATFORM}/debian:bullseye-slim
ARG CROSS_BUILD_TARGET
ARG BUILD_TYPE=release
RUN echo "Creating container based on ${PLATFORM}/debian:buster-slim"
RUN echo "Creating container based on ${PLATFORM}/debian:bullseye-slim"
RUN echo "Using Rust binaries from ${CROSS_BUILD_TARGET}/${BUILD_TYPE}"

# Link the container to the Akri repository
Expand Down
4 changes: 2 additions & 2 deletions build/containers/Dockerfile.debug-echo-discovery
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ARG PLATFORM=amd64
ARG CROSS_BUILD_TARGET=x86_64-unknown-linux-gnu
FROM ${PLATFORM}/debian:buster-slim
FROM ${PLATFORM}/debian:bullseye-slim
ARG CROSS_BUILD_TARGET
ARG BUILD_TYPE=release
RUN echo "Creating container based on ${PLATFORM}/debian:buster-slim"
RUN echo "Creating container based on ${PLATFORM}/debian:bullseye-slim"
RUN echo "Using Rust binaries from ${CROSS_BUILD_TARGET}/${BUILD_TYPE}"

# Link the container to the Akri repository
Expand Down
4 changes: 2 additions & 2 deletions build/containers/Dockerfile.onvif-discovery
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ARG PLATFORM=amd64
ARG CROSS_BUILD_TARGET=x86_64-unknown-linux-gnu
FROM ${PLATFORM}/debian:buster-slim
FROM ${PLATFORM}/debian:bullseye-slim
ARG CROSS_BUILD_TARGET
ARG BUILD_TYPE=release
RUN echo "Creating container based on ${PLATFORM}/debian:buster-slim"
RUN echo "Creating container based on ${PLATFORM}/debian:bullseye-slim"
RUN echo "Using Rust binaries from ${CROSS_BUILD_TARGET}/${BUILD_TYPE}"

# Link the container to the Akri repository
Expand Down
8 changes: 4 additions & 4 deletions build/containers/Dockerfile.onvif-video-broker
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
ARG BUILD_PLATFORM_TAG=3.1-buster
ARG OUTPUT_PLATFORM_TAG=3.1-buster-slim
ARG BUILD_PLATFORM_TAG=3.1-bullseye
ARG OUTPUT_PLATFORM_TAG=3.1-bullseye-slim
ARG DOTNET_PUBLISH_RUNTIME=linux-x64

FROM mcr.microsoft.com/dotnet/core/sdk:${BUILD_PLATFORM_TAG} AS build
FROM mcr.microsoft.com/dotnet/sdk:${BUILD_PLATFORM_TAG} AS build
ARG BUILD_PLATFORM_TAG
RUN echo "Build base image: mcr.microsoft.com/dotnet/core/sdk:${BUILD_PLATFORM_TAG}"
RUN echo "Build base image: mcr.microsoft.com/dotnet/sdk:${BUILD_PLATFORM_TAG}"

WORKDIR /src
COPY ["samples/brokers/onvif-video-broker/onvif-video-broker.csproj", "."]
Expand Down
4 changes: 2 additions & 2 deletions build/containers/Dockerfile.opcua-discovery
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ARG PLATFORM=amd64
ARG CROSS_BUILD_TARGET=x86_64-unknown-linux-gnu
FROM ${PLATFORM}/debian:buster-slim
FROM ${PLATFORM}/debian:bullseye-slim
ARG CROSS_BUILD_TARGET
ARG BUILD_TYPE=release
RUN echo "Creating container based on ${PLATFORM}/debian:buster-slim"
RUN echo "Creating container based on ${PLATFORM}/debian:bullseye-slim"
RUN echo "Using Rust binaries from ${CROSS_BUILD_TARGET}/${BUILD_TYPE}"

# Link the container to the Akri repository
Expand Down
12 changes: 6 additions & 6 deletions build/containers/Dockerfile.opcua-monitoring-broker
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
ARG BUILD_PLATFORM_TAG=3.1-buster
ARG OUTPUT_PLATFORM_TAG=3.1-buster-slim
ARG BUILD_PLATFORM_TAG=3.1-bullseye
ARG OUTPUT_PLATFORM_TAG=3.1-bullseye-slim
ARG DOTNET_PUBLISH_RUNTIME=linux-x64

FROM mcr.microsoft.com/dotnet/core/sdk:${BUILD_PLATFORM_TAG} AS build
FROM mcr.microsoft.com/dotnet/sdk:${BUILD_PLATFORM_TAG} AS build
ARG BUILD_PLATFORM_TAG
RUN echo "Build base image: mcr.microsoft.com/dotnet/core/sdk:${BUILD_PLATFORM_TAG}"
RUN echo "Build base image: mcr.microsoft.com/dotnet/sdk:${BUILD_PLATFORM_TAG}"

WORKDIR /src
COPY ["samples/brokers/opcua-monitoring-broker/opcua-monitoring-broker.csproj", "."]
Expand All @@ -15,9 +15,9 @@ ARG DOTNET_PUBLISH_RUNTIME
RUN echo "Publishing to: ${DOTNET_PUBLISH_RUNTIME}"
RUN dotnet publish -r ${DOTNET_PUBLISH_RUNTIME} "opcua-monitoring-broker.csproj" -c Release -o /app/publish

FROM mcr.microsoft.com/dotnet/core/aspnet:${OUTPUT_PLATFORM_TAG} AS final
FROM mcr.microsoft.com/dotnet/aspnet:${OUTPUT_PLATFORM_TAG} AS final
ARG OUTPUT_PLATFORM_TAG
RUN echo "Output base image: mcr.microsoft.com/dotnet/core/aspnet:${OUTPUT_PLATFORM_TAG}"
RUN echo "Output base image: mcr.microsoft.com/dotnet/aspnet:${OUTPUT_PLATFORM_TAG}"

WORKDIR /app
COPY --from=build /app/publish .
Expand Down
4 changes: 2 additions & 2 deletions build/containers/Dockerfile.udev-discovery
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ARG PLATFORM=amd64
ARG CROSS_BUILD_TARGET=x86_64-unknown-linux-gnu
FROM ${PLATFORM}/debian:buster-slim
FROM ${PLATFORM}/debian:bullseye-slim
ARG CROSS_BUILD_TARGET
ARG BUILD_TYPE=release
RUN echo "Creating container based on ${PLATFORM}/debian:buster-slim"
RUN echo "Creating container based on ${PLATFORM}/debian:bullseye-slim"
RUN echo "Using Rust binaries from ${CROSS_BUILD_TARGET}/${BUILD_TYPE}"

# Link the container to the Akri repository
Expand Down
4 changes: 2 additions & 2 deletions build/containers/Dockerfile.udev-video-broker
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ARG PLATFORM=amd64
ARG CROSS_BUILD_TARGET=x86_64-unknown-linux-gnu
FROM ${PLATFORM}/debian:buster-slim
FROM ${PLATFORM}/debian:bullseye-slim
ARG CROSS_BUILD_TARGET
RUN echo "Creating container based on ${PLATFORM}/debian:buster-slim"
RUN echo "Creating container based on ${PLATFORM}/debian:bullseye-slim"
RUN echo "Using Rust binaries from ${CROSS_BUILD_TARGET}"

# Link the container to the Akri repository
Expand Down
4 changes: 2 additions & 2 deletions build/containers/Dockerfile.video-streaming-app
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
ARG PLATFORM=amd64
FROM ${PLATFORM}/debian:buster-slim
FROM ${PLATFORM}/debian:bullseye-slim

# Avoid tzdata prompt
ARG DEBIAN_FRONTEND=noninteractive

RUN echo "Creating container based on ${PLATFORM}/debian:buster-slim" && \
RUN echo "Creating container based on ${PLATFORM}/debian:bullseye-slim" && \
apt-get update && \
apt-get install -y protobuf-compiler libprotoc-dev python3-pip python3-grpcio python3-kubernetes && \
apt-get clean && \
Expand Down
4 changes: 2 additions & 2 deletions build/containers/Dockerfile.webhook-configuration
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
ARG PLATFORM=amd64
ARG CROSS_BUILD_TARGET=x86_64-unknown-linux-gnu

FROM ${PLATFORM}/debian:buster-slim
FROM ${PLATFORM}/debian:bullseye-slim

ARG CROSS_BUILD_TARGET
ARG BUILD_TYPE=release
RUN echo "Creating container based on ${PLATFORM}/debian:buster-slim"
RUN echo "Creating container based on ${PLATFORM}/debian:bullseye-slim"
RUN echo "Using Rust binaries from ${CROSS_BUILD_TARGET}/${BUILD_TYPE}"

# Link the container to the Akri repository
Expand Down
2 changes: 1 addition & 1 deletion controller/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "controller"
version = "0.10.14"
version = "0.10.15"
authors = ["<[email protected]>", "<[email protected]>"]
edition = "2018"
rust-version = "1.68.1"
Expand Down
4 changes: 2 additions & 2 deletions deployment/helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.10.14
version: 0.10.15

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 0.10.14
appVersion: 0.10.15
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "debug-echo-discovery-handler"
version = "0.10.14"
version = "0.10.15"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
rust-version = "1.68.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "onvif-discovery-handler"
version = "0.10.14"
version = "0.10.15"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
rust-version = "1.68.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "opcua-discovery-handler"
version = "0.10.14"
version = "0.10.15"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
rust-version = "1.68.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "udev-discovery-handler"
version = "0.10.14"
version = "0.10.15"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
rust-version = "1.68.1"
Expand Down
2 changes: 1 addition & 1 deletion discovery-handlers/debug-echo/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "akri-debug-echo"
version = "0.10.14"
version = "0.10.15"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
rust-version = "1.68.1"
Expand Down
Loading

0 comments on commit 08c9ac7

Please sign in to comment.