Skip to content

Automatic container image build - #4168

Merged
leonardehrenfried merged 13 commits into
dev-2.xfrom
container-image
May 24, 2022
Merged

leonardehrenfried merged 13 commits into
dev-2.xfrom
container-image

Conversation

@leonardehrenfried

@leonardehrenfried leonardehrenfried commented May 20, 2022 •

Copy link
Copy Markdown
Member

Summary

This integrates a docker image build and push to Dockerhub to the CI pipeline.

Until I have figured out access to the opentripplanner org on Dockerhub I'm deploying to my personal account. I'm working with @abyrd to figure it out.

If you want to test it already, you can use the tutorial.

# create directory for data and config
mkdir berlin
# download OSM
curl -L https://download.geofabrik.de/europe/germany/berlin-latest.osm.pbf -o berlin/osm.pbf  
# download GTFS
curl -L https://vbb.de/vbbgtfs -o berlin/vbb-gtfs.zip
# build graph and save it onto the host system via the volume
docker run --rm -v ./berlin:/var/opentripplanner docker.io/opentripplanner/opentripplanner:latest --build --save
# load and serve graph
docker run -it --rm -p 8080:8080 -v ./berlin:/var/opentripplanner docker.io/opentripplanner/opentripplanner:latest --load --serve

@optionsome @tvainika @jannefleischer Do you want to try this out?

Closes #3291

Documentation

Page added.

@leonardehrenfried
leonardehrenfried requested a review from a team as a code owner May 20, 2022 09:26
@leonardehrenfried leonardehrenfried added the !New Feature A functional feature targeting the end user. label May 20, 2022
@leonardehrenfried

Copy link
Copy Markdown
Member Author

Is you can see on https://hub.docker.com/r/opentripplanner/opentripplanner/tags I have received the correct permissions for the user otpbot to push to Dockerhub.

This is now ready for review.

Comment thread docs/Container-Image.md Outdated
Co-authored-by: Hannes Junnila <hannes.junnila@gmail.com>
@leonardehrenfried
leonardehrenfried merged commit 4962059 into dev-2.x May 24, 2022
@leonardehrenfried
leonardehrenfried deleted the container-image branch May 24, 2022 08:42
t2gran pushed a commit that referenced this pull request May 24, 2022
t2gran pushed a commit to entur/OpenTripPlanner-LegacyHSLFork that referenced this pull request May 24, 2022
@t2gran t2gran added this to the 2.2 milestone Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

!New Feature A functional feature targeting the end user.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants