setup/doc/static-gtfs-manager.md

39 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

# Deploy Static-gtfs-manager
# Overview
The [static-gtfs-manager](https://github.com/WRI-Cities/static-GTFS-manager) project is to be deployed.
# 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
docker tag static-gtfs-manager:latest <user>/static-gtfs-manager:<tag>
docker images
docker login -u <user>
docker push <user>/static-gtfs-manager:<tag>
```
# 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
```