docker-based build instructions
This commit is contained in:
parent
68dcb13fbf
commit
fcfe7e6370
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,6 +4,7 @@ dist/
|
|||||||
lib/
|
lib/
|
||||||
node_modules/
|
node_modules/
|
||||||
tsconfig.tsbuildinfo
|
tsconfig.tsbuildinfo
|
||||||
|
.pnpm-store/
|
||||||
|
|
||||||
# GNU-style build system
|
# GNU-style build system
|
||||||
/configure
|
/configure
|
||||||
|
24
README
24
README
@ -6,7 +6,14 @@ in TypeScript.
|
|||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
|
|
||||||
In order to build the GNU Taler wallet, make sure that you have Node.JS and pnpm installed.
|
The following dependencies are required to build the wallet:
|
||||||
|
|
||||||
|
* python>=3.8
|
||||||
|
* nodejs>=12
|
||||||
|
* jq
|
||||||
|
* npm
|
||||||
|
* pnpm
|
||||||
|
* zip
|
||||||
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
@ -31,6 +38,21 @@ This will create the zip file with the WebExtension in the location
|
|||||||
packages/taler-wallet-webextension/taler-wallet-webextension-$VERSION.zip
|
packages/taler-wallet-webextension/taler-wallet-webextension-$VERSION.zip
|
||||||
```
|
```
|
||||||
|
|
||||||
|
We also provide a `Dockerfile` for a container that can build the WebExtension:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
# Build the image
|
||||||
|
(host)$ docker build --tag walletbuilder contrib/wallet-docker
|
||||||
|
|
||||||
|
# Run container with wallet source mounted
|
||||||
|
(host)$ docker run -it -v $PWD:wallet-core walletbuilder
|
||||||
|
|
||||||
|
# Run build inside container
|
||||||
|
(container)$ cd wallet-core
|
||||||
|
(container)$ ./configure && make webextension
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
### Compiling from Git
|
### Compiling from Git
|
||||||
|
|
||||||
If you are compiling the code from git, you have to run `./bootstrap` before
|
If you are compiling the code from git, you have to run `./bootstrap` before
|
||||||
|
9
contrib/wallet-docker/Dockerfile
Normal file
9
contrib/wallet-docker/Dockerfile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM debian:bullseye AS walletbuild
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get -y upgrade
|
||||||
|
RUN apt-get -y install build-essential zip jq python3 python3-pip nodejs npm
|
||||||
|
RUN npm install -g pnpm
|
||||||
|
|
||||||
|
COPY gitbuild.sh /bin
|
18
contrib/wallet-docker/gitbuild.sh
Normal file
18
contrib/wallet-docker/gitbuild.sh
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
# Fetch source
|
||||||
|
git clone https://git.taler.net/wallet-core.git
|
||||||
|
|
||||||
|
cd wallet-core
|
||||||
|
|
||||||
|
# Only for git repositories
|
||||||
|
./bootstrap
|
||||||
|
|
||||||
|
# Run build
|
||||||
|
./configure
|
||||||
|
make webextension
|
||||||
|
|
||||||
|
# Copy WebExtension to root folder
|
||||||
|
cp wallet-core/packages/taler-wallet-webextension/taler-wallet*.zip /
|
Loading…
Reference in New Issue
Block a user