Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add cool webpage for get.docker.com #129

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*verify-install-*
build/
docker.sh
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,20 @@ VERSION?=
CHANNEL?=

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

ENVSUBST_VARS=LOAD_SCRIPT_COMMIT_SHA
ENVSUBST_VARS=LOAD_SCRIPT_COMMIT_SHA HTML

.PHONY: build
build: build/install.sh

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

.PHONY: shellcheck
shellcheck: build/install.sh
Expand Down
41 changes: 41 additions & 0 deletions assets/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
* {
text-indent:-9999px;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
font-family: "Open Sans", sans-serif;
}
html{
background: #2596ec;
color: #2596ec;
}
body{
display: block;
position: fixed;
color: #DDD;
overflow: hidden;
width: 100%;
height: 100%;
top: 0px;
right: 0px;
display: flex;
justify-content: center;
align-items: center;
}
svg {
display: block;
margin: auto;
}
a {
color:white;
text-decoration:none;
text-align: center;
}
code {
text-indent:0px;
display:block;
font-size:20px;
}
34 changes: 34 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="en">

<head>
<title>Docker</title>
<meta name="viewport" content="initial-scale = 1, maximum-scale=1, user-scalable = 0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="HandheldFriendly" content="true" />
<meta name="MobileOptimized" content="320" />
<link href="/david.rivera/assets/style.css" rel="stylesheet" type="text/css">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should probably change this to a different href

</head>

<body>

<div>
<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 23" style="fill: rgb(9, 156, 236);height: 100px;">
<g id="Side-Panel-v5" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
<g id="Controller-Page" transform="translate(-9.000000, -26.000000)">
<g id="moby" transform="translate(8.000000, 25.000000)">
<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" />
<rect id="Rectangle" x="0" y="0" width="32" height="23" />
</g>
</g>
</g>
</svg>
<a href="view-source:https://get.docker.com">
<code>curl -fsSL https://get.docker.com | sh</code>
</a>
</div>
</body>

</html>
<!--
5 changes: 5 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/sh

cat >/dev/null <<\EOF
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is for shellcheck purposes

${HTML}
EOF

set -e

# This script is meant for quick & easy install via:
Expand Down