Docker & adding travis
This commit is contained in:
parent
e595ea861b
commit
158731b3fa
7
.travis.yml
Normal file
7
.travis.yml
Normal file
@ -0,0 +1,7 @@
|
||||
dist: bionic
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- stage: build docker image
|
||||
script:
|
||||
- bash travis_deploy.sh
|
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@ -0,0 +1,16 @@
|
||||
FROM python:2
|
||||
|
||||
RUN pip install --no-cache-dir zeroc-ice
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
COPY . /mumo
|
||||
|
||||
RUN chmod +x /entrypoint.sh && \
|
||||
ln -sf /dev/stdout /mumo/mumo.log
|
||||
|
||||
VOLUME ["/data"]
|
||||
|
||||
WORKDIR /mumo
|
||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
||||
|
||||
CMD ["/mumo/mumo.py", "--ini", "/data/mumo.ini"]
|
@ -9,6 +9,10 @@ by mumo. Developers can focus on their specific functionality instead.
|
||||
## Documentation
|
||||
The documentation can be found in our wiki, see https://wiki.mumble.info/wiki/Mumo.
|
||||
|
||||
## Docker image
|
||||
An official docker image is available at https://hub.docker.com/r/mumblevoip/mumo.
|
||||
ALl the documentation is inside the wiki.
|
||||
|
||||
## Modules for Mumble moderator
|
||||
### Included modules
|
||||
Currently mumo comes with the following modules:
|
||||
|
24
entrypoint.sh
Normal file
24
entrypoint.sh
Normal file
@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
if [ ! -f /data/mumo.ini ]
|
||||
then
|
||||
cp /mumo/mumo.ini /data
|
||||
|
||||
sed -i 's;level =.*;/level = 30;' /data/mumo.ini
|
||||
|
||||
chmod a+rw /data/mumo.ini
|
||||
cp -r /mumo/modules-available /data
|
||||
mkdir -p /data/modules-enabled
|
||||
|
||||
echo Created mumo default config data. Exiting.
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Conf class don't read mumo.ini everytime to check custom folder
|
||||
# so we copy them ...
|
||||
|
||||
cp -r /data/modules /mumo
|
||||
cp -r /data/modules-available /mumo
|
||||
cp -r /data/modules-enabled /mumo
|
||||
|
||||
exec "$@"
|
13
travis_deploy.sh
Normal file
13
travis_deploy.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
|
||||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||
fi
|
||||
|
||||
docker build -t mumo .
|
||||
docker images
|
||||
|
||||
if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
|
||||
docker tag mumo $DOCKER_USERNAME/mumo
|
||||
docker push $DOCKER_USERNAME/mumo
|
||||
fi
|
Loading…
Reference in New Issue
Block a user