Skip to content

Latest commit

 

History

History
70 lines (53 loc) · 1.75 KB

README.md

File metadata and controls

70 lines (53 loc) · 1.75 KB

GTFS-RT for Python

ディレクトリ構成

├── Dockerfile          :Dockerのイメージに関する設定
├── Makefile            :makeコマンドの設定
├── README.md           :はじめに読むドキュメント
├── docker-compose.yml  :Dockerのイメージに関する設定
├── gtfs_rt_pb2.py      :GTFS-RTの設定(Pythonに翻訳後)
└── main.py             :メインファイル

環境構築

.env.sample ファイルから .envファイルを作成しパラメータを設定する

# 環境設定ファイルを複製
$ cp .env.sample .env

② 下記コマンドを実行し環境構築

# 環境構築コマンド(docker-compose build)
$ make build

③ 下記コマンドを実行しコンテナを起動

# 環境構築コマンド(docker-compose up -d)
$ make up

④ 下記コマンドを実行しコンテナに入る

# 環境構築コマンド(docker-compose exec python3 bash)
$ make exec

⑤ 下記コマンドを実行しpython実行

# 環境構築コマンド(python3 main.py)
$ make gtfs

コマンド一覧

# ビルド
$ make build
# コンテナ起動
$ make up
# コンテナ内でコマンド実行
$ make exec
# GTFS-RTのファイル実行
$ make gtfs

参考資料