-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docker-compose.yaml for easy use.
- Loading branch information
Showing
4 changed files
with
43 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
# Refer to the README or `create_poster -h` for details on the below options | ||
|
||
TYPE="grid" | ||
TITLE="Running" | ||
YEAR="2017" | ||
ATHLETE="Your name here" | ||
UNITS="imperial" | ||
YEAR="2024" | ||
ATHLETE="John Doe" | ||
UNITS="metric" | ||
EXTRA_OPTIONS= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,8 @@ sdist | |
.mypy_cache | ||
|
||
# Project specific | ||
gpx_dir/* | ||
.env | ||
gpx/* | ||
output/* | ||
data | ||
*.svg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
app: | ||
build: . | ||
env_file: | ||
- .env | ||
command: /usr/src/app/create_poster.py --type grid --gpx-dir /usr/src/app/gpx_dir --year $YEAR --title $TITLE --athlete $ATHLETE --units $UNITS $EXTRA_OPTIONS --output /usr/src/app/output/output.svg | ||
volumes: | ||
- ./output:/usr/src/app/output | ||
- ./gpx_dir:/usr/src/app/gpx_dir | ||
name: gpxtrackposter | ||
|
||
services: | ||
create: | ||
build: ./ | ||
image: gpxtrackposter:latest | ||
restart: "no" | ||
env_file: | ||
- .env | ||
command: "/usr/local/bin/create_poster \ | ||
--type ${TYPE:-'grid'} \ | ||
--title ${TITLE:-'Running'} \ | ||
--year ${YEAR:-'2024'} \ | ||
--athlete ${ATHLETE:-'John Doe'} \ | ||
--units ${UNITS:-'metric'} \ | ||
--gpx-dir /usr/src/app/gpx \ | ||
${EXTRA_OPTIONS:-'--verbose'} \ | ||
--output /usr/src/app/output/output.svg" | ||
volumes: | ||
- ./output:/usr/src/app/output | ||
- ./gpx:/usr/src/app/gpx |