-
Notifications
You must be signed in to change notification settings - Fork 24
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
setup: added script to auto install mtda aritfacts to system #200
base: master
Are you sure you want to change the base?
Conversation
scripts/setup-mtda
Outdated
dist_name() { | ||
if [ -f /etc/os-release ]; then | ||
# shellcheck disable=SC1091 | ||
dist=$(. /etc/os-release && echo "${ID}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is not recommended to source /etc/os-release
scripts/setup-mtda
Outdated
docker_install() { | ||
apt-get -y remove docker docker-engine docker.io containerd runc | ||
apt-get update -y | ||
apt-get -y install \ | ||
ca-certificates \ | ||
curl \ | ||
gnupg \ | ||
lsb-release | ||
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | ||
echo \ | ||
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \ | ||
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
apt-get update -y | ||
apt-get -y install docker-ce docker-ce-cli containerd.io | ||
/sbin/adduser $USER docker | ||
systemctl enable docker | ||
systemctl start docker | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debian and Ubuntu provide docker.io
c5a3a2a
to
7e4fdf3
Compare
# --------------------------------------------------------------------------------------------------------------------- | ||
|
||
docker_install() { | ||
apt-get -y remove docker docker-engine docker.io containerd runc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why we need to remove those?
450fd84
to
aa04d57
Compare
Signed-off-by: Onkar Bokshe <[email protected]>
As an end user perspective this script will help to install mtda and its artifacts automatically following are the scripts features
Scope for improvement :
Note : This script is initial draft for mtda auto install which will help user in quick installation.
Signed-off-by: Onkar Bokshe [email protected]