diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3975e3bf..5a58d3d5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,10 @@ All notable changes to thoth will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [[0.2.2]](https://github.com/thoth-pub/thoth/releases/tag/v0.2.2) - 2020-11-03
+### Changed
+ - Set `THOTH_API` on build via docker
+
## [[0.2.1]](https://github.com/thoth-pub/thoth/releases/tag/v0.2.1) - 2020-11-02
### Changed
- Redirect to relevant routes upon save and create actions in APP
diff --git a/Cargo.lock b/Cargo.lock
index 672f4534..79c9a8b0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3284,7 +3284,7 @@ dependencies = [
[[package]]
name = "thoth"
-version = "0.2.1"
+version = "0.2.2"
dependencies = [
"actix-cors 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
"actix-http 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -3303,8 +3303,8 @@ dependencies = [
"serde 1.0.115 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_derive 1.0.115 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_json 1.0.57 (registry+https://github.com/rust-lang/crates.io-index)",
- "thoth-api 0.2.1",
- "thoth-client 0.2.1",
+ "thoth-api 0.2.2",
+ "thoth-client 0.2.2",
"tokio 0.2.22 (registry+https://github.com/rust-lang/crates.io-index)",
"uuid 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)",
"xml-rs 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -3312,7 +3312,7 @@ dependencies = [
[[package]]
name = "thoth-api"
-version = "0.2.1"
+version = "0.2.2"
dependencies = [
"actix-web 3.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"argon2rs 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -3340,14 +3340,14 @@ dependencies = [
[[package]]
name = "thoth-app"
-version = "0.2.1"
+version = "0.2.2"
dependencies = [
"anyhow 1.0.32 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.115 (registry+https://github.com/rust-lang/crates.io-index)",
"stdweb 0.4.20 (registry+https://github.com/rust-lang/crates.io-index)",
"thiserror 1.0.20 (registry+https://github.com/rust-lang/crates.io-index)",
- "thoth-api 0.2.1",
+ "thoth-api 0.2.2",
"url 2.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"wasm-bindgen 0.2.67 (registry+https://github.com/rust-lang/crates.io-index)",
"wasm-logger 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -3359,13 +3359,13 @@ dependencies = [
[[package]]
name = "thoth-client"
-version = "0.2.1"
+version = "0.2.2"
dependencies = [
"chrono 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)",
"graphql_client 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
"reqwest 0.10.3 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.115 (registry+https://github.com/rust-lang/crates.io-index)",
- "thoth-api 0.2.1",
+ "thoth-api 0.2.2",
"uuid 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)",
]
diff --git a/Cargo.toml b/Cargo.toml
index 8dcb1c75..f3a007c9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "thoth"
-version = "0.2.1"
+version = "0.2.2"
authors = ["Javier Arias
-
+
@@ -69,6 +69,14 @@ wasm-pack build thoth-app/ --target web \
&& cargo run start app
```
+### Building with docker
+
+The wasm APP needs to know the endpoint the API will be running at compile time, we must provide `THOTH_API` as a build argument to the docker daemon upon build:
+
+```
+docker build --build-arg THOTH_API=https://api.thoth.openbookpublishers.com . -t openbookpublishers/thoth
+```
+
## Acknowledgements
Thoth is being developed as part of the [COPIM](https://www.copim.ac.uk) project, an international effort to build community-owned, open systems and infrastructures to enable Open Access book publishing to flourish. COPIM is funded by the [Research England Development Fund](https://re.ukri.org/funding/our-funds-overview/research-england-development-red-fund/) (REDFund) and [Arcadia](https://www.arcadiafund.org.uk/).
diff --git a/thoth-api/Cargo.toml b/thoth-api/Cargo.toml
index 2ff0e2d9..0321aea5 100644
--- a/thoth-api/Cargo.toml
+++ b/thoth-api/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "thoth-api"
-version = "0.2.1"
+version = "0.2.2"
authors = ["Javier Arias
-
+
{ "GraphiQL" }
diff --git a/thoth-client/Cargo.toml b/thoth-client/Cargo.toml
index 36a39087..0da775af 100644
--- a/thoth-client/Cargo.toml
+++ b/thoth-client/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "thoth-client"
-version = "0.2.1"
+version = "0.2.2"
authors = ["Javier Arias