-
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.
- Loading branch information
1 parent
f428c18
commit 59a7b9f
Showing
7 changed files
with
360 additions
and
13 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,22 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build the Docker image | ||
run: docker build . --file Dockerfile --tag c3lingo/c3lingo-mumblestats:latest --tag c3lingo/c3lingo-mumblestats:$(date +%s) | ||
- name: Log into registry | ||
run: echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin | ||
- name: Push to Docker Hub | ||
run: docker push c3lingo/c3lingo-mumblestats:latest |
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,3 +1,4 @@ | ||
.venv | ||
*~ | ||
__pycache__ | ||
/.idea |
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,19 @@ | ||
FROM python:buster | ||
|
||
RUN apt-get -y update && \ | ||
apt-get install -y libopus-dev portaudio19-dev pulseaudio && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY requirements.txt /tmp | ||
RUN pip install -r /tmp/requirements.txt && \ | ||
rm -f /tmp/requirements.txt | ||
|
||
RUN useradd -ms /bin/bash app | ||
USER app | ||
WORKDIR /home/app | ||
COPY --chown=app mumblestats.py ./ | ||
COPY --chown=app index.tpl ./ | ||
COPY --chown=app static ./static | ||
|
||
CMD ["/usr/local/bin/python", "mumblestats.py", "mumble.c3lingo.org"] |
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,17 @@ | ||
[[source]] | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
bottle = "*" | ||
bottle-websocket = "*" | ||
pymumble = "*" | ||
prometheus-client = "*" | ||
pyaudio = "*" | ||
|
||
[dev-packages] | ||
|
||
[requires] | ||
python_version = "3.11" | ||
python_full_version = "3.11.2" |
Large diffs are not rendered by default.
Oops, something went wrong.
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,10 +1,15 @@ | ||
bottle | ||
bottle-websocket | ||
opuslib | ||
prometheus-client | ||
protobuf | ||
pyaudio | ||
# optional for transitive bottle-websocket -> gevent-websocket | ||
wsaccel | ||
ujson | ||
-e [email protected]:stblassitude/pymumble.git#egg=pymumble | ||
-i https://pypi.org/simple | ||
bottle==0.12.25 | ||
bottle-websocket==0.2.9 | ||
gevent==23.9.1 ; python_version >= '3.8' | ||
gevent-websocket==0.10.1 | ||
greenlet==3.0.2 ; python_version >= '3.11' and platform_python_implementation == 'CPython' | ||
opuslib==3.0.1 | ||
prometheus-client==0.19.0 | ||
protobuf==3.12.2 | ||
pyaudio==0.2.14 | ||
pymumble==1.6.1 | ||
setuptools==69.0.2 ; python_version >= '3.8' | ||
six==1.16.0 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
zope.event==5.0 ; python_version >= '3.7' | ||
zope.interface==6.1 ; python_version >= '3.7' |