Skip to content
Snippets Groups Projects
Commit 797f9f76 authored by nimrod's avatar nimrod
Browse files

Updates galore.

- Common pre-commit checks.
- GitLab CI.
- Update to Debian Buster.
- Address a few issues from pre-commit.
- Set Compose project name.
- Update README.
parent 11d850aa
No related branches found
No related tags found
No related merge requests found
Pipeline #624 passed
.env 0 → 100644
COMPOSE_PROJECT_NAME=syncevolution
---
include:
- project: shore/ci-templates
file: templates/pre-commit.yml
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v3.4.0
hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: trailing-whitespace
- repo: https://github.com/Yelp/detect-secrets
rev: v0.14.3
hooks:
- id: detect-secrets
- repo: https://github.com/adrienverge/yamllint
rev: v1.25.0
hooks:
- id: yamllint
- repo: https://github.com/executablebooks/mdformat.git
rev: 0.5.3
hooks:
- id: mdformat
- repo: https://git.shore.co.il/nimrod/shell-pre-commit.git
rev: v0.6.0
hooks:
- id: shell-lint
- repo: https://github.com/shellcheck-py/shellcheck-py.git
rev: v0.7.1.1
hooks:
- id: shellcheck
- repo: https://git.shore.co.il/nimrod/docker-pre-commit.git/
rev: v0.3.0
hooks:
- id: hadolint
- id: docker-compose
FROM ubuntu:xenial
ENV DEBIAN_FRONTEND noninteractive
FROM debian:buster-slim
# hadolint ignore=DL3008
RUN apt-get update && \
apt-get install -y syncevolution-http syncevolution && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
mkdir /syncevolution
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
syncevolution-http \
syncevolution \
&& \
rm -rf /tmp/* /var/tmp/* /var/cache/apt/archives/* /var/lib/apt/lists/* && \
install -d -m 777 /syncevolution
VOLUME /syncevolution
COPY entrypoint.sh /entrypoint.sh
EXPOSE 9000
......
# SyncEvolution Docker
[![pipeline status](https://git.shore.co.il/nimrod/syncevolution-docker/badges/master/pipeline.svg)](https://git.shore.co.il/nimrod/syncevolution-docker/-/commits/master)
SyncML over HTTP using SyncEvolution and Docker.
## On the server
Edit the IMEI variable inside the `docker-compose.yml` and run `docker-compose
up`.
Edit the IMEI variable inside the `docker-compose.yml` and run
`docker-compose up`.
## On the phone
......@@ -17,7 +19,6 @@ Notes remote database: `memo`
For more information visit <https://syncevolution.org/wiki/http-server-howto>.
# License
This software is licensed under the MIT license (see the `LICENSE.txt` file).
......@@ -26,5 +27,5 @@ This software is licensed under the MIT license (see the `LICENSE.txt` file).
Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my
[website](https://www.shore.co.il/). Patches are welcome via
[git send-email](http://git-scm.com/book/en/v2/Git-Commands-Email). The
repository is located at: <https://git.shore.co.il/explore/>.
[`git send-email`](http://git-scm.com/book/en/v2/Git-Commands-Email). The repository
is located at: <https://git.shore.co.il/explore/>.
---
version: '3.7'
services:
syncevolution:
build: ./
build:
context: ./
environment:
IMEI: "352724041305912"
ports:
- 9000:9000
volumes:
- ./syncevolution:/syncevolution
- $PWD/syncevolution:/syncevolution
......@@ -4,7 +4,7 @@ syncevolution --configure \
--template default \
--sync-property syncURL= \
--sync-property peerIsClient=1 \
--sync-property remoteDeviceId=IMEI:$IMEI \
--sync-property "remoteDeviceId=IMEI:$IMEI" \
--sync-property preventSlowSync=False \
--source-property uri= \
--source-property sync=none cellphone
......@@ -31,4 +31,4 @@ syncevolution --configure \
syncevolution --configure \
--source-property sync=slow \
cellphone addressbook calendar todo memo calendar+todo
eval exec $@
eval exec "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment