-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: allow build bundle inside oba_app
#78
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,21 @@ NAMESPACE_PREFIX="x" | |
NAMESPACE_URI="http://www.springframework.org/schema/beans" | ||
BEAN_ID="testAPIKey" | ||
|
||
# Build bundle inside the container | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This isn't a priority right now, but I noticed that the oba_app docker container has perl 5 installed in it. How would you feel about rewriting the bash script in perl to make it more DRY, and easier to manage and extend? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think would be a good idea to avoid overcomplicating our |
||
if [ -n "$GTFS_URL" ]; then | ||
echo "GTFS_URL is set, building bundle..." | ||
echo "OBA Bundle Builder Starting" | ||
echo "GTFS_URL: $GTFS_URL" | ||
echo "OBA Version: $OBA_VERSION" | ||
mkdir -p /bundle | ||
wget -O /bundle/gtfs.zip "$GTFS_URL" | ||
cd /bundle \ | ||
&& java -Xss4m -Xmx3g \ | ||
-jar /oba/tools/onebusaway-transit-data-federation-builder-${OBA_VERSION}-withAllDependencies.jar \ | ||
./gtfs.zip \ | ||
. | ||
fi | ||
|
||
# For users who want to configure the data-sources.xml file themselves | ||
if [ -n "$USER_CONFIGURED" ]; then | ||
echo "USER_CONFIGURED is set, you should create your own configuration file, Aborting..." | ||
|
@@ -29,6 +44,7 @@ else | |
fi | ||
|
||
DATA_FEDERATION_XML_FILE="$CATALINA_HOME/webapps/onebusaway-transit-data-federation-webapp/WEB-INF/classes/data-sources.xml" | ||
DATA_SOURCE_CLASS="org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeSource" | ||
BEAN_ID="gtfsRT" | ||
# Check if GTFS-Rt related environment variables are set | ||
if [ -z "$TRIP_UPDATES_URL" ] && [ -z "$VEHICLE_POSITIONS_URL" ] && [ -z "$ALERTS_URL" ]; then | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