Skip to content
This repository was archived by the owner on Oct 3, 2025. It is now read-only.

Commit 38f8a70

Browse files
authored
chore: pin docker images (#1142)
Pin the base alpine image and use the ghcr image in verification, pinned to the version deployed by the Docker workflow.
1 parent 01b7043 commit 38f8a70

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.github/workflows/verify.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
runs-on: ubuntu-latest
3737
services:
3838
gstreamer:
39-
image: steabert/gst-rtsp-launch@sha256:24b369baa83375a1b97a7596aabbda8d1915823920049d669fa4a5035c05dbc1
39+
image: ghcr.io/axiscommunications/media-stream-library-js/gst-rtsp-launch@sha256:3ab088f2b79b0134647b1438f682f8ad0cbd9a65540ed1e8210b3264480a4014
4040
ports:
4141
- 8554:8554
4242
steps:
@@ -66,7 +66,7 @@ jobs:
6666
runs-on: ubuntu-latest
6767
services:
6868
gstreamer:
69-
image: steabert/gst-rtsp-launch@sha256:24b369baa83375a1b97a7596aabbda8d1915823920049d669fa4a5035c05dbc1
69+
image: ghcr.io/axiscommunications/media-stream-library-js/gst-rtsp-launch@sha256:3ab088f2b79b0134647b1438f682f8ad0cbd9a65540ed1e8210b3264480a4014
7070
ports:
7171
- 8554:8554
7272
steps:
@@ -88,7 +88,7 @@ jobs:
8888
runs-on: ubuntu-latest
8989
services:
9090
gstreamer:
91-
image: steabert/gst-rtsp-launch@sha256:24b369baa83375a1b97a7596aabbda8d1915823920049d669fa4a5035c05dbc1
91+
image: ghcr.io/axiscommunications/media-stream-library-js/gst-rtsp-launch@sha256:3ab088f2b79b0134647b1438f682f8ad0cbd9a65540ed1e8210b3264480a4014
9292
ports:
9393
- 8554:8554
9494
steps:

gst-rtsp-launch/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:edge AS build
1+
FROM alpine:edge@sha256:115729ec5cb049ba6359c3ab005ac742012d92bbaa5b8bc1a878f1e8f62c0cb8 AS build
22
RUN echo http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
33
RUN apk add --no-cache gst-rtsp-server-dev
44
RUN apk add --no-cache libtool
@@ -10,7 +10,7 @@ RUN libtool --mode=link \
1010
-L/usr/lib/x86_64-linux-gnu -lgstrtspserver-1.0 \
1111
-o gst-rtsp-launch gst-rtsp-launch.c
1212

13-
FROM alpine:edge
13+
FROM alpine:edge@sha256:115729ec5cb049ba6359c3ab005ac742012d92bbaa5b8bc1a878f1e8f62c0cb8
1414
RUN echo http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
1515
RUN apk add --no-cache gst-rtsp-server
1616
RUN apk add --no-cache gst-plugins-base

scripts/rtsp-server.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,20 @@ h264_pipeline="videotestsrc ! video/x-raw,width=1920,height=1080 ! timeoverlay t
2323
h264_port="8554"
2424
mjpeg_pipeline="videotestsrc pattern=ball ! video/x-raw,width=1280,height=720,format=YUY2 ! timeoverlay text='MJPEG' valignment=top halignment=left ! jpegenc ! rtpjpegpay name=pay0 pt=96"
2525
mjpeg_port="8555"
26+
docker_image="ghcr.io/axiscommunications/media-stream-library-js/gst-rtsp-launch@sha256:3ab088f2b79b0134647b1438f682f8ad0cbd9a65540ed1e8210b3264480a4014"
2627

2728
if [ -z "$1" ]; then
2829
echo "serving H.264 video on rtsp://0.0.0.0:${h264_port}/test"
29-
h264_container=$(docker run -d --rm -p ${h264_port}:8554 steabert/gst-rtsp-launch "$h264_pipeline")
30+
h264_container=$(docker run -d --rm -p ${h264_port}:8554 $docker_image "$h264_pipeline")
3031
echo "serving Motion JPEG video on rtsp://0.0.0.0:${mjpeg_port}/test"
31-
mjpeg_container=$(docker run -d --rm -p ${mjpeg_port}:8554 steabert/gst-rtsp-launch "$mjpeg_pipeline")
32+
mjpeg_container=$(docker run -d --rm -p ${mjpeg_port}:8554 $docker_image "$mjpeg_pipeline")
3233
container="${h264_container} ${mjpeg_container}"
3334
elif [ "$1" = "docker" ]; then
3435
echo "using default pipeline configured inside the docker container (port 8554)"
35-
container=$(docker run -d --rm -p 8554:8554 steabert/gst-rtsp-launch)
36+
container=$(docker run -d --rm -p 8554:8554 $docker_image)
3637
else
3738
echo "using user-specified launch pipeline: $1 (port 8554)"
38-
container=$(docker run -d --rm -p 8554:8554 steabert/gst-rtsp-launch "$1")
39+
container=$(docker run -d --rm -p 8554:8554 $docker_image "$1")
3940
fi
4041

4142
if [ -z "${container}" ]; then

0 commit comments

Comments
 (0)