Merge ~rbarry/grafana-snap:rock into grafana-snap:rock

Proposed by Ryan Barry
Status: Merged
Approved by: Ryan Barry
Approved revision: 55b0cc6a70ff1c106a47369b51050f0d21f19fc3
Merged at revision: 55b0cc6a70ff1c106a47369b51050f0d21f19fc3
Proposed branch: ~rbarry/grafana-snap:rock
Merge into: grafana-snap:rock
Diff against target: 22 lines (+5/-5)
1 file modified
snapcraft.yaml (+5/-5)
Reviewer Review Type Date Requested Status
BootStack Reviewers Pending
Review via email: mp+430349@code.launchpad.net

Commit message

Use proxies inside launchpad

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/snapcraft.yaml b/snapcraft.yaml
2index 51c421f..9361535 100644
3--- a/snapcraft.yaml
4+++ b/snapcraft.yaml
5@@ -89,12 +89,12 @@ parts:
6 npm config set unsafe-perm true
7 # We have to limit node's max memory usage otherwise we'll run
8 # into OOM issues even with a 10GB RAM VM.
9- export NODE_OPTIONS="--max-old-space-size=8192 --dns-result-order=ipv4first"
10+ NODE_OPTIONS="--max-old-space-size=8192"
11+ [[ -v http_proxy ]] && NODE_OPTIONS="${NODE_OPTIONS} --proxy ${http_proxy}"
12+ [[ -v https_proxy ]] && NODE_OPTIONS="${NODE_OPTIONS} --https-proxy ${https_proxy}"
13+ export NODE_OPTIONS=${NODE_OPTIONS}
14 npm install --location=global --prefix $SNAPCRAFT_PART_BUILD yarn
15- cat /etc/resolv.conf
16- env
17- yarn config
18- yarn config set npmRegistryServer https://registry.npmjs.org
19+ env | sort
20 yarn config
21 YARN_ENABLE_PROGRESS_BARS=false yarn install --immutable
22 yarn run build

Subscribers

People subscribed via source and target branches

to all changes: