···11FROM rust:bookworm AS builder
22-WORKDIR /usr/src/strong-api-fetch
22+WORKDIR /usr/src/strong-sync-service
33COPY . .
44-RUN cd strong-api-fetch && RUSTFLAGS="-C debuginfo=2" cargo install --path . --debug
44+RUN cd strong-sync-service && RUSTFLAGS="-C debuginfo=2" cargo install --path . --debug
5566FROM debian:bookworm-slim
77ARG VERSION=0.2.1
···1313 curl \
1414 cron
15151616-WORKDIR /usr/strong-api-fetch
1717-COPY --from=builder /usr/local/cargo/bin/strong-api-fetch /usr/bin/strong-api-fetch
1616+WORKDIR /usr/strong-sync-service
1717+COPY --from=builder /usr/local/cargo/bin/strong-sync-service /usr/bin/strong-sync-service
1818COPY .env /.env
1919# will run the cron job every day at 18:00, 18:30, 19:00, 19:30, 20:00, and 20:30
2020-RUN echo "0,30 18-20 * * * root RUST_BACKTRACE=1 RUST_LOG=debug /usr/bin/strong-api-fetch >> /var/log/cron.log 2>&1" > /etc/cron.d/strong-api-fetch
2020+RUN echo "0,30 18-20 * * * root RUST_BACKTRACE=1 RUST_LOG=debug /usr/bin/strong-sync-service >> /var/log/cron.log 2>&1" > /etc/cron.d/strong-sync-service
21212222# Ensure the cron job file has proper permissions
2323-RUN chmod 0644 /etc/cron.d/strong-api-fetch && \
2424- chmod +x /usr/bin/strong-api-fetch
2323+RUN chmod 0644 /etc/cron.d/strong-sync-service && \
2424+ chmod +x /usr/bin/strong-sync-service
25252626# Create the log file so that it exists when cron writes to it
2727RUN touch /var/log/cron.log
+1-1
README.MD
···11-# Strong APP Workout Fetch
11+# Strong App Workout Sync
2233This is a Rust-based service to fetch workouts from the [Strong App](https://www.strong.app/) (available for [Apple](https://apps.apple.com/us/app/strong-workout-tracker-gym-log/id464254577) and [Android](https://play.google.com/store/apps/details?id=io.strongapp.strong)) and store them in a ClickHouse database.
44
···11# Dockerfile
22#
33# Build and run without Docker Compose. You need a ClickHouse server running and accessible from the container.
44-# You should use the docker compose from https://github.com/tolik518/strong-api-workout-fetch additionally to
44+# You should use the docker compose from https://github.com/tolik518/strong-api-workout-sync additionally to
55# have a ClickHouse server running with the workout data.
66#
77# docker build -t heatmap .