Skip to content

Commit

Permalink
First draft of Dockerfile overhaul.
Browse files Browse the repository at this point in the history
  • Loading branch information
thorian93 authored and flopp committed Jun 2, 2024
1 parent 07e43ad commit 76a7f6f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
20 changes: 17 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ FROM python:3

WORKDIR /usr/src/app
COPY requirements.txt ./
COPY src ./src
COPY create_poster.py ./
RUN pip install --no-cache-dir -r requirements.txt
COPY ./ /usr/src/app/

RUN pip install --upgrade pip wheel && \
pip install --upgrade -r requirements.txt && \
pip install .

RUN \
rm -rf /usr/src/app/.git* && \
rm -rf /usr/src/app/examples && \
rm -rf /usr/src/app/venv

RUN apt-get purge -y \
make \
gcc &&\
apt-get autoremove -y && \
apt-get autoclean -y && \
apt-get clean all
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ Create a visually appealing poster from your GPX tracks - heavily inspired by ht
7. Run `create_poster` (see above)
8. Deactivate virtualenv: `deactivate`

### Container
There is a Dockerfile in this repository, which you can use to run this software.
1. Build the container: `podman build -f Dockerfile -t gpxtrackposter:latest`
2. Run the container to build your poster: `podman run --rm -v /my/gpx/files:/gpx --name gpxtrackposter localhost/gpxtrackposter:latest create_poster --gpx-dir /gpx --output /gpx/poster.svg`

## Usage
First of all, you need directory with a bunch of GPX files (e.g. you can export all your tracks from Garmin Connect with the excellent tool [garmin-connect-export](https://github.com/kjkjava/garmin-connect-export), or use [StravaExportToGPX](https://github.com/flopp/StravaExportToGPX), or use [runtastic](https://github.com/yihong0618/Runtastic), or use [nrc-exporter](https://github.com/yasoob/nrc-exporter) to convert the activities in a Strava or Runtastic or `Nike Run Club` export zip file to GPX or GPX files).

Expand Down

0 comments on commit 76a7f6f

Please sign in to comment.