Skip to content

Commit

Permalink
adding debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Campbell committed Jun 10, 2024
1 parent 6980861 commit 24cf2b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .devcontainer/features/k3s-on-host/updateContent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -385,13 +385,15 @@ function install_k3s() {
run_a_script "curl --silent --fail --create-dirs --output /host_var/tmp/devfeature/k3s-on-host/k3s_install.sh -L https://get.k3s.io"
fi

if [[ "${USE_CRI_DOCKERD}"==true ]]; then
if [[ "${USE_CRI_DOCKERD}" == true ]]; then
debug_log "Adding cri-dockerd to k3s install command..."
k3s_extra_commands="${k3s_extra_commands} --docker"
fi

run_a_script "chmod +x /host_var/tmp/devfeature/k3s-on-host/k3s_install.sh" --disable_log

run_a_script_on_host "cat /var/tmp/devfeature/k3s-on-host/k3s_install.sh"

info_log "Installing k3s on host..."
run_a_script_on_host "/var/tmp/devfeature/k3s-on-host/k3s_install.sh ${k3s_extra_commands}" --env INSTALL_K3S_VERSION=${K3S_VERSION} --env INSTALL_K3S_SYMLINK=force
}
Expand Down

0 comments on commit 24cf2b0

Please sign in to comment.