Skip to content

Docker-nano/Node.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nano Node.js with npm

Build status

This is a Docker container for Buildroot for building a root file system (rootfs) containing Node.js with npm. Assets for building the final image using the rootfs are placed in the product directory.

Building

To build the rootfs follow these steps.

  1. ./nano build image – Build the Docker image locally.
  2. ./nano run – Removes any previous container started by this script and runs a new interactive container.
  3. buildroot-configure – Configure Buildroot to install desired packages.
  4. buildroot – Build new rootfs.
  5. [Ctrl]+[D] – Exit container.
  6. ./nano pull rootfs – Copies the compressed rootfs tarball from the container to the product directory.

Creating a Docker image

  1. docker build -t nano/node.js product

Travis CI

Travis automatically builds the rootfs when this repository is updated and commits the output to a copy of the product directory. The result is pushed to a different branch of the same name but with a product prefix, e.g. product/master. This triggers Docker Hub to build the final image at nano/node.js.

Travis does not support Docker yet so the entire Buildroot environment has to be replicated using .travis.bash. This also means Travis can only test the rootfs and not the resulting Docker image.

About

Nano Node.js with npm Docker image.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published