-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from galexrt/docker_install_from_officialrepo
Docker install from officialrepo
- Loading branch information
Showing
9 changed files
with
136 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,28 @@ | ||
$box_image = ENV['BOX_IMAGE'] || 'centos/7'.freeze | ||
|
||
# Stop and disable firewalld service | ||
$osPrepareScript = <<SCRIPT | ||
set -x | ||
|
||
systemctl stop firewalld || true | ||
systemctl disable firewalld || true | ||
systemctl mask firewalld || true | ||
SCRIPT | ||
|
||
$containerRuntimeInstallScript = <<SCRIPT | ||
set -x | ||
|
||
retries=5 | ||
for ((i=1; i<=retries; i++)); do | ||
yum install -y yum-utils \ | ||
device-mapper-persistent-data \ | ||
lvm2 | ||
yum-config-manager \ | ||
--add-repo \ | ||
https://download.docker.com/linux/centos/docker-ce.repo | ||
yum install -y docker-ce docker-ce-cli containerd.io && \ | ||
break | ||
|
||
[[ $retries -eq i ]] && { echo "Failed to install docker-ce after 5 tries"; exit 1; } | ||
done | ||
SCRIPT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
$kube_network = 'canal' | ||
|
||
$osPrepareScript = <<SCRIPT | ||
set -x | ||
|
||
sed -i 's/^DNS=.*/DNS=8.8.8.8 8.8.4.4/' /etc/systemd/resolved.conf | ||
|
||
sudo update-alternatives --set iptables /usr/sbin/iptables-legacy | ||
sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy | ||
sudo update-alternatives --set arptables /usr/sbin/arptables-legacy | ||
sudo update-alternatives --set ebtables /usr/sbin/ebtables-legacy | ||
|
||
retries=5 | ||
for ((i=1; i<=retries; i++)); do | ||
apt-get update | ||
apt-get -y install apt-transport-https curl software-properties-common ca-certificates && \ | ||
break | ||
|
||
[[ $retries -eq i ]] && { echo "Failed to install apt-transport-https and other dependenices after 5 tries"; exit 1; } | ||
done | ||
SCRIPT | ||
|
||
$kubeletExtraArgsFile = '/etc/default/kubelet' |