Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run npm install with instance env vars #204

Merged
merged 3 commits into from
Jan 23, 2024
Merged

Run npm install with instance env vars #204

merged 3 commits into from
Jan 23, 2024

Conversation

hardillb
Copy link
Contributor

@hardillb hardillb commented Jan 19, 2024

fixes FlowFuse/flowfuse#3362

Description

This ensures HTTP_PROXY values are set for npm install

Related Issue(s)

FlowFuse/flowfuse#3362

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on FlowFuse/helm to update ConfigMap Template
    • Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production

Labels

  • Backport needed? -> add the backport label
  • Includes a DB migration? -> add the area:migration label

fixes #3362

This ensures HTTP_PROXY values are set for npm install
@hardillb hardillb added this to the 2.1 milestone Jan 19, 2024
@hardillb hardillb self-assigned this Jan 19, 2024
lib/launcher.js Outdated Show resolved Hide resolved
Copy in just the project env to the system env vars
lib/launcher.js Outdated Show resolved Hide resolved
Co-authored-by: Stephen McLaughlin <44235289+Steve-Mcl@users.noreply.github.com>
@Steve-Mcl Steve-Mcl merged commit 84536b8 into main Jan 23, 2024
5 checks passed
@Steve-Mcl Steve-Mcl deleted the set-npm-env-var branch January 23, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Environment variables should be set before launcher runs initial npm install
2 participants