Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR #3690: Build/package murmur in a docker image
- Loading branch information
Showing
3 changed files
with
63 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
FROM ubuntu:disco | ||
|
||
# needed to install tzdata in disco | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
pkg-config \ | ||
qt5-default \ | ||
libboost-dev \ | ||
libasound2-dev \ | ||
libssl-dev \ | ||
libspeechd-dev \ | ||
libzeroc-ice-dev \ | ||
libpulse-dev \ | ||
libcap-dev \ | ||
libprotobuf-dev \ | ||
protobuf-compiler \ | ||
protobuf-compiler-grpc \ | ||
libprotoc-dev \ | ||
libogg-dev \ | ||
libavahi-compat-libdnssd-dev \ | ||
libsndfile1-dev \ | ||
libgrpc++-dev \ | ||
libxi-dev \ | ||
libbz2-dev \ | ||
qtcreator | ||
|
||
COPY . /root/mumble | ||
WORKDIR /root/mumble | ||
|
||
RUN qmake -recursive main.pro CONFIG+="no-client grpc" | ||
RUN make release | ||
|
||
# Clean distribution stage | ||
FROM ubuntu:disco | ||
|
||
RUN adduser murmur | ||
RUN apt-get update && apt-get install -y \ | ||
libcap2 \ | ||
libzeroc-ice3.7 \ | ||
libprotobuf17 \ | ||
libgrpc6 \ | ||
libgrpc++1 \ | ||
libavahi-compat-libdnssd1 \ | ||
libqt5core5a \ | ||
libqt5network5 \ | ||
libqt5sql5 \ | ||
libqt5xml5 \ | ||
libqt5dbus5 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=0 /root/mumble/release/murmurd /usr/bin/murmurd | ||
COPY --from=0 /root/mumble/scripts/murmur.ini /etc/murmur/murmur.ini | ||
|
||
RUN mkdir /var/lib/murmur && \ | ||
chown murmur:murmur /var/lib/murmur && \ | ||
sed -i 's/^database=$/database=\/var\/lib\/murmur\/murmur.sqlite/' /etc/murmur/murmur.ini | ||
|
||
EXPOSE 64738/tcp 64738/udp 50051 | ||
USER murmur | ||
|
||
CMD /usr/bin/murmurd -v -fg -ini /etc/murmur/murmur.ini |
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