Skip to content
Myr

[readme] Docker: Just say "Ubuntu" (no version) for base image

Before adoption: this commit came in with the history the project adopted, so no landing records it.

The base image is updated regularly (it's currently 22.04), and it's easy to forget to update this readme, so best we simply not repeat ourselves and instead let people look at `Dockerfile` to see exactly which version of Ubuntu it's using.

authored by Curt J. Sampson · committed by Jordan Harband · parent e2e612e · Browse files · 1 file+9 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−8 removed

  • other:+9 added−8 removed

1 file+9 added−8 removed

modified:README.md+9 added-8 removed
996 unmodified lines
997```998999## Docker For Development Environment10001001To make the development and testing work easier, we have a Dockerfile for development usage, which is based on Ubuntu 18.04 base image, prepared with essential and useful tools for `nvm` development, to build the docker image of the environment, run the docker command at the root of `nvm` repository:1001To make development and testing work easier we supply a Dockerfile for development usage. It's based on an Ubuntu base image prepared with essential and useful tools for `nvm` development. To build the docker image of the environment, do a Docker build at the root of `nvm` repository:10021003```sh1004$ docker build -t nvm-dev .1005```10061007This will package your current nvm repository with our pre-defined development environment into a docker image named `nvm-dev`, once it's built with success, validate your image via `docker images`:1007This will package your current nvm working copy with our pre-defined development environment into a Docker image named `nvm-dev`. After the build you should see it appear in the list of images:10081009```sh1010$ docker images10111012REPOSITORY TAG IMAGE ID CREATED SIZE1013nvm-dev latest 9ca4c57a97d8 7 days ago 650 MB1014```10151016If you got no error message, now you can easily involve in:1016To start and enter a container based on this image:10171018```sh1019$ docker run -h nvm-dev -it nvm-dev10201021nvm@nvm-dev:~/.nvm$1022```10231024Please note that it'll take about 8 minutes to build the image and the image size would be about 650MB, so it's not suitable for production usage.1024It takes about about 8 minutes to build the image and the image size is about 650MB, so it's not suitable for production usage.10251026For more information and documentation about docker, please refer to its official website:1026For more information and documentation about Docker, please refer to its [official website][docker-www] and [documentation][docker-docs]:10271028 - https://www.docker.com/1029 - https://docs.docker.com/10301028## Problems10291030 - If you try to install a node version and the installation fails, be sure to run `nvm cache clear` to delete cached node downloads, or you might get an error like the following:1031
169 unmodified lines
1201## Copyright notice12021203Copyright [OpenJS Foundation](https://openjsf.org) and `nvm` contributors. All rights reserved. The [OpenJS Foundation](https://openjsf.org) has registered trademarks and uses trademarks. For a list of trademarks of the [OpenJS Foundation](https://openjsf.org), please see our [Trademark Policy](https://trademark-policy.openjsf.org/) and [Trademark List](https://trademark-list.openjsf.org/). Trademarks and logos not indicated on the [list of OpenJS Foundation trademarks](https://trademark-list.openjsf.org) are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.1204[The OpenJS Foundation](https://openjsf.org/) | [Terms of Use](https://terms-of-use.openjsf.org/) | [Privacy Policy](https://privacy-policy.openjsf.org/) | [Bylaws](https://bylaws.openjsf.org/) | [Code of Conduct](https://code-of-conduct.openjsf.org) | [Trademark Policy](https://trademark-policy.openjsf.org/) | [Trademark List](https://trademark-list.openjsf.org/) | [Cookie Policy](https://www.linuxfoundation.org/cookies/)12051206<!-------------------------------------------------------------------->1207[docker-docs]: https://docs.docker.com/1208[docker-www]: https://www.docker.com/