specter-desktop/docker/electron-builder-master/README.md
k9ert eb7f094626
Chore: port uiux/fixes/release_process to master (#2114)
* upgrading python and electron/-builder

* python on top of focal based electron-builder #2118

* adding necessary python build dependencies
2023-02-03 13:37:40 +01:00

1.6 KiB

Purpose

Used for building the electron-app. In short it's the /pyinstaller/build-unix.sh script which is running in this image.

By intention, this is using an older OS-version in order to avoid glibc-issues. For details, see:

Usage

If you want to run the image manually, do something like this (copied from here):

docker run --rm -ti \
 --env-file <(env | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS_TAG|TRAVIS|TRAVIS_REPO_|TRAVIS_BUILD_|TRAVIS_BRANCH|TRAVIS_PULL_REQUEST_|APPVEYOR_|CSC_|GH_|GITHUB_|BT_|AWS_|STRIP|BUILD_') \
 --env ELECTRON_CACHE="/root/.cache/electron" \
 --env ELECTRON_BUILDER_CACHE="/root/.cache/electron-builder" \
 -v ${PWD}:/project \
 -v ${PWD##*/}-node-modules:/project/node_modules \
 -v ~/.cache/electron:/root/.cache/electron \
 -v ~/.cache/electron-builder:/root/.cache/electron-builder \
 electronuserland/builder:wine

Building

build the image like:

docker build -t registry.gitlab.com/cryptoadvance/specter-desktop/electron-builder:latest .
docker push registry.gitlab.com/cryptoadvance/specter-desktop/electron-builder:latest

Details

This image is putting python3.10 on top of electronuserland/builder:wine. As we want to have stable build-targets the actual FROM clause is electronuserland/builder:14-wine-10.22 as the project is adding the node version (14) and a timestamp (10.22) to the tagname.