From acb6f0208c3d177092f8cff4807da4330a93b6c4 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Thu, 16 Nov 2023 21:25:30 +0100 Subject: Release v0.01 --- Changelog | 5 +++ Dockerfile | 23 ++++++++++++++ bin/hafas | 4 +-- lib/Travel/Routing/DE/HAFAS.pm | 2 +- lib/Travel/Routing/DE/HAFAS/Connection.pm | 2 +- lib/Travel/Routing/DE/HAFAS/Connection/Section.pm | 3 +- lib/Travel/Routing/DE/HAFAS/Location.pm | 2 +- scripts/makedeb-docker | 13 ++++++++ scripts/makedeb-docker-helper | 37 +++++++++++++++++++++++ 9 files changed, 84 insertions(+), 7 deletions(-) create mode 100644 Changelog create mode 100644 Dockerfile create mode 100755 scripts/makedeb-docker create mode 100755 scripts/makedeb-docker-helper diff --git a/Changelog b/Changelog new file mode 100644 index 0000000..b2546d7 --- /dev/null +++ b/Changelog @@ -0,0 +1,5 @@ +Travel::Routing::DE::HAFAS 0.01 - Thu Nov 16 2023 + + * Initial release + * Supports itinerary queries using Deutschen Bahn's mgate.exe interface + * No stable API yet diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1002fec --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM perl:5.30-slim + +COPY bin/ /app/bin/ +COPY lib/ /app/lib/ +COPY Build.PL cpanfile* /app/ + +WORKDIR /app + +ARG DEBIAN_FRONTEND=noninteractive +ARG APT_LISTCHANGES_FRONTEND=none + +RUN apt-get update \ + && apt-get -y --no-install-recommends install ca-certificates curl gcc libc6-dev libssl1.1 libssl-dev make zlib1g-dev \ + && cpanm -n --no-man-pages --installdeps . \ + && perl Build.PL \ + && perl Build \ + && rm -rf ~/.cpanm \ + && apt-get -y purge curl gcc libc6-dev libssl-dev make zlib1g-dev \ + && apt-get -y autoremove \ + && apt-get -y clean \ + && rm -rf /var/cache/apt/* /var/lib/apt/lists/* + +ENTRYPOINT ["perl", "-Ilib", "bin/hafas"] diff --git a/bin/hafas b/bin/hafas index 5fdf34d..bc31857 100755 --- a/bin/hafas +++ b/bin/hafas @@ -3,7 +3,7 @@ use strict; use warnings; use 5.014; -our $VERSION = '0.00'; +our $VERSION = '0.01'; use utf8; use DateTime; @@ -384,7 +384,7 @@ B [B<-d> I] [B<-t> I