Skip to content

Commit d05af0c

Browse files
committed
update docs with instructions how to run python scripts
1 parent e220a70 commit d05af0c

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

docs/source/cli.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,8 @@ Options:
113113
--help Show this message and exit.
114114
115115
```
116+
117+
## Run a script which requires mapswipe_workers library
118+
```
119+
docker-compose run mapswipe_workers python3 python_scripts/add_project_geometries_to_api.py
120+
```

mapswipe_workers/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN mkdir --parents .local/share/mapswipe_workers
1717

1818
# Copy mapswipe workers repo from local repo
1919
COPY mapswipe_workers/ mapswipe_workers/
20-
COPY scripts/ scripts/
20+
COPY python_scripts/ python_scripts/
2121
COPY sample_data/ sample_data/
2222
COPY requirements.txt .
2323
COPY setup.py .

mapswipe_workers/scripts/add_project_geometries_to_api.py renamed to mapswipe_workers/python_scripts/add_project_geometries_to_api.py

File renamed without changes.
File renamed without changes.

mapswipe_workers/scripts/mapswipe_to_hot_tm_project.py renamed to mapswipe_workers/python_scripts/mapswipe_to_hot_tm_project.py

File renamed without changes.

0 commit comments

Comments
 (0)