-
Notifications
You must be signed in to change notification settings - Fork 23
Skip tables #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Skip tables #70
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
37ee2d5
add option to exclude tables from sync (fix #62)
alexbruy 1983c35
fix check for skipped tables
alexbruy 7ce2798
add dockerfile for building test container
alexbruy d17f49c
add requirements.txt
alexbruy 1057398
move parsing of ignored tables to config
alexbruy 7aec290
adapt to API change in geodiff
alexbruy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| mergin-client==0.7.3 | ||
| dynaconf>=3.1 |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| FROM ubuntu:20.04 | ||
| MAINTAINER Martin Dobias "martin.dobias@lutraconsulting.co.uk" | ||
|
|
||
| # this is to do choice of timezone upfront, because when "tzdata" package gets installed, | ||
| # it comes up with interactive command line prompt when package is being set up | ||
| ENV TZ=Europe/London | ||
| RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
|
||
| RUN apt-get update && apt-get install -y \ | ||
| cmake \ | ||
| git \ | ||
| libpq-dev \ | ||
| libsqlite3-dev \ | ||
| python3-pip \ | ||
| python3-psycopg2 \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Python Mergin client | ||
| RUN python3 -m pip install --upgrade pip | ||
| RUN pip3 install dynaconf==3.1.7 | ||
| RUN pip3 install scikit-build wheel cmake | ||
|
|
||
| # geodiff (version >= 1.0.0 is needed with PostgreSQL support - we have to compile it) | ||
| RUN git clone --branch skip-tables https://github.com/merginmaps/geodiff.git | ||
| RUN cd geodiff && mkdir build && cd build && \ | ||
| cmake -DWITH_POSTGRESQL=TRUE ../geodiff && \ | ||
| make | ||
|
|
||
| # build pygeodiff | ||
| RUN cd geodiff && python3 setup.py build && python3 setup.py install | ||
|
|
||
| # build mergin python client | ||
| RUN git clone --branch skip-tables https://github.com/merginmaps/mergin-py-client.git | ||
| RUN cd mergin-py-client && python3 setup.py build && python3 setup.py install | ||
|
|
||
| # DB sync code | ||
| WORKDIR /mergin-db-sync | ||
| COPY version.py . | ||
| COPY config.py . | ||
| COPY dbsync.py . | ||
| COPY dbsync_daemon.py . | ||
|
|
||
| # base DB sync config file (the rest is configured with env variables) | ||
| COPY config-dockerfile.yaml ./config.yaml |
This file contains hidden or 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
This file contains hidden or 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
Binary file not shown.
Binary file not shown.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just small note: does it work with some fancy tables names like
123MyAwesomeTable?