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 container example #1

Merged
merged 2 commits into from
Nov 16, 2017
Merged

Add container example #1

merged 2 commits into from
Nov 16, 2017

Conversation

lindydonna
Copy link
Contributor

No description provided.

@lindydonna lindydonna merged commit 5cc3bfa into master Nov 16, 2017
@lindydonna lindydonna deleted the container-example branch November 16, 2017 09:09
Copy link
Member

@lukehoban lukehoban left a comment

Choose a reason for hiding this comment

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

Looks great!

Might be nice to add a README with details about what this example does, and pointers to documentation for key pieces of the application.

@@ -0,0 +1,71 @@
# Copied from https://github.com/Azure-Samples/azure-voting-app-redis
Copy link
Member

Choose a reason for hiding this comment

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

If we intend to re-use the code from that example, we'll need to appropriately LICENSE this and repo (or to the voting-app folder) and likely add copyright information along the lines of: https://softwareengineering.stackexchange.com/questions/277688/if-i-fork-a-project-on-github-that-is-licensed-under-mit-how-to-i-handle-the-at

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point! Filed #2 so I don't lose track.

"@types/node-fetch": "^1.6.7",
"node-fetch": "^1.7.3",
"redis": "^2.8.0"
}
Copy link
Member

Choose a reason for hiding this comment

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

I don't think you use any of these dependencies, so you can remove these from package.json.

},
});

frontend.getEndpoint().then(e => e.hostname).then(hostname => console.log(`URL: ${hostname}`));
Copy link
Member

Choose a reason for hiding this comment

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

With the fixes in master now - you can replace these lines with:

frontend.getEndpoint().then(e => console.log(`https://${e.hostname}:${e.port}`));

With the changes in pulumi/pulumi#581, you'll be able to replace with:

export let frontendUrl = frontend.getEndpoint().then(e => `https://${e.hostname}:${e.port}`);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is AWESOME! Even the first change is so much better.

@lindydonna
Copy link
Contributor Author

Thanks for the review! I filed #3 to add the readme.

ramene pushed a commit to ramene/pulumi-kubeflow-ml that referenced this pull request Sep 7, 2019
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.

2 participants