Last active
August 10, 2021 17:39
-
-
Save mbafford/0c91e7cac4a36d9b297c3c319cca1fc6 to your computer and use it in GitHub Desktop.
ical_to_gcal_sync dockerfile
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
# Quick and dirty docker build for andrewramsay's ical_to_gcal_sync script | |
# - copy a config.py on the host at /path/to/config.py ( https://github.com/andrewramsay/ical_to_gcal_sync/blob/master/config.py ) | |
# - set all paths to be under /opt/config/ in the container | |
# - follow the readme steps from the repository | |
# can run as: | |
# docker run -it --rm --name 'ical_to_gcal_sync' -v /path/to/config.py:/opt/ical_to_gcal_sync/config.py -v /path/to/config/:/opt/config/ ical_to_gcal_sync | |
FROM python:3.8-slim-buster | |
WORKDIR /opt | |
ADD https://github.com/andrewramsay/ical_to_gcal_sync/archive/d37b83d53c068daeef0304904346a3f4ee02563b.tar.gz /opt/ | |
WORKDIR /opt/ical_to_gcal_sync/ | |
RUN tar --strip-components=1 -zxvf /opt/d37b83d53c068daeef0304904346a3f4ee02563b.tar.gz | |
RUN pip install -r requirements.txt | |
ENTRYPOINT ["python3", "/opt/ical_to_gcal_sync/ical_to_gcal_sync.py"] |
Good to hear it's useful for you! I've updated the requests version to 2.26.0 in requirements.txt now, forgot to check for problems after bumping urllib3 previously.
👍 I've updated the dockerfile to account for that and locking to the latest commit:
https://github.com/andrewramsay/ical_to_gcal_sync/tree/d37b83d53c068daeef0304904346a3f4ee02563b
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@andrewramsay - thanks for the sync script - it works great!
https://github.com/andrewramsay/ical_to_gcal_sync