Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
3cb6589a
Commit
3cb6589a
authored
Aug 17, 2016
by
Brad Moylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use specific version of docker instead of latest.
parent
7a4908b2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
build.sh
cluster/centos/build.sh
+3
-2
config-build.sh
cluster/centos/config-build.sh
+6
-0
docker.sh
cluster/centos/node/scripts/docker.sh
+1
-1
No files found.
cluster/centos/build.sh
View file @
3cb6589a
...
...
@@ -52,8 +52,8 @@ function download-releases() {
echo
"Download kubernetes release v
${
K8S_VERSION
}
..."
curl
-L
${
K8S_DOWNLOAD_URL
}
-o
${
RELEASES_DIR
}
/kubernetes.tar.gz
echo
"Download docker
-latest
..."
curl
-L
https://get.docker.com/builds/Linux/x86_64/docker-latest.tgz
-o
${
RELEASES_DIR
}
/docker.tar.gz
echo
"Download docker
release v
${
DOCKER_VERSION
}
..."
curl
-L
${
DOCKER_DOWNLOAD_URL
}
-o
${
RELEASES_DIR
}
/docker.tar.gz
}
function
unpack-releases
()
{
...
...
@@ -95,6 +95,7 @@ function unpack-releases() {
cp
${
RELEASES_DIR
}
/kubernetes/server/kubernetes/server/bin/kubectl
${
BINARY_DIR
}
fi
# docker
if
[[
-f
${
RELEASES_DIR
}
/docker.tar.gz
]]
;
then
tar
xzf
${
RELEASES_DIR
}
/docker.tar.gz
-C
${
RELEASES_DIR
}
...
...
cluster/centos/config-build.sh
View file @
3cb6589a
...
...
@@ -19,6 +19,9 @@
# Directory to store release packages that will be downloaded.
RELEASES_DIR
=
${
RELEASES_DIR
:-
/tmp/downloads
}
# Define docker version to use.
DOCKER_VERSION
=
${
DOCKER_VERSION
:-
"1.12.0"
}
# Define flannel version to use.
FLANNEL_VERSION
=
${
FLANNEL_VERSION
:-
"0.5.5"
}
...
...
@@ -28,6 +31,9 @@ ETCD_VERSION=${ETCD_VERSION:-"3.0.4"}
# Define k8s version to use.
K8S_VERSION
=
${
K8S_VERSION
:-
"1.3.5"
}
DOCKER_DOWNLOAD_URL
=
\
"https://get.docker.com/builds/Linux/x86_64/docker-
${
DOCKER_VERSION
}
.tgz"
FLANNEL_DOWNLOAD_URL
=
\
"https://github.com/coreos/flannel/releases/download/v
${
FLANNEL_VERSION
}
/flannel-
${
FLANNEL_VERSION
}
-linux-amd64.tar.gz"
...
...
cluster/centos/node/scripts/docker.sh
View file @
3cb6589a
...
...
@@ -35,7 +35,7 @@ Type=notify
EnvironmentFile=-/run/flannel/docker
EnvironmentFile=-/opt/kubernetes/cfg/docker
WorkingDirectory=/opt/kubernetes/bin
ExecStart=/opt/kubernetes/bin/docker
daemon
\
$DOCKER_OPT_BIP
\
$DOCKER_OPT_MTU
\
$DOCKER_OPTS
ExecStart=/opt/kubernetes/bin/docker
d
\
$DOCKER_OPT_BIP
\
$DOCKER_OPT_MTU
\
$DOCKER_OPTS
LimitNOFILE=1048576
LimitNPROC=1048576
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment