2022-03-23 12:54:09 +01:00
|
|
|
# Deploy Static-gtfs-manager
|
|
|
|
|
|
|
|
# Overview
|
|
|
|
|
2022-03-23 13:00:45 +01:00
|
|
|
The [static-gtfs-manager](https://github.com/WRI-Cities/static-GTFS-manager) project is to be deployed.
|
2022-03-23 12:54:09 +01:00
|
|
|
|
|
|
|
# Preparation
|
|
|
|
|
|
|
|
Make sure [docker](docker.md) is installed in development environment and on deployment host.
|
|
|
|
|
|
|
|
Build image in development environment.
|
|
|
|
```
|
|
|
|
cd
|
|
|
|
git clone git@github.com:WRI-Cities/static-GTFS-manager.git
|
|
|
|
cd static-GTFS-manager
|
|
|
|
docker build -t static-gtfs-manager .
|
|
|
|
docker images
|
2022-03-23 13:00:45 +01:00
|
|
|
docker tag static-gtfs-manager:latest <user>/static-gtfs-manager:<tag>
|
2022-03-23 12:54:09 +01:00
|
|
|
docker images
|
2022-03-23 13:00:45 +01:00
|
|
|
docker login -u <user>
|
|
|
|
docker push <user>/static-gtfs-manager:<tag>
|
2022-03-23 12:54:09 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
# Deployment
|
2022-06-05 08:30:32 +02:00
|
|
|
|
|
|
|
Refer to
|
|
|
|
[issue](https://github.com/WRI-Cities/static-GTFS-manager/issues/165)
|
|
|
|
for a discussion about why it is not possible to run a Docker image that is pulled from a Docker repository on a Server.
|
|
|
|
|
|
|
|
Call the following instruction set to build and run locally.
|
|
|
|
|
|
|
|
```
|
|
|
|
cd
|
|
|
|
git clone git@github.com:WRI-Cities/static-GTFS-manager.git
|
|
|
|
cd static-GTFS-manager
|
|
|
|
docker build -t static-gtfs-manager .
|
|
|
|
docker run --rm -it -p 5000:5000 -v "$(pwd)":/app static-gtfs-manager
|
|
|
|
```
|