mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
add docker images with libcamera included (#1110)
This commit is contained in:
parent
ff12605106
commit
3b5efb25a3
3 changed files with 57 additions and 14 deletions
|
|
@ -6,6 +6,28 @@ ENTRYPOINT [ "/rtsp-simple-server" ]
|
|||
endef
|
||||
export DOCKERFILE_DOCKERHUB
|
||||
|
||||
define DOCKERFILE_DOCKERHUB_RPI_32
|
||||
FROM $(RPI32_IMAGE)
|
||||
RUN ["cross-build-start"]
|
||||
RUN apt update && apt install -y --no-install-recommends libcamera0
|
||||
RUN ["cross-build-end"]
|
||||
ARG BINARY
|
||||
ADD $$BINARY /
|
||||
ENTRYPOINT [ "/rtsp-simple-server" ]
|
||||
endef
|
||||
export DOCKERFILE_DOCKERHUB_RPI_32
|
||||
|
||||
define DOCKERFILE_DOCKERHUB_RPI_64
|
||||
FROM $(RPI64_IMAGE)
|
||||
RUN ["cross-build-start"]
|
||||
RUN apt update && apt install -y --no-install-recommends libcamera0
|
||||
RUN ["cross-build-end"]
|
||||
ARG BINARY
|
||||
ADD $$BINARY /
|
||||
ENTRYPOINT [ "/rtsp-simple-server" ]
|
||||
endef
|
||||
export DOCKERFILE_DOCKERHUB_RPI_64
|
||||
|
||||
dockerhub:
|
||||
$(eval export DOCKER_CLI_EXPERIMENTAL=enabled)
|
||||
$(eval VERSION := $(shell git describe --tags))
|
||||
|
|
@ -30,6 +52,13 @@ dockerhub:
|
|||
-t aler9/rtsp-simple-server:latest-armv6 \
|
||||
--push
|
||||
|
||||
echo "$$DOCKERFILE_DOCKERHUB_RPI_32" | docker buildx build . -f - \
|
||||
--platform=linux/arm/v6 \
|
||||
--build-arg BINARY="$$(echo binaries/*linux_armv6.tar.gz)" \
|
||||
-t aler9/rtsp-simple-server:$(VERSION)-armv6-rpi \
|
||||
-t aler9/rtsp-simple-server:latest-armv6-rpi \
|
||||
--push
|
||||
|
||||
echo "$$DOCKERFILE_DOCKERHUB" | docker buildx build . -f - \
|
||||
--platform=linux/arm/v7 \
|
||||
--build-arg BINARY="$$(echo binaries/*linux_armv7.tar.gz)" \
|
||||
|
|
@ -37,6 +66,13 @@ dockerhub:
|
|||
-t aler9/rtsp-simple-server:latest-armv7 \
|
||||
--push
|
||||
|
||||
echo "$$DOCKERFILE_DOCKERHUB_RPI_32" | docker buildx build . -f - \
|
||||
--platform=linux/arm/v7 \
|
||||
--build-arg BINARY="$$(echo binaries/*linux_armv7.tar.gz)" \
|
||||
-t aler9/rtsp-simple-server:$(VERSION)-armv7-rpi \
|
||||
-t aler9/rtsp-simple-server:latest-armv7-rpi \
|
||||
--push
|
||||
|
||||
echo "$$DOCKERFILE_DOCKERHUB" | docker buildx build . -f - \
|
||||
--platform=linux/arm64/v8 \
|
||||
--build-arg BINARY="$$(echo binaries/*linux_arm64v8.tar.gz)" \
|
||||
|
|
@ -44,6 +80,13 @@ dockerhub:
|
|||
-t aler9/rtsp-simple-server:latest-arm64v8 \
|
||||
--push
|
||||
|
||||
echo "$$DOCKERFILE_DOCKERHUB_RPI_64" | docker buildx build . -f - \
|
||||
--platform=linux/arm64/v8 \
|
||||
--build-arg BINARY="$$(echo binaries/*linux_arm64v8.tar.gz)" \
|
||||
-t aler9/rtsp-simple-server:$(VERSION)-arm64v8-rpi \
|
||||
-t aler9/rtsp-simple-server:latest-arm64v8-rpi \
|
||||
--push
|
||||
|
||||
docker manifest create aler9/rtsp-simple-server:$(VERSION) \
|
||||
$(foreach ARCH,amd64 armv6 armv7 arm64v8,aler9/rtsp-simple-server:$(VERSION)-$(ARCH))
|
||||
docker manifest push aler9/rtsp-simple-server:$(VERSION)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue