mirror of
https://github.com/Sea-Haven-Industries/seahaven-door-unlock-api.git
synced 2026-10-06 21:42:08 +00:00
fix(terraform): bootstrap node from gzip tarball
HCP Linux workers do not ship xz, so the plan-time Node download must use the gzip distro tarball.
This commit is contained in:
parent
c43bee214c
commit
f2e84d7f8a
1 changed files with 3 additions and 2 deletions
|
|
@ -30,8 +30,9 @@ ensure_node() {
|
||||||
esac
|
esac
|
||||||
tarball="node-v${version}-${os}-${arch}"
|
tarball="node-v${version}-${os}-${arch}"
|
||||||
mkdir -p "${NODE_PREFIX}"
|
mkdir -p "${NODE_PREFIX}"
|
||||||
curl -fsSL "https://nodejs.org/dist/v${version}/${tarball}.tar.xz" \
|
# HCP Terraform Linux workers do not ship xz. Use the gzip tarball.
|
||||||
| tar -xJ -C "${NODE_PREFIX}" --strip-components=1
|
curl -fsSL "https://nodejs.org/dist/v${version}/${tarball}.tar.gz" \
|
||||||
|
| tar -xz -C "${NODE_PREFIX}" --strip-components=1
|
||||||
export PATH="${NODE_PREFIX}/bin:${PATH}"
|
export PATH="${NODE_PREFIX}/bin:${PATH}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue