Coder Social home page Coder Social logo

tabcorp / nodejs-docker-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from buildkite/nodejs-docker-example

0.0 10.0 1.0 4 KB

An example of how to run a Node.js project in Docker in a Buildkite pipeline

Home Page: https://github.com/buildkite/sample-pipelines

License: MIT License

JavaScript 100.00%

nodejs-docker-example's Introduction

Buildkite Node.js Docker Example

Add to Buildkite

This repository is an example on how to test a Node.js project using Buildkite and Docker. It uses the standard Node.js Docker image and Buildkite’s Docker-based Builds.

Running locally

To run this locally:

$ docker-compose run app npm test
Building app
Step 1 : FROM node:4
 ---> 974e1406ebd1
Step 2 : RUN mkdir /app
 ---> Using cache
 ---> 2be1f0882e29
Step 3 : WORKDIR /app
 ---> Using cache
 ---> dd91fed1c1bc
Step 4 : ENV PATH /app/node_modules/.bin:$PATH
 ---> Using cache
 ---> e8560fc51b84
Step 5 : ADD package.json /app
 ---> Using cache
 ---> 26d23840ccaf
Step 6 : RUN npm install
 ---> Using cache
 ---> a4e75813537e
Step 7 : ADD . /app
 ---> 1c562d4f3359
Removing intermediate container bc71f870bea0
Successfully built 1c562d4f3359
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info pretest nodejs-docker-example@
npm info test nodejs-docker-example@

> nodejs-docker-example@ test /app
> mocha ./test.js



  String#split
    ✓ should return an array


  1 passing (10ms)

npm info posttest nodejs-docker-example@
npm info ok 

License

See Licence.md (MIT)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.