Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
9b55ea6
Update Python MongoDB Driver to 3.13.0 #1
GGeorggg Apr 3, 2024
6a39006
Build Docker Container from cwd #3
GGeorggg Apr 3, 2024
ce66e1f
fix file permissions
GGeorggg Apr 3, 2024
a41010f
Bewegungsdaten nicht in git Aufnehmen #5
GGeorggg Apr 3, 2024
0ad8b51
Fix Permissions #6
GGeorggg Apr 3, 2024
8ae9076
Allow Configuration of MongoDB Server/Port #7
GGeorggg Apr 3, 2024
400ef44
Airnotifier should log to stdout/stderr for docker logs to work #8
GGeorggg Apr 3, 2024
7c9ca27
Fix Permissions #6
GGeorggg Apr 3, 2024
92b5416
fix deprecation warnings #9
GGeorggg Apr 3, 2024
3cde470
Allow Configuration of MongoDB Server/Port/Directories #7
GGeorggg Apr 3, 2024
9ab2e13
Upgrade from python 3.6 (EOL since 2021-12) to python 3.9 (EOL in 202…
GGeorggg Apr 3, 2024
9a8393e
Upgrade from python 3.6 (EOL since 2021-12) to python 3.9 (EOL in 202…
GGeorggg Apr 3, 2024
f40962a
Documentation: How to rebuild #4
GGeorggg Apr 3, 2024
0ebfea4
no need to expose port monogod port
GGeorggg Apr 5, 2024
e1c54a9
selfcontained docker-compose runs monogod and airnotifiere in two doc…
GGeorggg Apr 5, 2024
ee9814f
Airnotifier using non-dockerized mongodb #491
GGeorggg Apr 5, 2024
d42baa1
airnotifier upgrade to tornado >=6.3.4 [security] #16
GGeorggg Apr 5, 2024
09f3189
Allow Configuration of MongoDB Server/Port/Database/Option/SSL #7
GGeorggg Apr 11, 2024
654adda
Allow Configuration of MongoDB Server/Port/Database/Option/SSL #7
GGeorggg Apr 11, 2024
669aa84
Attempt Forum Fix https://tracker.moodle.org/browse/MOBILE-3824
ChristophKunerth Apr 12, 2024
dabdc13
Merge pull request #18 from BiP-org/push-fix
ChristophKunerth Apr 12, 2024
410c5bd
fix mongodb+srv protocol parsing #22
GGeorggg Apr 28, 2024
295f711
Merge branch 'master' of github.com:BiP-org/airnotifier
GGeorggg Apr 28, 2024
827df7b
Create ghcr-publish.yml
GGeorggg Apr 29, 2024
e803271
https://github.com/BiP-org/airnotifier/issues/26
GGeorggg Jun 5, 2024
d427aa2
Merge branch 'master' of github.com:BiP-org/airnotifier
GGeorggg Jun 5, 2024
1652a9a
python 3.11 changes
rbartl Jun 17, 2025
346dc9b
python 3.11 changes
rbartl Jun 17, 2025
f6c369a
update github workflow to 3.10
rbartl Aug 25, 2025
25b143f
update github workflow to 3.10
rbartl Aug 25, 2025
b09efa2
update github workflow to 3.10
rbartl Aug 25, 2025
2f93653
#783 - fix test and migrate to httpx
rbartl Aug 25, 2025
f3d39d4
Merge pull request #28 from BiP-org/python_3.11_730
rbartl Aug 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/.git
*~
49 changes: 49 additions & 0 deletions .github/workflows/ghcr-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Create and publish a Docker image

# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
push:
branches: ['release']

# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
build-and-push-image:
runs-on: ubuntu-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
- name: Build and push Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
4 changes: 2 additions & 2 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:

steps:
- uses: actions/checkout@v1
- name: Set up Python 3.8
- name: Set up Python 3.11.13
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: 3.11.13
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ airnotifier.err
airnotifier.log
config.py
.cache
mongo/
logs/
*~
.env
20 changes: 16 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
FROM python:3.6
FROM python:3.11
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
ENV DEBIAN_FRONTEND=noninteractive TERM=linux
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

EXPOSE 8801

RUN apt-get update && \
apt-get install -y --no-install-recommends git ca-certificates
# Configure APT
RUN echo "debconf debconf/frontend select ${DEBIAN_FRONTEND}" | debconf-set-selections \
&& echo 'APT::Install-Recommends "false";' | tee /etc/apt/apt.conf.d/99install-recommends \
&& echo 'APT::Get::Assume-Yes "true";' | tee /etc/apt/apt.conf.d/99assume-yes \
&& sed -Ei 's|^(DPkg::Pre-Install-Pkgs .*)|#\1|g' /etc/apt/apt.conf.d/70debconf \
&& debconf-show debconf

RUN apt-get update -q -y && \
apt-get install -q -y --no-install-recommends git ca-certificates python3-dev python3 python3-dns


RUN pip3 install pipenv

RUN git clone -b 2.x https://github.com/airnotifier/airnotifier.git /airnotifier
COPY . /airnotifier
RUN mkdir -p /var/airnotifier/pemdir && \
mkdir -p /var/log/airnotifier

Expand All @@ -21,4 +31,6 @@ RUN pipenv install --deploy

ADD start.sh /airnotifier
RUN chmod a+x /airnotifier/start.sh
RUN chmod a+x /airnotifier/install.py
RUN chmod a+x /airnotifier/app.py
ENTRYPOINT /airnotifier/start.sh
9 changes: 6 additions & 3 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[requires]
python_version = "3.11"

[scripts]
test = "python -m unittest discover -s tests -p 'test_*.py'"

Expand All @@ -11,12 +14,12 @@ test = "python -m unittest discover -s tests -p 'test_*.py'"
[packages]
netaddr = "==0.7.18"
oauth2client = "==4.1.3"
pymongo = "==3.5.1"
pymongo = "==3.13.0"
requests = "==2.21.0"
tornado = "~=6.0"
tornado = "~=6.4.0"
click = "*"
sentry-sdk = "==0.13.2"
aiocontextvars = "*"
hyper = "*"
pyjwt = "*"
cryptography = "*"
httpx = "*"
Loading