-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from dfpc-coe/volume
Volume Config
- Loading branch information
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
FROM bluenviron/mediamtx:1.8.5-ffmpeg | ||
FROM ubuntu:24.04 | ||
|
||
ENV MEDIA_VERSION=1.8.5 | ||
|
||
RUN apt-get upgrade \ | ||
&& apt-get update \ | ||
&& apt-get install -y curl | ||
|
||
RUN curl -L "https://github.com/bluenviron/mediamtx/releases/download/v${MEDIA_VERSION}/mediamtx_v${MEDIA_VERSION}_linux_amd64.tar.gz" > /archive.tar.gz \ | ||
&& tar -xzvf /archive.tar.gz \ | ||
&& rm /archive.tar.gz | ||
|
||
COPY mediamtx.yml / | ||
|
||
COPY start / | ||
|
||
ENTRYPOINT [ "/start" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
# | ||
# Add MediaConfig File | ||
# | ||
|
||
set -x | ||
set -euo pipefail | ||
|
||
# Copy EFS Persisted certs to Let's Encrypt Dir | ||
if [ ! -e "/opt/mediamtx/mediamtx.yml" ]; then | ||
cp "/mediamtx.yml" "/opt/mediamtx/mediamtx.yml" | ||
fi; | ||
|
||
/mediamtx /opt/mediamtx/mediamtx.yml |