forked from restreamio/docker-gstreamer
-
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.
feat: build one more production image with debug symbols included
- Loading branch information
Showing
8 changed files
with
60 additions
and
38 deletions.
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
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,6 +1,7 @@ | ||
FROM restreamio/gstreamer:latest-dev-downloaded | ||
|
||
ENV DEBUG=true | ||
ENV OPTIMIZATIONS=false | ||
|
||
# Compile binaries with debug symbols and keep source code | ||
RUN ["/compile"] |
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,37 +1,10 @@ | ||
FROM restreamio/gstreamer:latest-dev-downloaded | ||
|
||
ENV DEBUG=false | ||
ENV OPTIMIZATIONS=true | ||
|
||
RUN ["/compile"] | ||
|
||
FROM ubuntu:20.04 | ||
FROM restreamio/gstreamer:latest-prod-base | ||
|
||
RUN \ | ||
apt-get update && \ | ||
apt-get dist-upgrade -y && \ | ||
# This allows us to easily install what is necessary for GStreamer to work | ||
apt-get install -y --no-install-recommends \ | ||
gstreamer1.0-plugins-bad \ | ||
gstreamer1.0-plugins-base \ | ||
gstreamer1.0-plugins-good \ | ||
gstreamer1.0-plugins-ugly \ | ||
gstreamer1.0-libav \ | ||
gstreamer1.0-nice && \ | ||
# However, we don't need GStreamer itself and its plugins, since we've just built them from source | ||
apt-get remove -y --purge \ | ||
gstreamer1.0-plugins-bad \ | ||
gstreamer1.0-plugins-base \ | ||
gstreamer1.0-plugins-good \ | ||
gstreamer1.0-plugins-ugly \ | ||
gstreamer1.0-libav \ | ||
gstreamer1.0-nice \ | ||
libgstreamer-plugins-bad1.0-0 \ | ||
libgstreamer-plugins-base1.0-0 \ | ||
libgstreamer-plugins-good1.0-0 \ | ||
libgstreamer1.0-0 \ | ||
libusrsctp1 \ | ||
libnice10 && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=0 /gstreamer-binaries / | ||
COPY --from=0 /compiled-binaries / |
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,29 @@ | ||
FROM ubuntu:20.04 | ||
|
||
RUN \ | ||
apt-get update && \ | ||
apt-get dist-upgrade -y && \ | ||
# This allows us to easily install what is necessary for GStreamer to work | ||
apt-get install -y --no-install-recommends \ | ||
gstreamer1.0-plugins-bad \ | ||
gstreamer1.0-plugins-base \ | ||
gstreamer1.0-plugins-good \ | ||
gstreamer1.0-plugins-ugly \ | ||
gstreamer1.0-libav \ | ||
gstreamer1.0-nice && \ | ||
# However, we don't need GStreamer itself and its plugins, since we've just built them from source | ||
apt-get remove -y --purge \ | ||
gstreamer1.0-plugins-bad \ | ||
gstreamer1.0-plugins-base \ | ||
gstreamer1.0-plugins-good \ | ||
gstreamer1.0-plugins-ugly \ | ||
gstreamer1.0-libav \ | ||
gstreamer1.0-nice \ | ||
libgstreamer-plugins-bad1.0-0 \ | ||
libgstreamer-plugins-base1.0-0 \ | ||
libgstreamer-plugins-good1.0-0 \ | ||
libgstreamer1.0-0 \ | ||
libusrsctp1 \ | ||
libnice10 && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* |
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,10 @@ | ||
FROM restreamio/gstreamer:latest-dev-downloaded | ||
|
||
ENV DEBUG=true | ||
ENV OPTIMIZATIONS=true | ||
|
||
RUN ["/compile"] | ||
|
||
FROM restreamio/gstreamer:latest-prod-base | ||
|
||
COPY --from=0 /compiled-binaries / |
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
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
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,7 +1,7 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Make sure to always have fresh base image | ||
docker push restreamio/gstreamer:latest-dev-with-source | ||
docker push restreamio/gstreamer:latest-dev | ||
docker push restreamio/gstreamer:latest-prod | ||
docker push restreamio/gstreamer:latest-prod-dbg |