aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2020-11-25 18:27:58 +0100
committerFlorian Dold <florian@dold.me>2020-11-25 18:27:58 +0100
commitf2bbe872cf9e668045bca8f8df604d4298f4f475 (patch)
tree02272b157a928116e7efbe3cf17eb1499aa0bd92 /README
parentf3842bc5fb38e9e87cc6eee0cf84797b1b6022c4 (diff)
better docker instructions
Diffstat (limited to 'README')
-rw-r--r--README25
1 files changed, 19 insertions, 6 deletions
diff --git a/README b/README
index 0a1600234..577c0a3a3 100644
--- a/README
+++ b/README
@@ -32,24 +32,37 @@ The WebExtension can be built via the 'webextension' make target:
./configure && make webextension
```
-This will create the zip file with the WebExtension in the location
+This will create the zip file with the WebExtension in the directory
```
-packages/taler-wallet-webextension/taler-wallet-webextension-$VERSION.zip
+packages/taler-wallet-webextension/extension/
```
We also provide a `Dockerfile` for a container that can build the WebExtension:
```shell
+# Download wallet source code and unpack it
+(host)$ tar -xf wallet-core-$version.tar.gz
+
# Build the image
-(host)$ docker build --tag walletbuilder contrib/wallet-docker
+(host)$ docker build --tag walletbuilder wallet-core-$version/contrib/wallet-docker
+
+# Start the container
+(host)$ docker run -dti --name walletcontainer walletbuilder /bin/bash
-# Run container with wallet source mounted
-(host)$ docker run -it -v $PWD:/wallet-core walletbuilder
+# Copy wallet source to container
+(host)$ docker cp ./wallet-core-$version/ walletcontainer:/
+
+# Attach to container
+(host)$ docker attach walletcontainer
# Run build inside container
-(container)$ cd wallet-core
+(container)$ cd wallet-core-$version
(container)$ ./configure && make webextension
+(container)$ exit
+
+# Copy build artefact(s) to host
+(host)$ docker cp walletcontainer:/wallet-core-$version/packages/taler-wallet-webextension/extension extension
```