Node.js example with dependency handling and hot-reload#1148
Merged
dgageot merged 1 commit intoGoogleContainerTools:masterfrom Oct 16, 2018
Merged
Node.js example with dependency handling and hot-reload#1148dgageot merged 1 commit intoGoogleContainerTools:masterfrom
dgageot merged 1 commit intoGoogleContainerTools:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1148 +/- ##
=======================================
Coverage 42.18% 42.18%
=======================================
Files 89 89
Lines 3999 3999
=======================================
Hits 1687 1687
Misses 2143 2143
Partials 169 169Continue to review full report at Codecov.
|
Contributor
|
Thanks! I’ll take a look soon |
r2d4
approved these changes
Oct 12, 2018
Contributor
r2d4
left a comment
There was a problem hiding this comment.
LGTM. We don't have an integration test for this yet FYI, so I'll let another reviewer manually verify it.
dgageot
suggested changes
Oct 12, 2018
Contributor
Author
|
*@dgageot Do you prefer an additional commit or a rebased one?*
…On Fri, 12 Oct 2018 at 20:00, David Gageot ***@***.***> wrote:
***@***.**** requested changes on this pull request.
------------------------------
In integration/examples/nodejs/README.adoc
<#1148 (comment)>
:
> @@ -0,0 +1,16 @@
+=== Example: Node.js with hot-reload
+:icons: font
+
+Simple example based on Node.js demonstating the file synchronization mode.
s/demonstating/demonstrating
------------------------------
In integration/examples/nodejs/backend/Dockerfile
<#1148 (comment)>
:
> @@ -0,0 +1,9 @@
+FROM node:8.12.0-alpine
+
+WORKDIR /opt/backend
+
+COPY . /opt/backend
Can be COPY . .
------------------------------
In integration/examples/nodejs/backend/Dockerfile
<#1148 (comment)>
:
> @@ -0,0 +1,9 @@
+FROM node:8.12.0-alpine
+
+WORKDIR /opt/backend
+
+COPY . /opt/backend
+RUN npm install
+
+CMD ["npm", "run", "dev"]
Can be moved up just after WORKDIR
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1148 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARG3YZWUnWFvJ97DJfTu6RdaSjrIZhPks5ukNjHgaJpZM4XZZBF>
.
|
Contributor
|
As you see fit |
2399026 to
076dbf6
Compare
Contributor
Author
|
@dgageot done |
r2d4
reviewed
Oct 15, 2018
076dbf6 to
85ed343
Compare
dgageot
approved these changes
Oct 16, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an implementation of the new file sync feature with Node.js.
It's more realistic than current one in
hot-reloaddir, as it features dependency handling withnpmandpackage.json.