From d6635a8441e7c1ff8761203540088837cedf327e Mon Sep 17 00:00:00 2001 From: David Rivera Date: Thu, 11 Jul 2019 14:55:26 -0700 Subject: [PATCH] add cool webpage for get.docker.com Signed-off-by: David Rivera Signed-off-by: Eli Uriegas --- .gitignore | 1 + Makefile | 11 +++++++---- assets/style.css | 41 +++++++++++++++++++++++++++++++++++++++++ index.html | 34 ++++++++++++++++++++++++++++++++++ install.sh | 5 +++++ 5 files changed, 88 insertions(+), 4 deletions(-) create mode 100644 assets/style.css create mode 100644 index.html diff --git a/.gitignore b/.gitignore index ea5233d4..e0eee709 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *verify-install-* build/ +docker.sh \ No newline at end of file diff --git a/Makefile b/Makefile index 33017cfb..10b24cef 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/assets/style.css b/assets/style.css new file mode 100644 index 00000000..edeeb3d7 --- /dev/null +++ b/assets/style.css @@ -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; +} \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 00000000..307929b3 --- /dev/null +++ b/index.html @@ -0,0 +1,34 @@ + + + + + Docker + + + + + + + + + + +
+ + + + + + + + + + + + curl -fsSL https://get.docker.com | sh + +
+ + + +