Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Swaggeroo committed Jan 7, 2024
1 parent c24902f commit 6902391
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM python:3.10
FROM python:3.10-alpine
LABEL authors="Swaggeroo"

WORKDIR /usr/src/app

# install dependencies from requirements.txt
COPY src/app.py .
COPY requirements.txt .

RUN mkdir ./data

RUN pip install python-bring-api gkeepapi gpsoauth==1.0.2 urllib3==1.25.1 schedule
RUN pip install python-bring-api gkeepapi schedule
RUN pip install gpsoauth==1.0.2 urllib3==1.25.1

# start app
CMD [ "python", "./app.py" ]
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ You need to provide the following environment variables:
| 2 | Google master. Changes in Google Keep will be reflected in Bring. Bring changes will be ignored. |

### Please note
- **!!Important!!** I couldn't get the Google Auth work in the container. Therefore I first ran the script locally and copied the token.txt file to the container. YES you need not matching dependencies (At least I needed). You probably need to install them manually. If you know how to fix this, please let me know.
- The token.txt file is used to store the Google Auth token. It is created automatically. You can delete it at any time to force a new login. Keep it safe as it can be used to access your Google account.
- I didn't tested expiration of the token yet. If it expires, the script will probably crash. At the next run it should delete the token.txt and crash again. After that it should work again. With docker this should be no problem as the container will be restarted automatically.
- At first run the script will take the keep and bring lists and merge them (Only with SYNC_MODE 0). After that it will only sync changes.

0 comments on commit 6902391

Please sign in to comment.