Compare commits

...

60 Commits

Author SHA1 Message Date
960b7becbe hide ports 2023-09-24 12:54:48 +03:00
840d502fa1 test 2023-09-24 12:51:14 +03:00
afc7c0e83a fix 2023-09-24 12:45:56 +03:00
00bc61e104 fix 2023-09-24 12:43:47 +03:00
8acca3178f fix 2023-09-24 12:40:03 +03:00
5895ca27bf botamusique 2023-09-24 12:39:29 +03:00
ed784525df log 2023-09-24 12:25:33 +03:00
90c9c402cf test 2023-09-24 12:03:14 +03:00
3bae973d98 fix 2023-09-24 12:01:44 +03:00
6aeead8c00 test 2023-09-24 12:01:17 +03:00
81f412eae8 fix 2023-09-24 11:57:01 +03:00
345db8a9ba test 2023-09-24 11:55:27 +03:00
3459da266f test 2023-09-24 11:53:25 +03:00
347bf598e4 test 2023-09-24 11:52:13 +03:00
d5e81c0287 test 2023-09-24 11:48:53 +03:00
d8eb52e2ec test 2023-09-24 11:42:01 +03:00
a64131d754 test 2023-09-24 11:40:29 +03:00
763ba4a3ac test 2023-09-24 11:38:08 +03:00
f74d75a7fd test 2023-09-24 11:37:03 +03:00
3967a75bce test 2023-09-24 11:36:05 +03:00
7ab0ebbcf9 test 2023-09-24 11:35:10 +03:00
43e0186b4e test 2023-09-24 11:27:52 +03:00
d8082d697c test 2023-09-24 11:17:30 +03:00
52f8bfbda4 тест 2023-09-24 11:14:47 +03:00
1f4d84b611 supw 2023-09-24 11:10:49 +03:00
682512c509 fix 2023-09-24 11:05:48 +03:00
dcb22dc26c fix 2023-09-24 11:03:09 +03:00
e0bca90752 Замена названий 2023-09-24 10:56:29 +03:00
be56032bf3 Убираю костыль 2023-09-24 10:49:09 +03:00
b5982e84d4 test 2023-09-17 19:12:41 +03:00
ce28c3b8d8 fix 2023-09-17 19:11:25 +03:00
5d7ebd077a fix 2023-09-17 19:09:39 +03:00
bbbd390d73 django 2023-09-17 19:05:17 +03:00
c14b1c6e04 fix 2023-09-17 18:06:00 +03:00
f70a05948c fix 2023-09-17 18:02:42 +03:00
06e71b1f3a fix 2023-09-17 18:01:31 +03:00
a219c54fe5 fix 2023-09-17 17:59:16 +03:00
2f839c8367 fix 2023-09-17 17:48:24 +03:00
63bba74fbc fix 2023-09-17 17:47:55 +03:00
c48d25d545 fix 2023-09-17 17:45:03 +03:00
6549e742dd test 2023-09-17 17:43:42 +03:00
8149614c77 test 2023-09-17 17:42:59 +03:00
546093a645 FIX 2023-09-17 17:26:25 +03:00
1b82940c82 fix 2023-09-17 17:22:27 +03:00
57b5b9681e test 2023-09-17 17:18:44 +03:00
a13d13317b fix 2023-09-17 17:11:41 +03:00
796c2f4764 test 2023-09-17 17:09:58 +03:00
2363ad2871 teset 2023-09-17 16:56:05 +03:00
6ada4cfdf6 test 2023-09-17 16:41:04 +03:00
1f076a7bb9 test 2023-09-17 16:40:28 +03:00
80b4dd1f80 test 2023-09-17 11:57:40 +03:00
76aa8f4ff4 test 2023-09-17 11:47:39 +03:00
467dd29258 test 2023-09-17 11:34:08 +03:00
d7849d759d fix 2023-09-17 11:24:42 +03:00
0e58d62752 fix 2023-09-17 11:09:29 +03:00
5612d61c7c dir 2023-09-17 11:01:35 +03:00
a51ca6eab0 test 2023-09-17 11:00:00 +03:00
cc0ef289f4 test 2023-09-17 10:58:34 +03:00
19504dbeda fix 2023-09-17 10:49:27 +03:00
f88dae8786 название 2023-09-17 10:20:12 +03:00
5 changed files with 134 additions and 23 deletions

View File

@@ -1 +1,5 @@
Докерфайл для сборки mumble-server для arm64 (Rock PI 5) Докерфайл для сборки mumble-server для arm64 (Rock PI 5)
docker stop mumble-srv && docker rm mumble-srv && docker rmi mumble-mumble-srv && git pull && docker compose up -d
docker stop mumble-srv && docker rm mumble-srv && docker rmi mumble-mumble-srv && docker builder prune && git pull && docker compose up -d

View File

