Commit Graph

88 Commits

Author SHA1 Message Date
Peter Hauke 05e462bd2b
Add output from a successful test run (#17793)
Add output from a successful test run -- because the error output from a failed test run was presented above
2023-07-21 09:48:57 -07:00
Peter Hauke 7c81c527a9
Separate command line instruction from output to enable COPY/PASTE (#17791)
Separate command line instructions from the output to enable COPY/PASTE to make it quicker and easier to follow the guide without having to type commands.

This made necessary a minor rewrite of the "Test the application" section for clarity.
2023-07-21 09:48:10 -07:00
Peter Hauke c52ceff34d
Fix typo 2023-07-21 08:27:37 +02:00
Fanny 68450b02a5
docs: fix typos (#17734)
* docs: fix typo

* Update engine/release-notes/prior-releases.md

---------

Co-authored-by: Allie Sadler <102604716+aevesdocker@users.noreply.github.com>
2023-07-13 11:22:54 +01:00
Craig Osterhout 84c9404b88
update nodejs develop section (#17696)
Signed-off-by: Craig Osterhout <craig.osterhout@docker.com>
2023-07-06 07:28:10 -07:00
Craig Osterhout 633c6be951
update nodejs langauge guide (#17659)
Signed-off-by: Craig Osterhout <craig.osterhout@docker.com>
2023-07-05 07:16:22 -07:00
John Bampton b3efa5a257
docs(whitespace): standardize `CMD` example commands (#17033) 2023-04-06 08:56:38 -07:00
Craig Osterhout dd1f3331eb
update node version (#16758) 2023-02-22 08:10:59 -08:00
Hannes Hansen 67ff95b75a
Prevent node_modules from override via mount (#16545)
In the section `Use Compose to develop locally`, a docker-compose file is shown which mounts the app directory into the `notes` container to be able to change the code without rebuilding the image. Unfortunately, the node_modules directory which was created during the build will be overridden as the whole working directory /app gets mounted. Therefore, this directory needs to be secured by adding it to the volumes.
2023-01-20 22:03:09 +00:00
Allie Sadler f956ab6552
Improve alt text on images (#16484) 2023-01-10 16:28:46 +00:00
David Karlsson bad2be0b64
build: tidy 'develop' section in guides (#16196)
Signed-off-by: David Karlsson <david.karlsson@docker.com>
2022-11-23 16:53:04 +01:00
craig-osterhout c62436fd18
fix typo 2022-11-08 14:33:15 -08:00
CrazyMax ba8ae8535f
build: context page
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-11-07 11:15:30 +01:00
Arinze Chianumba f85256ee43
fixes "Command 'docker-compose' not found" error.
This commit fixes the error thrown due to a typo in the command docker-compose -f docker-compose.dev.yml up --build. The correct command is docker compose -f docker-compose.dev.yml up --build without the hyphen between 'docker' and 'compose' in the command sequence.
2022-11-04 16:18:05 +01:00
Arinze Chianumba 31bdfddbc4
fixes "Command 'docker-compose' not found" error.
This commit fixes the error thrown due to a typo in the command `docker-compose -f docker-compose.dev.yml up --build`.
The correct command is `docker compose -f docker-compose.dev.yml up --build` without the hyphen between 'docker' and 'compose' in the command sequence
2022-11-04 15:38:07 +01:00
David Karlsson f636cc21d3 build: reworked ci/gha docs
Signed-off-by: David Karlsson <david.karlsson@docker.com>
2022-11-03 16:16:40 +01:00
Nitish Kumar 38a6523d2d
POST request changed to GET request (#16022) 2022-10-31 13:03:18 +00:00
Craig Osterhout da7b60072d
[ENGDOCS-1012] Get started refresh part 1 & 2 (#15965)
* get started refresh part 1 and 2
2022-10-27 15:32:47 -07:00
CrazyMax 2bac3f3b6c
build: merge dockerfile creation page in build section
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-25 19:46:23 +02:00
CrazyMax 271f8c3de5
build: merge build enhancements page in build section
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-25 19:46:23 +02:00
Craig Osterhout ad614f1d2c
[Issue 12622] Node.js guide - update example code (#15922)
* update server.js code
2022-10-20 13:32:12 -07:00
Akira Aso eaa8a0748b
Refine a paragraph of docker ps in Go and Python (#15873)
* Refine a paragraph of docker ps in Go and Python

* Fix typo in paragraphs about the docker ps command
2022-10-17 09:27:22 -07:00
Akira Aso 0d14bcb8c3
Make a paragraph about docker ps concise (#15839) 2022-10-11 09:59:32 -07:00
ming 50d76362e8
Update develop.md (#14315)
* Update develop.md

this makes it clear that it is the "volumes" that can sync local code changes to that in the container.

* Update language/nodejs/develop.md

Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
2022-09-30 12:40:59 +01:00
CrazyMax 561118ec5b
rename docs repository
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-09-29 11:07:53 +02:00
Craig Osterhout cf480fae08
rename branch and add note (#15378) 2022-08-23 13:43:03 -07:00
Justin Chadwell ad45d2d936 lint: tidy spaces inside spans 2022-07-28 11:27:10 +01:00
CrazyMax 2482f8ce04
Remove unneeded <br> HTML tags
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-07-14 19:54:47 +02:00
Grant Mitchell 00cc2961b7
added what file type the github actions is
I added this as it might be confusing for some people who dont write in yaml every day to know what file it is. it is best to explicitly state what file type it is
2022-06-23 13:57:51 -07:00
Dovydas Lozys 5edae78bdd
fixes typos 2022-03-25 17:58:00 +00:00
Nicholas Rasi a3b576c0a8
Fix Small Typo 2022-03-19 18:38:49 +01:00
Usha Mandya 1c402e7fbf
Merge pull request #14272 from ValeriiMakhniuk/patch-1
add link to volumes.md docs
2022-02-25 11:04:47 +00:00
Usha Mandya 9c63f89aac
Update language/nodejs/develop.md 2022-02-25 11:01:06 +00:00
OGUNSOLA USMAN ADEBAYO f5ed385f5b
Update develop.md (#14025)
* Update develop.md

- provided more clarity to the structure of the mongo database connection string used as CONNECTIONSTRING environment variable to run the docker image in the sample node.js project.

* Update develop.md
2022-02-24 14:15:46 +00:00
Valerii Makhniuk 6617ca3c95
add link to volumes.md docs 2022-02-16 20:32:31 +03:00
Jake Levirne 3d9c6aff71
Minor typo - fixed case 2022-02-13 17:10:21 -05:00
HARIHARAN E 65ddb87fd0
modify yoda_notes to notes at line 85 2022-01-21 12:49:03 +05:30
vuurball a93c040494
Update develop.md
typo fix
2022-01-16 14:30:06 +02:00
Dan Bamikiya 2452b40e9a
Remove usage of outdated `GHCR_TOKEN` (#13710)
* Remove usage of outdated GHCR_TOKEN

* Prefer {{ github.actor }} over {{ github.repository_owner }}

* Update language/java/configure-ci-cd.md with note about GITHUB_TOKEN

Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>

* Update language/nodejs/configure-ci-cd.md with note about GITHUB_TOKEN

Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>

* Update language/python/configure-ci-cd.md with note about GITHUB_TOKEN

Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>

Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
2021-11-26 12:38:53 +00:00
Dan Bamikiya cc5d5db7c5
Explain the use of the `COPY` command in the NodeJS example (#13711)
* Explain the use of the COPY command in nodejs example

* Format updates

Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
2021-11-19 12:18:37 +00:00
Sebastiaan van Stijn a045d5d100
Merge pull request #13727 from califken/patch-2
Update run-containers.md
2021-11-11 15:02:18 +01:00
seungwonleee 5131e29bfd Fix typo Language-specific guides / Nodejs / Run your tests 2021-11-06 02:30:41 +09:00
seungwonleee 0056623a58 Fix typo Language-specific guides / Nodejs / Run containers 2021-11-06 02:29:30 +09:00
Kenneth Caple f1242413b7
Update run-containers.md 2021-10-23 14:10:04 -07:00
Masahiro Aoki 9dd353952b
Update run-containers.md 2021-09-09 13:54:54 +09:00
Sebastiaan van Stijn fbd8c365c8
language/nodejs: un-wrap JSON in example to allow copying
The JSON string was wrapped, causing the highlighter to consider it "output",
which cannot be selected/copied in "console" blocks.

This unwraps the JSON so that it can be copied.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-09-02 16:56:29 +02:00
Sebastiaan van Stijn d1fbf5c959
guides: use include for "create a Dockerfile" sections
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-25 13:42:32 +02:00
Sebastiaan van Stijn 1583678203
Add missing code-hints, and minor markdown edits
- Add missing code-hints (console, yaml)
- Consistently add an empty line after code-blocks
- Combine some examples where the output and the command were
  put in separate blocks. With the "console" code-hint, this
  is no longer nescessary.
- fix indentation in cloud/ecs-integration.md, which caused the
  numbered-list to be interrupted.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-16 12:59:23 +02:00
kurama f4655fb89e
fix: typo (#13348)
* fix: typo

* Minor style updates

Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
2021-08-16 11:57:31 +01:00
DJ Adams 5dd725fb4f
add explicit instruction to stop local server (#13235)
* add explicit instruction to stop local server

This relates to the [Test the application section of the Build images tutorial](https://docs.docker.com/language/nodejs/build-images/#test-the-application). 

In this section, `node server.js` is used to start the server locally. The reader is not instructed to stop the server. 

In the [Run containers](https://docs.docker.com/language/nodejs/run-containers/) tutorial that follows this one, the reader is instructed to start up the container, and try to access `http://localhost:8000/test` which is now being served from the Node.js process inside the container. However, if the local Node.js process from the `node server.js` invocation earlier, they won't see the "Failed to connect to localhost port 8000" error which they're supposed to see. 

So this modification adds an explicit instruction to the "Build containers" tutorial to stop the `node server.js` process, to avoid any potential confusion in the "Run containers" tutorial.

Great tutorials, btw!

* show what happens with Ctrl-c

add suggestions from @thaJeztah, plus the same language identifier on the triple-backtick quoted output earlier (`console`).

* Minor styling updates

Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
2021-08-09 11:26:37 +01:00