Build environment based on the official node Docker images.
Includes:
$HOME is set to /root/.
To use the docker commands with a Docker build server, you will need the
appropriate environment variables:
AWS_ACCESS_KEY_ID - Used to get Docker build server certificates, ECR
loginAWS_SECRET_ACCESS_KEYAWS_DEFAULT_REGIONS3_DOCKER_CERT_LOCATION - s3:// Location to copy *.pem certs fromDOCKER_HOST - tcp:// Host to connect toDOCKER_TLS_VERIFY - Should always be 1DOCKERHUB_USERNAME - Docker Hub username to use to loginDOCKERHUB_PASSWORD - Docker Hub password to use with said usernameThen your build script must call: $HOME/setup-docker.bash to login to
ECR/Dockerhub and copy docker server client certificates.
To use private npm repositories you must set the NPM_TOKEN environment
variable.
To use bitbucket hosted npm modules you must set the S3_SSH_KEY_LOCATION
environment variable for the private key you wish to use for bitbucket ssh
access. Then your build script must call: $HOME/setup-ssh.bash to configure
ssh key and known_hosts.
To use webdriver against firefox or chromium, you will need to run
$HOME/start-xvfb.bash before your tests. This script respects
XVFB_SCREEN_DIMENSIONS to set the screen dimensions to your liking. The
default dimensions are 1280x1024x16. The default DISPLAY is :1.0.
Set NPM_CONFIG_LOGLEVEL=warn on run to prevent unnecessary npm output.
Set bower_quiet=true on run to prevent unnecessary bower output.
Content type
Image
Digest
sha256:c56b02f6a…
Size
855.2 MB
Last updated
5 days ago
docker pull jhtna/node-build:24