Browse Source

fix(configure): install method `docker` & `git`

pull/2433/head
Harry 10 months ago committed by GitHub
parent
commit
988d47fa7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 14
      sh/debian/configure.sh

14
sh/debian/configure.sh diff.vendored

@ -138,23 +138,13 @@ EOF
sed -i '/swap/d' /etc/fstab sed -i '/swap/d' /etc/fstab
# Docker # Docker
apt-get -y install apt-transport-https ca-certificates curl gnupg2 software-properties-common curl -fsSL https://get.docker.com -o get-docker.sh | bash
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
apt-get update
apt-get -y install docker-ce docker-ce-cli containerd.io
# Docker compose
curl -L "https://github.com/docker/compose/releases/download/1.29.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
curl -L https://raw.githubusercontent.com/docker/compose/1.29.1/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose
# NodeJS # NodeJS
curl -fsSL https://deb.nodesource.com/setup_20.x | bash && apt-get install -y nodejs curl -fsSL https://deb.nodesource.com/setup_20.x | bash && apt-get install -y nodejs
# Git # Git
echo deb http://deb.debian.org/debian buster-backports main | tee /etc/apt/sources.list.d/buster-backports.list apt-get update && apt-get -y install git
apt-get update && apt-get -y install -t buster-backports git
# Generate SSH key # Generate SSH key
ssh-keygen -ted25519 -f ~/.ssh/id_ed25519 -N '' ssh-keygen -ted25519 -f ~/.ssh/id_ed25519 -N ''

Loading…
Cancel
Save