Skip to content

Instantly share code, notes, and snippets.

@mbafford
Last active August 10, 2021 17:39
Show Gist options
  • Save mbafford/0c91e7cac4a36d9b297c3c319cca1fc6 to your computer and use it in GitHub Desktop.
Save mbafford/0c91e7cac4a36d9b297c3c319cca1fc6 to your computer and use it in GitHub Desktop.
ical_to_gcal_sync dockerfile
# 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"]
@mbafford
Copy link
Author

mbafford commented Aug 10, 2021

@andrewramsay - thanks for the sync script - it works great!

https://github.com/andrewramsay/ical_to_gcal_sync

@andrewramsay
Copy link

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.

@mbafford
Copy link
Author

👍 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