@@ -13,44 +13,25 @@ exactly as they are described below.
13
13
14
14
## Build instructions
15
15
16
- ** NOTE** : You _ must_ use ` yarn ` to install dependencies! This is due to the fact that this is configured as a monorepo
17
- using yarn workspaces. If you install via ` npm install ` or ` npm i ` , it will not resolve dependencies correctly.
18
-
19
- If you don't already have Node v22 LTS and NPM v10, please follow these [ instructions] ( #setting-up-node-and-npm )
20
-
21
- These instructions should work for the default reviewer build environment.
16
+ 1 . Certify that Docker 27+ is installed in your system before proceeding with the build:
22
17
23
18
``` bash
24
- sudo apt install protobuf-compiler build-essential curl pkg-config libssl-dev binaryen -y
25
- curl https://sh.rustup.rs -sSf | sh
26
-
27
- # Proceed with standard installation when prompted
28
-
29
- # Make sure to pull cargo into your current environment:
30
- . " $HOME /.cargo/env"
31
-
32
- # You must use yarn to install dependencies:
33
- npm install -g yarn
34
- export PUPPETEER_SKIP_DOWNLOAD=true
35
-
36
- # Run yarn to install dependencies
37
- yarn
19
+ docker --version
20
+ ```
38
21
39
- # Move into extension app directory
40
- cd apps/extension
22
+ 2 . From the ** repository root** , build the Docker image:
41
23
42
- # Build wasm dependency:
43
- yarn wasm: build
24
+ ``` bash
25
+ docker build . --target firefox -t namada-keychain-firefox -f docker/extension/Dockerfile
44
26
```
45
27
46
- Then, issue the final build command for the Firefox add-on :
28
+ 3 . Wait for the build to complete, and then copy the files from the container by executing the following command in the ** repository root ** :
47
29
48
30
``` bash
49
- # Build the addon:
50
- yarn build:firefox
31
+ docker run --rm -v ./apps/extension/build:/shared namada-keychain-firefox cp -r /app/apps/extension/build/. /shared/
51
32
```
52
33
53
- The resulting extension is the ZIP file in ` apps/extension/build/firefox ` .
34
+ 4 . The resulting extension is the ZIP file in ` apps/extension/build/firefox ` .
54
35
55
36
[ [ Table of Contents] ( #table-of-contents ) ]
56
37
@@ -63,25 +44,16 @@ This build was produced using the following environment:
63
44
- Ubuntu 24.04 LTS (Desktop edition)
64
45
- 10GB of system memory (RAM)
65
46
- 6 cores of vCPU
66
- - Node 22 LTS and npm 10
67
47
- 35GB of storage
48
+ - Docker version 27+ installed and running
68
49
69
50
Please ensure that this matches your environment!
70
51
71
52
[ [ Table of Contents] ( #table-of-contents ) ]
72
53
73
- ### Setting up Node and NPM
74
-
75
- ``` bash
76
- wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
77
-
78
- # Enable nvm in current shell
79
- export NVM_DIR=" $( [ -z " ${XDG_CONFIG_HOME-} " ] && printf %s " ${HOME} /.nvm" || printf %s " ${XDG_CONFIG_HOME} /nvm" ) "
80
- [ -s " $NVM_DIR /nvm.sh" ] && \. " $NVM_DIR /nvm.sh"
54
+ ### Installing Docker
81
55
82
- # Install v22 LTS
83
- nvm install v22.0.0
84
- ```
56
+ If Docker is not currently installed in your environment, please refer to the [ instructions of the official Docker documentation] ( https://docs.docker.com/engine/install/ubuntu/ ) .
85
57
86
58
[ [ Table of Contents] ( #table-of-contents ) ]
87
59
0 commit comments