Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Commit

Permalink
Install firecracker binary from official release
Browse files Browse the repository at this point in the history
Since we're not going to be using firecracker on the cros terminal, we
don't need the patched version from dropbox and can instead use the
official release, which lets us stay up to date
  • Loading branch information
Thomas Wunderlich committed Apr 19, 2022
1 parent c223124 commit 7e72c30
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
18 changes: 11 additions & 7 deletions etc/chromeos/lib/installs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -333,14 +333,18 @@ install_cni_plugins() {
}

install_firecracker() {
# This installs a patched version of firecracker from our dropbox
sudo curl --proto "=https" \
--tlsv1.2 \
--location \
--output /usr/bin/firecracker \
"https://uca407bf360bc42aeddf1f15a307.dl.dropboxusercontent.com/cd/0/get/BjrRVD0hQW7-jSPIoICZEH8DONH4yR2oL5tpNHLiiEQ8Rwl5JXYoJwVvwWk0G2a4QOLL87mrBGNDat7FVLTJYYWV5-Wa88waqlwuzMlu_UO2FEw0AYR_rzLsiqSaNgLUMtKY8QNl-e5E3eZsUECjHKeTrek27YTpOc7bfZXOfzuta1tU9fMgfPwHocH89QOH-ms/file?_download_id=7938492000756063344390311727150356805086251509862764070702265202&_notify_domain=www.dropbox.com&dl=1"
echo_banner "Installing Firecracker binary"

repo="firecracker-microvm/firecracker"
version=$(get_latest_release "${repo}")

url_prefix="https://github.com/${repo}/releases/download/${version}"

download_and_install_tarball \
"${url_prefix}/firecracker-${version}-$(arch).tgz" \
/tmp/firecracker

sudo chmod 0755 /usr/bin/firecracker
sudo mv "/tmp/firecracker/release-${version}-$(arch)/firecracker-${version}-$(arch)" "/usr/bin/firecracker"
}

install_nomad_firecracker() {
Expand Down
1 change: 1 addition & 0 deletions etc/chromeos/setup_chromeos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ install_awsv2
install_pulumi
install_hashicorp_tools
install_cni_plugins
install_firecracker
install_nomad_chromeos_workaround
install_nomad_firecracker
install_sqlx_prepare_deps
Expand Down

0 comments on commit 7e72c30

Please sign in to comment.