Skip to content

Commit

Permalink
add container runtime support
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Yuan <[email protected]>
  • Loading branch information
SamYuan1990 committed Mar 11, 2024
1 parent 1452fe9 commit 31abec9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ function installLibbpf(libbpf_version) {

function installContainerRuntime() {
//Add Docker's official GPG key:
executeCommand("apt-get update -y");
executeCommand("apt-get install ca-certificates curl gnupg -y");
executeCommand("sudo apt-get update -y");
executeCommand("sudo apt-get install ca-certificates curl gnupg -y");
executeCommand("install -m 0755 -d /etc/apt/keyrings");
executeCommand("curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg");
executeCommand("chmod a+r /etc/apt/keyrings/docker.gpg");
Expand All @@ -73,8 +73,8 @@ function installContainerRuntime() {
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null`);
executeCommand("apt-get update -y");
executeCommand("apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y");
executeCommand("sudo apt-get update -y");
executeCommand("sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y");
}

function installKubectl(kubectl_version) {
Expand Down

0 comments on commit 31abec9

Please sign in to comment.