Skip to content

Commit

Permalink
add cool webpage for get.docker.com
Browse files Browse the repository at this point in the history
  • Loading branch information
David Rivera committed Jul 11, 2019
1 parent d97f8ab commit 69cef24
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 26 deletions.
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
57 changes: 32 additions & 25 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,35 @@ CHANNEL_TO_TEST?=test
VERSION?=
SHELLCHECK_EXCLUSIONS=$(addprefix -e, SC1091 SC1117)
SHELLCHECK=docker run --rm -v "$(CURDIR)":/v -w /v koalaman/shellcheck $(SHELLCHECK_EXCLUSIONS)
CLEAN := *~

.PHONY: deps
deps: dirs docker.sh

CLEAN += build
.PHONY: dirs
dirs:
mkdir -p build

CLEAN += docker.sh
docker.sh:
@HTML='$(shell cat index.html)' envsubst < install.sh >> docker.sh


.PHONY: shellcheck
shellcheck:
$(SHELLCHECK) install.sh
shellcheck: deps
$(SHELLCHECK) docker.sh

.PHONY: check
check: $(VERIFY_INSTALL_DISTROS)

.PHONY: clean
clean:
$(RM) *-verify-install-*
$(RM) -r build
$(RM) -rf $(CLEAN)

x86_64-verify-install-%:
mkdir -p build
sed 's/DEFAULT_CHANNEL_VALUE="test"/DEFAULT_CHANNEL_VALUE="$(CHANNEL_TO_TEST)"/' install.sh > build/install.sh
CLEAN += *-verify-install-*
x86_64-verify-install-%: deps
sed 's/DEFAULT_CHANNEL_VALUE="test"/DEFAULT_CHANNEL_VALUE="$(CHANNEL_TO_TEST)"/' docker.sh > build/install.sh
set -o pipefail && docker run \
--rm \
-e VERSION \
Expand All @@ -29,9 +42,8 @@ x86_64-verify-install-%:
$(subst -,:,$*) \
/v/verify-docker-install | tee $@

armhf-verify-install-raspbian-jessie:
mkdir -p build
sed 's/DEFAULT_CHANNEL_VALUE="test"/DEFAULT_CHANNEL_VALUE="$(CHANNEL_TO_TEST)"/' install.sh > build/install.sh
armhf-verify-install-raspbian-jessie: deps
sed 's/DEFAULT_CHANNEL_VALUE="test"/DEFAULT_CHANNEL_VALUE="$(CHANNEL_TO_TEST)"/' docker.sh > build/install.sh
set -o pipefail && docker run \
--rm \
-e VERSION \
Expand All @@ -40,9 +52,8 @@ armhf-verify-install-raspbian-jessie:
resin/rpi-raspbian:jessie \
/v/verify-docker-install | tee $@

armhf-verify-install-raspbian-stretch:
mkdir -p build
sed 's/DEFAULT_CHANNEL_VALUE="test"/DEFAULT_CHANNEL_VALUE="$(CHANNEL_TO_TEST)"/' install.sh > build/install.sh
armhf-verify-install-raspbian-stretch: deps
sed 's/DEFAULT_CHANNEL_VALUE="test"/DEFAULT_CHANNEL_VALUE="$(CHANNEL_TO_TEST)"/' docker.sh > build/install.sh
set -o pipefail && docker run \
--rm \
-e VERSION \
Expand All @@ -51,9 +62,8 @@ armhf-verify-install-raspbian-stretch:
resin/rpi-raspbian:stretch \
/v/verify-docker-install | tee $@

armhf-verify-install-%:
mkdir -p build
sed 's/DEFAULT_CHANNEL_VALUE="test"/DEFAULT_CHANNEL_VALUE="$(CHANNEL_TO_TEST)"/' install.sh > build/install.sh
armhf-verify-install-%: deps
sed 's/DEFAULT_CHANNEL_VALUE="test"/DEFAULT_CHANNEL_VALUE="$(CHANNEL_TO_TEST)"/' docker.sh > build/install.sh
set -o pipefail && docker run \
--rm \
-e VERSION \
Expand All @@ -62,9 +72,8 @@ armhf-verify-install-%:
arm32v7/$(subst -,:,$*) \
/v/verify-docker-install | tee $@

aarch64-verify-install-%:
mkdir -p build
sed 's/DEFAULT_CHANNEL_VALUE="test"/DEFAULT_CHANNEL_VALUE="$(CHANNEL_TO_TEST)"/' install.sh > build/install.sh
aarch64-verify-install-%: deps
sed 's/DEFAULT_CHANNEL_VALUE="test"/DEFAULT_CHANNEL_VALUE="$(CHANNEL_TO_TEST)"/' docker.sh > build/install.sh
set -o pipefail && docker run \
--rm \
-e VERSION \
Expand All @@ -73,9 +82,8 @@ aarch64-verify-install-%:
arm64v8/$(subst -,:,$*) \
/v/verify-docker-install | tee $@

s390x-verify-install-%:
mkdir -p build
sed 's/DEFAULT_CHANNEL_VALUE="test"/DEFAULT_CHANNEL_VALUE="$(CHANNEL_TO_TEST)"/' install.sh > build/install.sh
s390x-verify-install-%: deps
sed 's/DEFAULT_CHANNEL_VALUE="test"/DEFAULT_CHANNEL_VALUE="$(CHANNEL_TO_TEST)"/' docker.sh > build/install.sh
set -o pipefail && docker run \
--rm \
-e VERSION \
Expand All @@ -84,9 +92,8 @@ s390x-verify-install-%:
s390x/$(subst -,:,$*) \
/v/verify-docker-install | tee $@

ppc64le-verify-install-%:
mkdir -p build
sed 's/DEFAULT_CHANNEL_VALUE="test"/DEFAULT_CHANNEL_VALUE="$(CHANNEL_TO_TEST)"/' install.sh > build/install.sh
ppc64le-verify-install-%: deps
sed 's/DEFAULT_CHANNEL_VALUE="test"/DEFAULT_CHANNEL_VALUE="$(CHANNEL_TO_TEST)"/' docker.sh > build/install.sh
set -o pipefail && docker run \
--rm \
-e VERSION \
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">
</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>
<!--
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh
<<\EOF
${HTML}
EOF
set -e

# This script is meant for quick & easy install via:
# $ curl -fsSL https://get.docker.com -o get-docker.sh
# $ sh get-docker.sh
Expand Down

0 comments on commit 69cef24

Please sign in to comment.