https://github.com/open-southeners/docker-fnm
Fast Node Manager dockerised for CI usage
https://github.com/open-southeners/docker-fnm
docker-image experiments fnm node-version-manager nodejs
Last synced: about 2 months ago
JSON representation
Fast Node Manager dockerised for CI usage
- Host: GitHub
- URL: https://github.com/open-southeners/docker-fnm
- Owner: open-southeners
- License: mit
- Created: 2022-01-31T13:39:53.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-03T13:23:09.000Z (almost 4 years ago)
- Last Synced: 2025-01-21T07:44:32.516Z (over 1 year ago)
- Topics: docker-image, experiments, fnm, node-version-manager, nodejs
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker FNM
Fast Node Manager dockerised for CI or other edge usages.
[](https://hub.docker.com/r/d8vjork/fnm) [](https://github.com/d8vjork/docker-fnm/actions/workflows/publish.yml)
## Getting starter
Imagine that you simply have a `.node-version` file with `14` on its content, so your project will be constrained by this NodeJS version, and therefore this Docker container will automatically use this version (but it's not limited to, as it wraps FNM: [read more here](https://github.com/Schniz/fnm)).
### Standalone
```sh
docker run --rm -v $PWD/myapp:/work d8vjork/fnm fnm --help
```
### Gitlab CI
```yaml
build_publish:
image: d8vjork/fnm
script:
- yarn install
- yarn build
- npm version --allow-same-version ${CI_COMMIT_TAG}
- npm publish
# More here... maybe?
```