@@ -1,13 +1,69 @@
version: '3' version: '3'
services: services:
mumble-server:
mumble-srv:
build: build:
context: . context: server/.
dockerfile: Dockerfile.multistage container_name: mumble-srv
restart: unless-stopped
environment:
- SUPER_USER_PASSWORD=123456789
volumes: volumes:
- /mnt/data/mumble/data/conf:/etc/murmur - /mnt/data/mumble/server/ini:/opt/mumble/ini:rw
- /mnt/data/mumble/data/db:/var/lib/murmur - /mnt/data/mumble/server/db:/opt/mumble/db:rw
- /mnt/data/mumble/server/log:/opt/mumble/log:rw
- /mnt/data/nginx/letsencrypt:/etc/letsencrypt:ro
ports: ports:
- 64738:64738/tcp - 64738:64738/tcp
- 64738:64738/udp - 64738:64738/udp
- 50051:50051 - 50051:50051
networks:
- mumble-net
mumble-botamusique:
image: azlux/botamusique
container_name: mumble-botamusique
restart: unless-stopped
# ports:
# - 8181:8181/tcp
# - 8181:8181/udp
environment:
BAM_CONFIG_file: /config/bot.ini
BAM_CERTIFICATE: /config/bot.pem
BAM_MUSIC_DB: /config/music.db
BAM_DB: /config/setting.db
BAM_MUMBLE_SERVER: 'mumble-srv'
BAM_MUMBLE_PORT: 64738
BAM_USER: Гусляр
BAM_CHANNEL: Концертный зал
volumes:
- /mnt/data/mumble/botamusique/music_folder:/botamusique/music_folder
- /mnt/data/mumble/botamusique/config:/config
cpus: 2
# mumble-admin:
# build: mumble-django/.
# container_name: admin
# restart: unless-stopped
# depends_on:
# - mumble-srv
# ports:
# - 9999:9000
# volumes:
# - /etc/localtime:/etc/localtime:ro
# - /mnt/data/mumble/test:/mumble
# - /mnt/data/mumble/mumble-django:/opt/mumble-django/db
# - mumble_ice:/opt/mumble/ice
# environment:
# - MURMUR_CONNSTR=Meta:tcp -h murmur -p 6502
# - MURMUR_ICESECRET=''
# networks:
# - mumble-net
networks:
mumble-net:
#volumes:
# mumble_ice:
# name: mumble_ice

34
mumble-django/Dockerfile Normal file
View File

@@ -0,0 +1,34 @@
FROM ubuntu:focal
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" ]

View 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

View File

@@ -1,4 +1,4 @@
FROM ubuntu:focal FROM ubuntu:focal AS builder
# needed to install tzdata # needed to install tzdata
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
@@ -30,14 +30,12 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
WORKDIR /root WORKDIR /root
RUN git clone -b 1.5.x https://github.com/mumble-voip/mumble.git RUN git clone -b 1.5.x https://github.com/mumble-voip/mumble.git
WORKDIR /root/mumble WORKDIR /root/mumble
RUN git submodule update --init --recursive RUN git submodule update --init --recursive
WORKDIR /root/mumble/build WORKDIR /root/mumble/build
RUN git submodule update --init --recursive
RUN cmake -Dclient=OFF -DCMAKE_BUILD_TYPE=Release -Dgrpc=ON .. || \ RUN cmake -Dclient=OFF -DCMAKE_BUILD_TYPE=Release -Dgrpc=ON .. || \
( cat \ ( cat \
/root/mumble/build/CMakeFiles/CMakeOutput.log \ /root/mumble/build/CMakeFiles/CMakeOutput.log \
@@ -45,15 +43,14 @@ RUN cmake -Dclient=OFF -DCMAKE_BUILD_TYPE=Release -Dgrpc=ON .. || \
&& false \ && false \
) )
RUN make -j $(nproc) RUN make -j $(nproc)
RUN ls
RUN cat /root/mumble/build/mumble-server.ini
# Clean distribution stage # Clean distribution stage
FROM ubuntu:focal FROM ubuntu:focal as prod
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
ARG SUPER_USER_PASSWORD=12345678
RUN adduser murmur #RUN adduser mumble
RUN apt-get update && apt-get install --no-install-recommends -y \ RUN apt-get update && apt-get install --no-install-recommends -y \
libcap2 \ libcap2 \
libzeroc-ice3.7 \ libzeroc-ice3.7 \
@@ -73,14 +70,23 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
COPY --from=0 /root/mumble/build/mumble-server /usr/bin/mumble-server RUN mkdir /opt/mumble && \
COPY --from=0 /root/mumble/build/mumble-server.ini /etc/murmur/murmur.ini mkdir /opt/mumble/db && \
mkdir /opt/mumble/ini && \
mkdir /opt/mumble/log
RUN mkdir /var/lib/murmur && \ COPY --from=builder /root/mumble/build/mumble-server /opt/mumble
chown --verbose murmur:murmur /var/lib/murmur && \ COPY --from=builder /root/mumble/build/mumble-server.ini /opt/mumble/mumble-server.ini
sed -i 's/^database=$/database=\/var\/lib\/murmur\/murmur.sqlite/' /etc/murmur/murmur.ini
RUN sed -i 's/^database=$/database=\/opt\/mumble\/db\/murmur.sqlite/' /opt/mumble/mumble-server.ini
EXPOSE 64738/tcp 64738/udp 50051 EXPOSE 64738/tcp 64738/udp 50051
USER murmur VOLUME ["/opt/mumble/ini"]
VOLUME ["/opt/mumble/db"]
VOLUME ["/opt/mumble/log"]
CMD /usr/bin/mumble-server -v -fg -ini /etc/murmur/murmur.ini WORKDIR /
CMD cp -n /opt/mumble/mumble-server.ini /opt/mumble/ini/ && \
/opt/mumble/mumble-server -v -fg -ini /opt/mumble/ini/mumble-server.ini -supw $SUPER_USER_PASSWORD && \
/opt/mumble/mumble-server -v -fg -ini /opt/mumble/ini/mumble-server.ini