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

Convert hack/install.sh to use arkade for system packages #259

Closed
alexellis opened this issue Apr 11, 2022 · 1 comment · Fixed by #261
Closed

Convert hack/install.sh to use arkade for system packages #259

alexellis opened this issue Apr 11, 2022 · 1 comment · Fixed by #261

Comments

@alexellis
Copy link
Member

alexellis commented Apr 11, 2022

Now that arkade has system level packages for CNI, containerd and Go, we can update hack/install.sh and simplify it.

https://github.com/alexellis/arkade/releases/tag/0.8.23

alexellis/arkade#654

Expected Behaviour

Use

arkade system install \
  containerd --version $CONTAINERD_VERSION

Current Behaviour

install_containerd() {
  arch=$(uname -m)
  CONTAINERD_VER=1.6.2
  case $arch in
  x86_64 | amd64)
    curl -sLSf https://github.com/containerd/containerd/releases/download/v${CONTAINERD_VER}/containerd-${CONTAINERD_VER}-linux-amd64.tar.gz | $SUDO tar -xvz --strip-components=1 -C /usr/local/bin/
    ;;
  armv7l)
    curl -sSL https://github.com/alexellis/containerd-arm/releases/download/v${CONTAINERD_VER}/containerd-${CONTAINERD_VER}-linux-armhf.tar.gz | $SUDO tar -xvz --strip-components=1 -C /usr/local/bin/
    ;;
  aarch64)
      curl -sLSf https://github.com/containerd/containerd/releases/download/v${CONTAINERD_VER}/containerd-${CONTAINERD_VER}-linux-arm64.tar.gz | $SUDO tar -xvz --strip-components=1 -C /usr/local/bin/

    ;;
  *)
    fatal "Unsupported architecture $arch"
    ;;
  esac

  $SUDO systemctl unmask containerd || :
  $SUDO curl -SLfs https://raw.githubusercontent.com/containerd/containerd/v${CONTAINERD_VER}/containerd.service --output /etc/systemd/system/containerd.service
  $SUDO systemctl enable containerd
  $SUDO systemctl start containerd

  sleep 5
}

Context

Reduces duplication

Your Environment

Must continue to work for armhf, 64-bit ARM and x86_64 after the changes.

@nitishkumar71
Copy link
Member

I will work on this.

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 a pull request may close this issue.

2 participants