-
Notifications
You must be signed in to change notification settings - Fork 60
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
777a356
commit c8e6a5a
Showing
4 changed files
with
51 additions
and
7 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,21 @@ | ||
# SPDX-FileCopyrightText: 2024 Jonah Brüchert <[email protected]> | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
name: Import data | ||
|
||
on: [push, workflow_dispatch] | ||
|
||
jobs: | ||
import: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Fetch submodules | ||
run: git submodule update --init --checkout --remote | ||
- name: Build docker images | ||
run: docker build -t transitous . -f ci/container/Containerfile | ||
- name: Fetch GTFS-Feeds | ||
run: docker run -v $PWD:/transitous -w /transitous transitous ci/fetch-feeds.py timer | ||
- name: Generate MOTIS config file | ||
run: docker run --env PYTHONPATH=src -v $PWD:/transitous -w /transitous transitous ci/generate-motis-config.py |
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 @@ | ||
# SPDX-FileCopyrightText: 2024 Jonah Brüchert <[email protected]> | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
name: Verfy new data can be imported | ||
|
||
on: [pull-request] | ||
|
||
jobs: | ||
import: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Fetch submodules | ||
run: git submodule update --init --checkout --remote | ||
- name: Build docker images | ||
run: docker build -t transitous . -f ci/container/Containerfile | ||
- name: Verify that new feeds can be downloaded | ||
run: docker run -v $PWD:/transitous -w /transitous transitous ci/fetch-feeds.py merge-request |
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,9 +1,9 @@ | ||
# SPDX-FileCopyrightText: 2024 Jonah Brüchert <[email protected]> | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
FROM docker.io/debian:bookworm-slim | ||
|
||
RUN apt-get update && apt-get install git python3-requests golang -y && apt clean | ||
RUN apt-get update && apt-get install git python3-requests python3-jinja2 golang -y && apt clean | ||
|
||
ADD https://github.com/motis-project/motis/releases/download/v0.11.18/motis-linux-amd64.tar.bz2 /opt/ | ||
RUN GOBIN=/usr/local/bin/ go install github.com/patrickbr/gtfstidy@latest | ||
|
||
RUN adduser motis | ||
USER motis |
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