django
This commit is contained in:
34
mumble-django/Dockerfile
Normal file
34
mumble-django/Dockerfile
Normal file
@@ -0,0 +1,34 @@
|
||||
FROM debian:stretch-slim
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt install -y mercurial patch
|
||||
|
||||
WORKDIR /opt
|
||||
RUN hg clone https://bitbucket.org/Svedrin/mumble-django
|
||||
|
||||
COPY IceEncodingVersion.patch /opt/mumble-django
|
||||
WORKDIR /opt/mumble-django
|
||||
RUN patch -p1 < IceEncodingVersion.patch
|
||||
|
||||
RUN mkdir -p /opt/mumble/ice
|
||||
|
||||
RUN apt-get install -y python-pil python-pip
|
||||
|
||||
# Install older version of django
|
||||
RUN pip install django==1.7
|
||||
|
||||
# Install zeroc-ice
|
||||
RUN apt-get install -y libssl-dev libbz2-dev
|
||||
RUN pip install zeroc-ice
|
||||
|
||||
# mumble-django is looking for Murmur.ice in /usr/share/slice
|
||||
# our share volume will mount it at /opt/mumble/ice/Murmur.ice
|
||||
# link it to the correct place
|
||||
RUN mkdir -p /usr/share/slice
|
||||
RUN ln -s /opt/mumble/ice/Murmur.ice /usr/share/slice/Murmur.ice
|
||||
|
||||
VOLUME ["/opt/mumble-django/db"]
|
||||
|
||||
EXPOSE 9000/tcp
|
||||
|
||||
CMD [ "python", "/opt/mumble-django/pyweb/manage.py", "runserver", "0.0.0.0:9000" ]
|
||||
11
mumble-django/IceEncodingVersion.patch
Normal file
11
mumble-django/IceEncodingVersion.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
diff -ruN mumble-django/pyweb/mumble/MumbleCtlIce.py mumble-django.new/pyweb/mumble/MumbleCtlIce.py
|
||||
--- mumble-django/pyweb/mumble/MumbleCtlIce.py 2020-08-14 19:42:55.375078615 +0200
|
||||
+++ mumble-django.new/pyweb/mumble/MumbleCtlIce.py 2020-08-14 19:50:04.321710768 +0200
|
||||
@@ -94,6 +94,7 @@
|
||||
prop = Ice.createProperties([])
|
||||
prop.setProperty("Ice.ImplicitContext", "Shared")
|
||||
prop.setProperty("Ice.MessageSizeMax", "65535")
|
||||
+ prop.setProperty("Ice.Default.EncodingVersion", "1.0")
|
||||
|
||||
idd = Ice.InitializationData()
|
||||
idd.properties = prop
|
||||
Reference in New Issue
Block a user