ht-docker-node/readme.md

60 lines
3.0 KiB
Markdown
Raw Permalink Normal View History

2019-05-08 20:27:59 +00:00
# @hosttoday/ht-docker-node
2022-03-22 14:02:45 +00:00
docker image with nodejs and [ship.zone](https://ship.zone) support
2016-03-07 02:32:20 +00:00
2019-05-08 20:27:59 +00:00
## Availabililty and Links
* [npmjs.org (npm package)](https://www.npmjs.com/package/@hosttoday/ht-docker-node)
* [gitlab.com (source)](https://gitlab.com/hosttoday/ht-docker-node)
* [github.com (source mirror)](https://github.com/hosttoday/ht-docker-node)
* [docs (typedoc)](https://hosttoday.gitlab.io/ht-docker-node/)
2017-04-02 20:13:52 +00:00
2019-05-08 20:27:59 +00:00
## Status for master
[![build status](https://gitlab.com/hosttoday/ht-docker-node/badges/master/build.svg)](https://gitlab.com/hosttoday/ht-docker-node/commits/master)
[![coverage report](https://gitlab.com/hosttoday/ht-docker-node/badges/master/coverage.svg)](https://gitlab.com/hosttoday/ht-docker-node/commits/master)
[![npm downloads per month](https://img.shields.io/npm/dm/@hosttoday/ht-docker-node.svg)](https://www.npmjs.com/package/@hosttoday/ht-docker-node)
[![Known Vulnerabilities](https://snyk.io/test/npm/@hosttoday/ht-docker-node/badge.svg)](https://snyk.io/test/npm/@hosttoday/ht-docker-node)
[![TypeScript](https://img.shields.io/badge/TypeScript->=%203.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
[![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-prettier-ff69b4.svg)](https://prettier.io/)
2017-04-02 20:13:52 +00:00
2016-03-07 02:32:20 +00:00
## Usage
2019-05-08 20:27:59 +00:00
2016-07-12 14:20:58 +00:00
The purpose of this Docker image is to provide a robust base for node apps and CI.
It comes in different flavours and all of them have node, npm, git and ssh in PATH.
2016-06-08 21:09:24 +00:00
2016-07-12 14:20:58 +00:00
The **:npmci flavour** has npmci in path and can install any required node version and update PATH accordingly:
2016-03-07 02:32:20 +00:00
2016-03-07 02:35:09 +00:00
```Dockerfile
2016-07-12 14:20:58 +00:00
FROM hosttoday/ht-docker-node:npmci
2016-05-30 02:19:09 +00:00
RUN npmci install [node_version_number] // this installs node using node and sets the default to the new node and npm versions
2016-03-07 02:35:09 +00:00
```
2019-05-08 20:27:59 +00:00
## Availability
2019-06-08 19:36:23 +00:00
| Registry | Image Path |
| --------------- | -------------------------------------------- |
| GitLab Registry | registry.gitlab.com/hosttoday/ht-docker-node |
| Docker Hub | hosttoday/ht-docker-node |
2016-06-08 21:09:24 +00:00
2019-05-08 20:27:59 +00:00
## Flavour Overview
- **:lts** - node lts version, equals :latest
- **:stable** - node stable version
- **:npmci** - npmci preinstalled
- **:npmts** - npmci + npmts preinstalled
- **:npmpage** - npmci + npmts + npmpage preinstalled
- **:mongo** - npmci + npmts + mongo
2017-04-02 20:13:52 +00:00
For further information read the linked docs at the top of this README.
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
2019-05-08 20:27:59 +00:00
> | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
2017-04-02 20:13:52 +00:00
[![repo-footer](https://hosttoday.gitlab.io/assets/repo-footer.svg)](https://host.today)
2019-05-08 20:27:59 +00:00
For further information read the linked docs at the top of this readme.
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
2019-08-23 15:25:47 +00:00
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
2019-05-08 20:27:59 +00:00
2019-08-23 15:25:47 +00:00
[![repo-footer](https://lossless.gitlab.io/publicrelations/repofooter.svg)](https://maintainedby.lossless.com)