Skip to content

Commit 369867a

Browse files
David Riveraseemethere
authored andcommitted
add cool webpage for get.docker.com
Signed-off-by: David Rivera <[email protected]> Signed-off-by: Eli Uriegas <[email protected]>
1 parent 6bf3003 commit 369867a

File tree

5 files changed

+86
-5
lines changed

5 files changed

+86
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*verify-install-*
22
build/
3+
docker.sh

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,20 @@ VERSION?=
33
CHANNEL?=
44

55
VOLUME_MOUNTS=-v "$(CURDIR)":/v
6-
SHELLCHECK_EXCLUSIONS=$(addprefix -e, SC1091 SC1117)
7-
SHELLCHECK=docker run --rm $(VOLUME_MOUNTS) -w /v koalaman/shellcheck $(SHELLCHECK_EXCLUSIONS)
6+
SHELLCHECK_EXCLUSIONS=$(addprefix -e, SC1091 SC1117 SC2188)
7+
SHELLCHECK=docker run --rm -v "$(CURDIR)":/v -w /v koalaman/shellcheck $(SHELLCHECK_EXCLUSIONS)
88

9-
ENVSUBST_VARS=LOAD_SCRIPT_COMMIT_SHA
9+
ENVSUBST_VARS=LOAD_SCRIPT_COMMIT_SHA HTML
1010

1111
.PHONY: build
1212
build: build/install.sh
1313

1414
build/install.sh: install.sh
1515
mkdir -p $(@D)
16-
LOAD_SCRIPT_COMMIT_SHA='$(shell git rev-parse HEAD)' envsubst '$(addprefix $$,$(ENVSUBST_VARS))' < $< > $@
16+
LOAD_SCRIPT_COMMIT_SHA='$(shell git rev-parse HEAD)' \
17+
HTML='$(shell cat index.html)' \
18+
envsubst \
19+
'$(addprefix $$,$(ENVSUBST_VARS))' < $< > $@
1720

1821
.PHONY: shellcheck
1922
shellcheck: build/install.sh

assets/style.css

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
* {
2+
text-indent:-9999px;
3+
-webkit-touch-callout: none;
4+
-webkit-user-select: none;
5+
-khtml-user-select: none;
6+
-moz-user-select: none;
7+
-ms-user-select: none;
8+
user-select: none;
9+
font-family: "Open Sans", sans-serif;
10+
}
11+
html{
12+
background: #2596ec;
13+
color: #2596ec;
14+
}
15+
body{
16+
display: block;
17+
position: fixed;
18+
color: #DDD;
19+
overflow: hidden;
20+
width: 100%;
21+
height: 100%;
22+
top: 0px;
23+
right: 0px;
24+
display: flex;
25+
justify-content: center;
26+
align-items: center;
27+
}
28+
svg {
29+
display: block;
30+
margin: auto;
31+
}
32+
a {
33+
color:white;
34+
text-decoration:none;
35+
text-align: center;
36+
}
37+
code {
38+
text-indent:0px;
39+
display:block;
40+
font-size:20px;
41+
}

index.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<title>Docker</title>
6+
<meta name="viewport" content="initial-scale = 1, maximum-scale=1, user-scalable = 0" />
7+
<meta name="apple-mobile-web-app-capable" content="yes" />
8+
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
9+
<meta name="HandheldFriendly" content="true" />
10+
<meta name="MobileOptimized" content="320" />
11+
<link href="/david.rivera/assets/style.css" rel="stylesheet" type="text/css">
12+
</head>
13+
14+
<body>
15+
16+
<div>
17+
<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 23" style="fill: rgb(9, 156, 236);height: 100px;">
18+
<g id="Side-Panel-v5" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
19+
<g id="Controller-Page" transform="translate(-9.000000, -26.000000)">
20+
<g id="moby" transform="translate(8.000000, 25.000000)">
21+
<path d="M17.9678219,10.6486486 L21.0654247,10.6486486 L21.0654247,7.81081081 L17.9678219,7.81081081 L17.9678219,10.6486486 Z M14.3070186,10.6486486 L17.4046214,10.6486486 L17.4046214,7.81081081 L14.3070186,7.81081081 L14.3070186,10.6486486 Z M10.6462153,10.6486486 L13.7438181,10.6486486 L13.7438181,7.81081081 L10.6462153,7.81081081 L10.6462153,10.6486486 Z M6.98541205,10.6486486 L10.0830148,10.6486486 L10.0830148,7.81081081 L6.98541205,7.81081081 L6.98541205,10.6486486 Z M3.32460876,10.6486486 L6.42221154,10.6486486 L6.42221154,7.81081081 L3.32460876,7.81081081 L3.32460876,10.6486486 Z M6.98541205,7.24324324 L10.0830148,7.24324324 L10.0830148,4.40540541 L6.98541205,4.40540541 L6.98541205,7.24324324 Z M10.6462153,7.24324324 L13.7438181,7.24324324 L13.7438181,4.40540541 L10.6462153,4.40540541 L10.6462153,7.24324324 Z M14.3070186,7.24324324 L17.4046214,7.24324324 L17.4046214,4.40540541 L14.3070186,4.40540541 L14.3070186,7.24324324 Z M14.3070186,3.83783784 L17.4046214,3.83783784 L17.4046214,1 L14.3070186,1 L14.3070186,3.83783784 Z M26.9472092,8.59831081 C26.7934554,7.46289189 26.1652053,6.47816216 25.0233162,5.58821622 L24.3666244,5.14693243 L23.9284545,5.80928378 C23.3675067,6.66177027 23.0870329,7.84287838 23.1788346,8.97545946 C23.2202298,9.37389189 23.3503291,10.0867568 23.7572415,10.7130676 C23.3503291,10.9335676 22.550866,11.2375 21.4878251,11.2162162 L1.11545478,11.2162162 L1.07574914,11.4526081 C0.884260972,12.5908649 0.888484975,16.1429865 3.17676863,18.8729865 C4.91621339,20.9480135 7.52411333,22 10.9278156,22 C18.306587,22 23.7654079,18.5772838 26.3220566,12.3550405 C27.3259615,12.375473 29.491749,12.3607162 30.6037884,10.2201351 C30.6325117,10.1713243 30.6992509,10.0424865 30.8932735,9.63695946 L31,9.41475676 L30.3745658,8.99390541 C29.6975988,8.53786486 28.1440102,8.37071622 26.9472092,8.59831081 L26.9472092,8.59831081 Z" id="logo" fill="#FFFFFF" />
22+
<rect id="Rectangle" x="0" y="0" width="32" height="23" />
23+
</g>
24+
</g>
25+
</g>
26+
</svg>
27+
<a href="view-source:https://get.docker.com">
28+
<code>curl -fsSL https://get.docker.com | sh</code>
29+
</a>
30+
</div>
31+
</body>
32+
33+
</html>
34+
<!--

install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/sh
2+
<<\EOF
3+
${HTML}
4+
EOF
25
set -e
3-
46
# This script is meant for quick & easy install via:
57
# $ curl -fsSL https://get.docker.com -o get-docker.sh
68
# $ sh get-docker.sh

0 commit comments

Comments
 (0)