Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
e637d85d
Commit
e637d85d
authored
May 13, 2016
by
John Eskew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New version of docker_install.sh from
https://get.docker.com/
parent
53dbc8f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
12 deletions
+29
-12
docker/build/go-agent/files/docker_install.sh
+29
-12
No files found.
docker/build/go-agent/files/docker_install.sh
View file @
e637d85d
...
...
@@ -20,10 +20,19 @@ set -e
# To update this script on https://get.docker.com,
# use hack/release.sh during a normal release,
# or the following one-liner for script hotfixes:
#
s3cmd put --acl-public -P
hack/install.sh s3://get.docker.com/index
#
aws s3 cp --acl public-read
hack/install.sh s3://get.docker.com/index
#
url
=
'https://get.docker.com/'
url
=
"https://get.docker.com/"
apt_url
=
"https://apt.dockerproject.org"
yum_url
=
"https://yum.dockerproject.org"
gpg_fingerprint
=
"58118E89F3A912897C070ADBF76221572C52609D"
key_servers
=
"
ha.pool.sks-keyservers.net
pgp.mit.edu
keyserver.ubuntu.com
"
command_exists
()
{
command
-v
"
$@
"
>
/dev/null 2>&1
...
...
@@ -99,7 +108,10 @@ rpm_import_repository_key() {
local
key
=
$1
;
shift
local
tmpdir
=
$(
mktemp
-d
)
chmod 600
"
$tmpdir
"
gpg
--homedir
"
$tmpdir
"
--keyserver
ha.pool.sks-keyservers.net
--recv-keys
"
$key
"
for
key_server
in
$key_servers
;
do
gpg
--homedir
"
$tmpdir
"
--keyserver
"
$key_server
"
--recv-keys
"
$key
"
&&
break
done
gpg
--homedir
"
$tmpdir
"
-k
"
$key
"
>
/dev/null
gpg
--homedir
"
$tmpdir
"
--export
--armor
"
$key
"
>
"
$tmpdir
"
/repo.key
rpm
--import
"
$tmpdir
"
/repo.key
rm
-rf
"
$tmpdir
"
...
...
@@ -200,11 +212,13 @@ do_install() {
fi
# check to see which repo they are trying to install from
repo
=
'main'
if
[
"https://test.docker.com/"
=
"
$url
"
]
;
then
repo
=
'testing'
elif
[
"https://experimental.docker.com/"
=
"
$url
"
]
;
then
repo
=
'experimental'
if
[
-z
"
$repo
"
]
;
then
repo
=
'main'
if
[
"https://test.docker.com/"
=
"
$url
"
]
;
then
repo
=
'testing'
elif
[
"https://experimental.docker.com/"
=
"
$url
"
]
;
then
repo
=
'experimental'
fi
fi
# perform some very rudimentary platform detection
...
...
@@ -409,9 +423,12 @@ do_install() {
fi
(
set
-x
$sh_c
"apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D"
for
key_server
in
$key_servers
;
do
$sh_c
"apt-key adv --keyserver hkp://
${
key_server
}
:80 --recv-keys
${
gpg_fingerprint
}
"
&&
break
done
$sh_c
"apt-key adv -k
${
gpg_fingerprint
}
>/dev/null"
$sh_c
"mkdir -p /etc/apt/sources.list.d"
$sh_c
"echo deb [arch=
$(
dpkg
--print-architecture
)
]
https://apt.dockerproject.org
/repo
${
lsb_dist
}
-
${
dist_version
}
${
repo
}
> /etc/apt/sources.list.d/docker.list"
$sh_c
"echo deb [arch=
$(
dpkg
--print-architecture
)
]
${
apt_url
}
/repo
${
lsb_dist
}
-
${
dist_version
}
${
repo
}
> /etc/apt/sources.list.d/docker.list"
$sh_c
'sleep 3; apt-get update; apt-get install -y -q docker-engine'
)
echo_docker_as_nonroot
...
...
@@ -422,10 +439,10 @@ do_install() {
$sh_c
"cat >/etc/yum.repos.d/docker-
${
repo
}
.repo"
<<-
EOF
[docker-
${
repo
}
-repo]
name=Docker
${
repo
}
Repository
baseurl=
https://yum.dockerproject.org
/repo/
${
repo
}
/
${
lsb_dist
}
/
${
dist_version
}
baseurl=
${
yum_url
}
/repo/
${
repo
}
/
${
lsb_dist
}
/
${
dist_version
}
enabled=1
gpgcheck=1
gpgkey=
https://yum.dockerproject.org
/gpg
gpgkey=
${
yum_url
}
/gpg
EOF
if
[
"
$lsb_dist
"
=
"fedora"
]
&&
[
"
$dist_version
"
-ge
"22"
]
;
then
(
...
...
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