Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

CUTR-at-USF/transi-gtfsrt-archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archive PB Job

Program Type:

Batch Job

Execution Frequency:

Weekly

Program Description

This job creates weekly tar.gz archives from a directory of .pb files. Current week is excluded from this operation.

The program can be run independently from other services or dependent on the Data API Service to retrieve timezone and dataset name information.

Program Execution (API Dependent)

docker run --rm --network=my_network -e "API_URL=http://basic_api" -e "DATASET=hart" -v /transi/data/pb/hart:/usr/src/app/pb -v /transi/data/tar/hart:/usr/src/app/tar registry.gitlab.com/cutr-at-usf/transi/core/archive-pb

Execution Parameters

API_URL: URL used to access the Data API Service on docker network

DATASET: Dataset configuration name as specified in config.json for the Data API service

PATH_PB (optional): Path for source folder. Default path is /usr/src/app/pb. Regardless of using this parameter or not, you most mount this path.

PATH_TAR (optional): Path for target folder. Default path is /usr/src/app/tar. Regardless of using this parameter or not, you most mount this path.

Program Execution (Independent Runtime)

docker run --rm -e "DATA_NAME=HART" -e "TIMEZONE=America/New_York" -v /transi/data/pb/hart:/usr/src/app/pb -v /transi/data/tar/hart:/usr/src/app/tar registry.gitlab.com/cutr-at-usf/transi/core/archive-pb

Execution Parameters

DATA_NAME: Dataset Name. Used as tar.gz file prefix.

TIMEZONE: Used to accurately place PB files into the correct archive.

PATH_PB (optional): Path for source folder. Default path is /usr/src/app/pb. Regardless of using this parameter or not, you most mount this path.

PATH_TAR (optional): Path for target folder. Default path is /usr/src/app/tar. Regardless of using this parameter or not, you most mount this path.

Please refer to getting started project for more information about the system

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published