Skip to content

Commit a2d957d

Browse files
committed
Add Dockerfile and Update README
1 parent cf5fa50 commit a2d957d

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

Dockerfile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM rcdeoliveira/gkeepapi
2+
# Set the working directory to home folder
3+
WORKDIR /home
4+
# Copy necessary files into the container
5+
COPY config.ini gkeep2notion.py requirements.txt /home/
6+
# Set the entry point to bash
7+
CMD ["bash"]

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,21 @@ chmod +x gkeep2notion.py
2727

2828
### Preventing "Authentication failed" on some systems
2929

30+
____
31+
#### Running inside of a Docker Container
32+
In order to use the `gkeepapi` dependency, you'll need to run it inside of a docker container that is compatible with it. Otherwise you'll most likely run into an "Authentication failed" error.
33+
34+
1. Build the Docker Image
35+
```
36+
docker build -t gkeep2notion_image .
37+
```
38+
2. Run the Docker Container
39+
```
40+
docker run -it --name gkeep2notion_container gkeep2notion_image /bin/bash
41+
```
42+
3. Now you should be inside the container and the rest of the guide should work
43+
____
44+
3045
On some systems the authentication fails even with valid credentials. This may happen because of three reasons:
3146
1. You have enabled 2FA on your account
3247
2. Google issues a CAPTCHA for your IP address

0 commit comments

Comments
 (0)