Skip to content

Commit 3987743

Browse files
authored
Merge pull request #38 from MerginMaps/update-google-drive-guide
Refine Google Drive docs
2 parents 464f96e + 0380a56 commit 3987743

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

Dockerfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
FROM python:3.11-slim-buster
2-
MAINTAINER Martin Dobias "martin.dobias@lutraconsulting.co.uk"
2+
# LABEL instead of MAINTAINER (fixes deprecation warning)
3+
LABEL maintainer="Martin Dobias <martin.dobias@lutraconsulting.co.uk>"
34

4-
# to fix issue with mod_spatialite.so
5-
RUN apt-get update && apt-get install -y libsqlite3-mod-spatialite && rm -rf /var/lib/apt/lists/*
5+
# to fix issue with mod_spatialite.so and pygeodiff building
6+
RUN apt-get update && \
7+
apt-get install -y libsqlite3-mod-spatialite build-essential cmake libsqlite3-dev && \
8+
rm -rf /var/lib/apt/lists/*
69

7-
# istall dependencies via pipenv system-wide
10+
# install dependencies via pipenv system-wide
811
RUN pip3 install --upgrade pip
912
RUN pip3 install pipenv
1013
COPY Pipfile Pipfile.lock ./
@@ -15,4 +18,4 @@ WORKDIR /mergin-media-sync
1518
COPY version.py config.py drivers.py media_sync.py media_sync_daemon.py ./
1619

1720
# create deafult config file (can be overridden with env variables)
18-
COPY config.yaml.default ./config.yaml
21+
COPY config.yaml.default ./config.yaml

docs/google-drive-setup.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ To set up Google Drive for use with the Google Drive API, follow these steps. Th
1111
- In the top left corner, you should see the name of your project, or click on `Select a project` and select the project you just created.
1212

1313
3. **Enable Google Drive API**:
14-
- In the left menu, click on `APIs & Services` and then `Dashboard`.
14+
- In the left menu, click on `APIs & Services`.
1515
- Click on `Enable APIs and Services`.
1616
- Search for `Google Drive API`, click on it, and then click `Enable`.
1717

1818
4. **Create a Service Account**:
1919
- On the left side of the screen, click on `Credentials`.
20-
- Click on `Manage service accounts` and then `Create Service Account`.
20+
- Click on `Create credentials` and then on `Service account`.
2121
- Specify the name, account ID, and description, and click `Done`.
22-
- Click on the created credentials, select the `Keys` page, and then create a new key using `Add Key`.
22+
- Click on the created credentials, select the `Keys` page, and then create a new key using `Add Key` and then `Create new key`.
2323
- In the following dialog, select `JSON` and click `Create`. The key will be downloaded to your computer (store it safely, as it cannot be redownloaded). In case of a lost key, you can delete it and create a new one.
2424

2525
The downloaded JSON file contains all the necessary information to authenticate with the Google Drive API. Provide this file to the media sync tool as the path to the file:
@@ -44,4 +44,4 @@ google_drive:
4444
share_with: [email1@example.com, email2@example.com]
4545
```
4646

47-
This creates a `folder` in Google Drive under the `Service account`, accessible only by this specific user. To make it available to other users, use the `share_with` setting. The folder will be shared with all the email addresses specified in the list (the emails need to be Google Emails - business or free). Every user will have the same access rights as the user who created the folder and can create and delete files in the folder. For users with whom the folder is shared, it will be listed in their Google Drive under the `Shared with me` section.
47+
This creates a `folder` in Google Drive under the `Service account`, accessible only by this specific user. To make it available to other users, use the `share_with` setting. The folder will be shared with all the email addresses specified in the list (the emails need to be Google Emails - business or free). Every user will have the same access rights as the user who created the folder and can create and delete files in the folder. For users with whom the folder is shared, it will be listed in their Google Drive under the `Shared with me` section.

0 commit comments

Comments
 (0)