Skip to content

Commit a2777a7

Browse files
authored
Merge pull request #217 from martenson/client-build
add note about client build and reintroduce playbook step
2 parents ce5cae2 + c740375 commit a2777a7

File tree

2 files changed

+30
-7
lines changed

2 files changed

+30
-7
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,31 @@ and external repository that contains the lists of tools for every instance: htt
9292

9393
Following are troubleshooting notes gathered through the learning process.
9494

95+
96+
### client build OOM
97+
98+
- stop app before building
99+
- do not build maps (`make client-production` only)
100+
- set reasonable heap (e.g. `NODE_OPTIONS: --max_old_space_size=4096`)
101+
- disable webpack parallel minimizer
102+
103+
```diff
104+
diff --git a/client/webpack.config.js b/client/webpack.config.js
105+
index 8202237857..99f86ec25d 100644
106+
--- a/client/webpack.config.js
107+
+++ b/client/webpack.config.js
108+
@@ -43,7 +43,7 @@ module.exports = (env = {}, argv = {}) => {
109+
if (targetEnv == "production") {
110+
minimizations = {
111+
minimize: true,
112+
- minimizer: [new TerserPlugin(), new CssMinimizerPlugin()],
113+
+ minimizer: [new TerserPlugin({parallel: false,}), new CssMinimizerPlugin()],
114+
};
115+
} else {
116+
minimizations = {
117+
```
118+
119+
95120
### glibc
96121

97122
On ubuntu < 22.04 and Debian < 12 the GLIBC version is incompatible with the ```galaxyproject.tusd``` GLIBC, therefore playbook ends in error.

galaxy.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,11 @@
177177
repo: 'https://github.com/usegalaxy-eu/libraries-training-repo'
178178
dest: /libraries/
179179

180-
# disabled for now because for release 25.0 this does not help anymore
181-
182-
# - name: stop galaxy to free mem for client build
183-
# become: true
184-
# become_user: root
185-
# ansible.builtin.command: galaxyctl stop
186-
# when: "inventory_hostname in ['galaxy-qa1.galaxy.cloud.e-infra.cz', 'galaxy-qa2.galaxy.cloud.e-infra.cz']"
180+
- name: stop galaxy to free mem for client build
181+
become: true
182+
become_user: root
183+
ansible.builtin.command: galaxyctl stop
184+
when: "inventory_hostname in ['galaxy-qa1.galaxy.cloud.e-infra.cz', 'galaxy-qa2.galaxy.cloud.e-infra.cz']"
187185

188186
# this needs to be in the correct spot, not here, either via fork or enabling this configuration upstream
189187

0 commit comments

Comments
 (0)