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

Conversation

duhruh
Copy link

@duhruh duhruh commented Jul 11, 2019

Screen Shot 2019-07-11 at 2 54 53 PM

@GordonTheTurtle
Copy link

Please sign your commits following these rules:
https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:

$ git clone -b "feature/web-page" [email protected]:duhruh/docker-install.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

Copy link
Contributor

@seemethere seemethere left a comment

Choose a reason for hiding this comment

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

Have a bit of an issue the way you defined the make targets, but everything looks good to me.

No idea why you're getting all the shellcheck issues though.

Seems as though adding the html makes shellcheck unhappy.

Makefile Outdated
mkdir -p build

CLEAN += docker.sh
docker.sh:
Copy link
Contributor

@seemethere seemethere Jul 15, 2019

Choose a reason for hiding this comment

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

This should actually just be build/docker.sh

And then the rule could be defined as:

.PHONY: build
build: build/docker.sh

build/docker.sh: install.sh index.html
	mkdir -p build
	@HTML='$(shell cat index.html)' envsubst < $< >> $@

Seems a bit convoluted to do it the way you're doing it here.

@nemchik
Copy link

nemchik commented Jul 15, 2019

A recent change to shellcheck seems to have made SC2034 a little more strict.

https://github.com/koalaman/shellcheck/releases/tag/v0.6.0 released Dec 3, 2018 but the latest tag on https://hub.docker.com/r/koalaman/shellcheck/tags was pushed Jul 4, 2019.

@seemethere
Copy link
Contributor

I also believe the ensubst might be the issue, you need to be selective on which vars are going to be substituted, for reference: https://unix.stackexchange.com/a/294400/249966

@seemethere
Copy link
Contributor

@duhruh can you rebase now that #131 is merged in, should hopefully make getting this in a bit easier.

@seemethere seemethere force-pushed the feature/web-page branch 2 times, most recently from 6ba1e38 to 369867a Compare July 16, 2019 17:32
Signed-off-by: David Rivera <[email protected]>
Signed-off-by: Eli Uriegas <[email protected]>
<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

@@ -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

@MichaIng
Copy link
Contributor

MichaIng commented Dec 9, 2019

Hmm, actually I like to have the code shown in browser. Easiest way to quickly search through code from desktop. One can copy&paste or "save to file" as well. Not sure about the benefit of having a website instead which just shows the same command line that you very likely got the URL itself from? 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants