Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prantlf/docker-node-git-chromium
Docker image: Node.js LTS on Alpine Linux with Git and Chromium
https://github.com/prantlf/docker-node-git-chromium
chromium docker docker-image git node node-lts nodejs
Last synced: 10 days ago
JSON representation
Docker image: Node.js LTS on Alpine Linux with Git and Chromium
- Host: GitHub
- URL: https://github.com/prantlf/docker-node-git-chromium
- Owner: prantlf
- License: mit
- Created: 2019-12-08T12:46:23.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-05T13:54:41.000Z (about 3 years ago)
- Last Synced: 2024-12-05T18:11:43.448Z (2 months ago)
- Topics: chromium, docker, docker-image, git, node, node-lts, nodejs
- Language: Makefile
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# prantlf/node-git-chromium
[Docker] image: Node.js LTS on Alpine Linux with Git and Chromium
[![nodesource/node](http://dockeri.co/image/prantlf/node-git-chromium)](https://hub.docker.com/repository/docker/prantlf/node-git-chromium/)
[This image] is supposed to build and test [Node.js packages (NPM modules)], which include dependencies pulled by [Git] ant their unit tests need [headless Chromium]. It is built automatically on the top of the tag `lts-alpine` from the [node repository], so that it always runs the current [LTS version] of [Node.js] in the latest [Alpine Linux]. [Git] and [Chromium] have to be updated from time to time by triggering a new build manually.
If you have trouble pulling the image from the Docker's default hub.docker.com, try gitlab.com, where [this project] is primarily maintained: `registry.gitlab.com/prantlf/docker-node-git-chromium`.
## Tags
- [`latest`], `lts-alpine`
## Install
```
docker pull prantlf/node-git-chromium:lts-alpine
```## Use
```
docker run --rm -it -v "$(pwd)":/app -w /app \
prantlf/node-git-chromium:lts-alpine \
sh -c 'npm ci && npm test'
```See [how to use the base node image] for more information.
## Build, Test and Publish
The local image is built as `node-git-chromium` and pushed to the docker hub as `prantlf/node-git-chromium:lts-alpine`.
Remove an old local image:
make clean
Build a new local image:
make build
Enter an interactive shell inside the created image:
make run
Tag the local image for pushing:
make tag
Login to the docker hub:
make login
Push the local image to the docker hub:
make push
## License
Copyright (c) 2019-2021 Ferdinand Prantl
Licensed under the MIT license.
[Docker]: https://www.docker.com/
[This image]: https://hub.docker.com/repository/docker/prantlf/node-git-chromium
[this project]: https://gitlab.com/prantlf/docker-node-git-chromium#prantlfnode-git-chromium
[`latest`]: https://hub.docker.com/repository/docker/prantlf/node-git-chromium/tags
[Node.js packages (NPM modules)]: https://docs.npmjs.com/about-packages-and-modules
[Git]: https://git-scm.com/
[headless Chromium]: https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
[Chromium]: https://www.chromium.org/
[node repository]: https://hub.docker.com/_/node
[LTS version]: https://nodejs.org/en/about/releases/
[Node.js]: https://nodejs.org/
[Alpine Linux]: https://alpinelinux.org/
[how to use the base node image]: https://github.com/nodejs/docker-node/blob/master/README.md#how-to-use-this-image