Skip to content

Commit a905c32

Browse files
authored
Merge branch 'main' into patch-3
2 parents aeb2765 + 8e823f6 commit a905c32

155 files changed

Lines changed: 10283 additions & 2771 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name": "Transitous",
55
"build": {
66
"dockerfile": "../ci/container/Containerfile-devcontainer",
7-
"context": "../ci/container/"
7+
"context": "../"
88
},
99

1010
// Configure tool-specific properties.

.github/workflows/container-images.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
push:
88
paths:
99
- "ci/container/Containerfile"
10+
- "requirements.txt"
1011
branches:
1112
- "main"
1213
workflow_dispatch:

.github/workflows/website.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,44 +30,51 @@ jobs:
3030
build:
3131
runs-on: ubuntu-latest
3232
env:
33-
HUGO_VERSION: 0.143.0
33+
HUGO_VERSION: 0.159.0
3434
steps:
35+
- uses: actions/setup-node@v6
36+
with:
37+
node-version: 24
38+
3539
- name: Install Hugo CLI
3640
run: |
3741
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
3842
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
3943
4044
- name: Checkout
41-
uses: actions/checkout@v4
45+
uses: actions/checkout@v6
4246
with:
4347
submodules: recursive
4448
fetch-depth: 0
4549

4650
- name: Setup Pages
4751
id: pages
48-
uses: actions/configure-pages@v4
52+
uses: actions/configure-pages@v5
4953

5054
- name: Install Node.js dependencies
5155
run: cd website && npm install
5256

53-
- uses: actions/setup-python@v5
57+
- uses: actions/setup-python@v6
5458
with:
5559
python-version: 3.x
5660

5761
- run: pip install mkdocs
5862
- run: mkdocs build --site-dir ../website/static/doc/ -f docs/mkdocs.yml
5963

64+
- name: Build widget
65+
run: cd website && npm run build:widget
66+
6067
- name: Build with Hugo
6168
env:
6269
# For maximum backward compatibility with Hugo modules
6370
HUGO_ENVIRONMENT: production
6471
HUGO_ENV: production
6572
run: |
6673
wget https://api.transitous.org/gtfs/license.json -O website/data/license.json
67-
cd website && npm run release
74+
cd website && hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
6875
6976
- name: Upload artifact
70-
uses: actions/upload-pages-artifact@v3
77+
uses: actions/upload-pages-artifact@v4
7178
with:
7279
path: ./website/public
7380

.woodpecker/motis-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ steps:
88
build-release-skylake-avx512:
99
image: docker.io/alpine
1010
commands:
11-
- export MOTIS_TAG=v2.8.1
11+
- export MOTIS_TAG=v2.9.1
1212
- apk add musl-dev cmake ninja gcc g++ git pnpm linux-headers
1313
- git clone https://github.com/motis-project/motis -b $MOTIS_TAG motis-src
1414
- mkdir -p motis-src/build
1515
- export flags="-static -O3 -fomit-frame-pointer -flto -DNDEBUG"
1616
- export target_flags="-march=skylake-avx512"
17-
- cmake -DCMAKE_BUILD_TYPE=None -DMOTIS_MIMALLOC=ON -DCMAKE_CXX_FLAGS="$flags" -DCMAKE_C_FLAGS="$flags" -DMOTIS_TARGET_FLAGS="$target_flags" -GNinja -DNO_BUILDCACHE=ON -Bmotis-src/build -Smotis-src
17+
- cmake --compile-no-warning-as-error -DCMAKE_BUILD_TYPE=None -DMOTIS_MIMALLOC=ON -DCMAKE_CXX_FLAGS="$flags" -DCMAKE_C_FLAGS="$flags" -DMOTIS_TARGET_FLAGS="$target_flags" -GNinja -DNO_BUILDCACHE=ON -Bmotis-src/build -Smotis-src
1818
- ninja -C motis-src/build motis motis-test motis-web-ui
1919
- mkdir -p motis-out
2020
- mv motis-src/build/motis motis-out/motis
@@ -30,7 +30,7 @@ steps:
3030
- mkdir -p motis-src/build
3131
- export flags="-static -O3 -fno-omit-frame-pointer -DNDEBUG"
3232
- export target_flags="-march=haswell"
33-
- cmake -DCMAKE_BUILD_TYPE=None -DMOTIS_MIMALLOC=ON -DCMAKE_CXX_FLAGS="$flags" -DCMAKE_C_FLAGS="$flags" -DMOTIS_TARGET_FLAGS="$target_flags" -GNinja -DNO_BUILDCACHE=ON -Bmotis-src/build -Smotis-src
33+
- cmake --compile-no-warning-as-error -DCMAKE_BUILD_TYPE=None -DMOTIS_MIMALLOC=ON -DCMAKE_CXX_FLAGS="$flags" -DCMAKE_C_FLAGS="$flags" -DMOTIS_TARGET_FLAGS="$target_flags" -GNinja -DNO_BUILDCACHE=ON -Bmotis-src/build -Smotis-src
3434
- ninja -C motis-src/build motis motis-test motis-web-ui
3535
- mkdir -p motis-out
3636
- mv motis-src/build/motis motis-out/motis

