Sign inSign up

prantlf/node-git-chromium-java

By prantlf

•Updated almost 5 years ago

Node.js LTS on Alpine Linux with Git, Chromium and Java

Image
0

345

prantlf/node-git-chromium-java repository overview

⁠prantlf/node-git-chromium-java

Docker⁠ image: Node.js LTS on Alpine Linux with Git, Chromium and Java

nodesource/node

This image⁠ is supposed to build and test Node.js packages (NPM modules)⁠, which include dependencies pulled by Git⁠ and their tests need headless Chromium⁠ driven by Selenium⁠. ([Java 8)] or OpenJDK⁠ are included.) 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⁠, Chromium⁠ and Java 8⁠/OpenJDK⁠ have to be updated from time to time by triggering a new build manually.

⁠Tags

⁠Install

docker pull prantlf/node-git-chromium-java:lts-alpine-java8
# or
docker pull prantlf/node-git-chromium-java:lts-alpine-openjdk

⁠Use

docker run --rm -it -v "$(pwd)":/app -w /app \
  prantlf/node-git-chromium-java:lts-alpine-openjdk \
  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-java and pushed to the docker hub with tags prantlf/node-git-chromium-java:lts-alpine-java8 and prantlf/node-git-chromium-java:lts-alpine-openjdk.

Remove an old local image:

make clean

Build and tag new local images:

make build

Enter an interactive shell inside the latest created image:

make run

Login to the docker hub:

make login

Push the local image to the docker hub:

make push

⁠License

Copyright (c) 2020 Ferdinand Prantl

Licensed under the MIT license.

Tag summary

Content type

Image

Digest

Size

217.7 MB

Last updated

almost 5 years ago

docker pull prantlf/node-git-chromium-java:lts-alpine-openjdk