better docker instructions
This commit is contained in:
parent
f3842bc5fb
commit
f2bbe872cf
27
README
27
README
@ -32,24 +32,37 @@ The WebExtension can be built via the 'webextension' make target:
|
|||||||
./configure && make webextension
|
./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:
|
We also provide a `Dockerfile` for a container that can build the WebExtension:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Build the image
|
# Download wallet source code and unpack it
|
||||||
(host)$ docker build --tag walletbuilder contrib/wallet-docker
|
(host)$ tar -xf wallet-core-$version.tar.gz
|
||||||
|
|
||||||
# Run container with wallet source mounted
|
# Build the image
|
||||||
(host)$ docker run -it -v $PWD:/wallet-core walletbuilder
|
(host)$ docker build --tag walletbuilder wallet-core-$version/contrib/wallet-docker
|
||||||
|
|
||||||
|
# Start the container
|
||||||
|
(host)$ docker run -dti --name walletcontainer walletbuilder /bin/bash
|
||||||
|
|
||||||
|
# Copy wallet source to container
|
||||||
|
(host)$ docker cp ./wallet-core-$version/ walletcontainer:/
|
||||||
|
|
||||||
|
# Attach to container
|
||||||
|
(host)$ docker attach walletcontainer
|
||||||
|
|
||||||
# Run build inside container
|
# Run build inside container
|
||||||
(container)$ cd wallet-core
|
(container)$ cd wallet-core-$version
|
||||||
(container)$ ./configure && make webextension
|
(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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
taler-wallet-*.zip
|
extension/
|
||||||
|
@ -17,5 +17,7 @@ cp -r dist static tmp/
|
|||||||
cd tmp
|
cd tmp
|
||||||
zip -r "$zipfile" dist static manifest.json
|
zip -r "$zipfile" dist static manifest.json
|
||||||
cd ..
|
cd ..
|
||||||
mv "./tmp/$zipfile" ./
|
mkdir -p extension
|
||||||
|
mv "./tmp/$zipfile" ./extension/
|
||||||
rm -rf tmp
|
rm -rf tmp
|
||||||
|
echo "Packed webextension: extension/$zipfile"
|
||||||
|
Loading…
Reference in New Issue
Block a user