LICENSES/BSD-2-Clause.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright (c) <year> <owner>
2+
3+
Redistribution and use in source and binary forms, with or
4+
without modification, are permitted provided that the following
5+
conditions are met:
6+
7+
1. Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
10+
2. Redistributions in binary form must reproduce the above
11+
copyright notice, this list of conditions and the following
12+
disclaimer in the documentation and/or other materials provided
13+
with the distribution.
14+
15+
This software is provided by the copyright holders and
16+
contributors "as is" and any express or implied warranties,
17+
including, but not limited to, the implied warranties of
18+
merchantability and fitness for a particular purpose are
19+
disclaimed. In no event shall the copyright holder or
20+
contributors be liable for any direct, indirect, incidental,
21+
special, exemplary, or consequential damages (including, but not
22+
limited to, procurement of substitute goods or services; loss of
23+
use, data, or profits; or business interruption) however caused
24+
and on any theory of liability, whether in contract, strict
25+
liability, or tort (including negligence or otherwise) arising in
26+
any way out of the use of this software, even if advised of the
27+
possibility of such damage.

REUSE.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ SPDX-License-Identifier = "CC0-1.0"
1818
path = "ansible/roles/nginx/files/robots.txt"
1919
SPDX-FileCopyrightText = "none"
2020
SPDX-License-Identifier = "CC0-1.0"
21+
22+
[[annotations]]
23+
path = "ansible/roles/feed-proxy/files/robots.txt"
24+
SPDX-FileCopyrightText = "none"
25+
SPDX-License-Identifier = "CC0-1.0"

ansible/crowd-sourced-realtime.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-FileCopyrightText: 2025 Jonah Brüchert <jbb@kaidan.im>
2+
#
3+
# SPDX-License-Identifier: AGPL-3.0-or-later
4+
5+
- name: Set up MOTIS servers
6+
hosts: crowd-sourced-realtime
7+
roles:
8+
- crowd-sourced-realtime

ansible/feed-proxy.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# SPDX-FileCopyrightText: 2025 Traines <git@traines.eu>
2+
#
3+
# SPDX-License-Identifier: AGPL-3.0-or-later
4+
5+
# ansible-playbook --vault-id feed-proxy@/etc/feed-proxy.vault -e "feed_proxy_host=proxy.example.com" feed-proxy.yml
6+
7+
# get the feed proxy vault pass in roles/feed-proxy/vars/feed-secrets-vault-pass.yml and put it in decrypted form to /etc/feed-proxy.vault
8+
# encrypt a new variable to put into roles/feed-proxy/vars/feed-secrets.yml
9+
# ansible-vault encrypt_string --vault-id feed-proxy@/etc/feed-proxy.vault 'foobar' --name 'Authorization'
10+
11+
- name: Set up feed proxy server
12+
hosts: localhost
13+
roles:
14+
- feed-proxy

ansible/hosts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,9 @@ woodpecker:
113113
30363331323065643861613364303531653565633833346263313334613032613539386430613364
114114
3137363965316563650a356631343130653036613838646331363336643265333662346534343163
115115
33646436316239336363363339386665353532363336636535333139363937373064
116+
117+
crowd-sourced-realtime:
118+
hosts:
119+
crunchy:
120+
ansible_user: root
121+
ansible_host: crunchy.spline.de
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# SPDX-FileCopyrightText: 2025 Jonah Brüchert <jbb@kaidan.im>
2+
#
3+
# SPDX-License-Identifier: AGPL-3.0-or-later
4+
5+
[Unit]
6+
Description=Delay Tracker
7+
After=network.target
8+
9+
[Service]
10+
User=crowd-sourced-realtime
11+
Group=nogroup
12+
Restart=always
13+
ExecStart=/usr/local/bin/delay-tracker
14+
WorkingDirectory=/var/cache/transitous/out/delay-tracker/
15+
16+
[Install]
17+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)