@@ -17,7 +17,7 @@ for more on how to use this project.
1717
1818## Repository Guide
1919
20- The repository is comprised of three crates:
20+ The repository is comprised of four crates:
2121
2222 - ` taskchampion-sync-server-core ` implements the core of the protocol
2323 - ` taskchampion-sync-server-storage-sqlite ` implements an SQLite backend for the core
@@ -60,16 +60,34 @@ cargo build --release
6060After build the binary is located in
6161` target/release/taskchampion-sync-server ` .
6262
63- ### Building the Container
63+ #### Building the Postgres backend
6464
65- To build the container, execute the following commands.
65+ The storage backend is controlled by Cargo features ` postres ` and ` sqlite ` .
66+ By default, only the ` sqlite ` feature is enabled.
67+ To enable building the Postgres backend, add ` --features postgres ` .
68+ The Postgres binary is located in
69+ ` target/release/taskchampion-sync-server-postgres ` .
6670
71+ ### Building the Docker Images
72+
73+ To build the images, execute the following commands.
74+
75+ SQLite:
76+ ``` sh
77+ source .env
78+ docker build \
79+ --build-arg RUST_VERSION=${RUST_VERSION} \
80+ --build-arg ALPINE_VERSION=${ALPINE_VERSION} \
81+ -t taskchampion-sync-server docker/sqlite
82+ ```
83+
84+ Postgres:
6785``` sh
6886source .env
6987docker build \
7088 --build-arg RUST_VERSION=${RUST_VERSION} \
7189 --build-arg ALPINE_VERSION=${ALPINE_VERSION} \
72- -t taskchampion-sync-server .
90+ -t taskchampion-sync-server-postgres docker/postgres
7391```
7492
7593Now to run it, simply exec.
0 commit comments