[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: docker-based build instructio
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: docker-based build instructions |
Date: |
Wed, 25 Nov 2020 16:30:38 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new fcfe7e63 docker-based build instructions
fcfe7e63 is described below
commit fcfe7e63701c03c69ec28835bd24699b270502b1
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Nov 25 16:30:31 2020 +0100
docker-based build instructions
---
.gitignore | 1 +
README | 24 +++++++++++++++++++++++-
contrib/wallet-docker/Dockerfile | 9 +++++++++
contrib/wallet-docker/gitbuild.sh | 18 ++++++++++++++++++
4 files changed, 51 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index 8fb67e2a..6d1a129f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,6 +4,7 @@ dist/
lib/
node_modules/
tsconfig.tsbuildinfo
+.pnpm-store/
# GNU-style build system
/configure
diff --git a/README b/README
index 3249f4b0..d248d9c8 100644
--- a/README
+++ b/README
@@ -6,7 +6,14 @@ in TypeScript.
## 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
@@ -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
```
+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
If you are compiling the code from git, you have to run `./bootstrap` before
diff --git a/contrib/wallet-docker/Dockerfile b/contrib/wallet-docker/Dockerfile
new file mode 100644
index 00000000..d1a04d32
--- /dev/null
+++ b/contrib/wallet-docker/Dockerfile
@@ -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
diff --git a/contrib/wallet-docker/gitbuild.sh
b/contrib/wallet-docker/gitbuild.sh
new file mode 100644
index 00000000..9e84c82d
--- /dev/null
+++ b/contrib/wallet-docker/gitbuild.sh
@@ -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 /
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: docker-based build instructions,
gnunet <=