Skip to content

Commit

Permalink
:feat: debian docker install
Browse files Browse the repository at this point in the history
  • Loading branch information
marchocode committed Feb 2, 2024
1 parent e35762a commit b75a4fa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion debian/docker
Original file line number Diff line number Diff line change
@@ -1 +1 @@
deb [signed-by=/etc/apt/keyrings/docker.gpg] https://host/docker-ce/linux/debian version stable
deb [signed-by=/etc/apt/keyrings/gpg] https://host/docker-ce/linux/debian version stable
21 changes: 13 additions & 8 deletions tiny-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ system(){

print_info

info "Success...You can use apt or yum command to update your system."
}

infomation() {
Expand Down Expand Up @@ -259,10 +260,14 @@ dockerce(){
cat "${WORKDIR}/.target" > ${destination}

# download grp
# /etc/apt/keyrings/docker.asc
# /etc/apt/keyrings/docker.gpg
mkdir -p /etc/apt/keyrings
curl -fsSL "http://${host}/docker-ce/linux/${release}/gpg" | gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg
curl -fsSL -o /etc/apt/keyrings/gpg "http://${host}/docker-ce/linux/${release}/gpg"

if [[ $release = "ubuntu" ]]; then
gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg /etc/apt/keyrings/gpg
fi

sed -i "s/host/${host}/g" "${WORKDIR}/.target"
sed -i "s/version/${version}/g" "${WORKDIR}/.target"

Expand All @@ -283,12 +288,12 @@ menu(){

echo -e "A Simple Shell Script To Help You For Work"
echo -e ""
echo -e "./tiny-shell - Help"
echo -e "./tiny-shell system - Check System Mirrors"
echo -e "./tiny-shell info - Check Your System Infomations."
echo -e "./tiny-shell docker - Install Docker Environment"
echo -e "./tiny-shell pypi - Configuating Python Package Manager's Mirrors"
echo -e "./tiny-shell maven - Maven's Mirrors Check"
echo -e "./tiny-shell.sh - Help"
echo -e "./tiny-shell.sh system - Check System Mirrors"
echo -e "./tiny-shell.sh info - Check Your System Infomations."
echo -e "./tiny-shell.sh docker - Install Docker Environment"
echo -e "./tiny-shell.sh pypi - Configuating Python Package Manager's Mirrors"
echo -e "./tiny-shell.sh maven - Maven's Mirrors Check"
echo -e ""
}

Expand Down

0 comments on commit b75a4fa

Please sign in to comment.