Skip to content

azukiapp/docker-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Circle CI Docker Pulls ![Gitter](https://badges.gitter.im/Join Chat.svg)

Base docker image to run Node applications in azk

Versions (tags)

- [`latest`, `5`, `5.2`, `5.2.0`](https://github.com/azukiapp/docker-node/blob/master/5/Dockerfile) - [`4`, `4.2`, `4.2.1`](https://github.com/azukiapp/docker-node/blob/master/4/Dockerfile) - [`0`, `0.12`, `0.12.7`](https://github.com/azukiapp/docker-node/blob/master/0.12/Dockerfile) - [`0.10`, `0.10.40`](https://github.com/azukiapp/docker-node/blob/master/0.10/Dockerfile) - [`0.11`, `0.11.14`](https://github.com/azukiapp/docker-node/blob/master/0.11.14/Dockerfile)

Image content:

  • Ubuntu 14.04
  • Git
  • VIM
  • npm

Database:

  • PostgreSQL client
  • MySQL client
  • MongoDB
  • SQLite3

Usage with azk

Example of using this image with azk:

/**
 * Documentation: http://docs.azk.io/Azkfile.js
 */

// Adds the systems that shape your system
systems({
  "my-app": {
    // Dependent systems
    depends: [], // postgres, mysql, mongodb ...
    // More images:  http://images.azk.io
    image: {"docker": "azukiapp/node"},
    // Steps to execute before running instances
    provision: [
      "npm install",
    ],
    workdir: "/azk/#{manifest.dir}",
    shell: "/bin/bash",
    command: "npm start",
    wait: {"retry": 20, "timeout": 1000},
    mounts: {
      '/azk/#{manifest.dir}': path("."),
    },
    scalable: {"default": 1},
    http: {
      // my-app.dev.azk.io
      domains: [ "#{system.name}.#{azk.default_domain}" ]
    },
    ports: {
      http: "8000"
    },
    envs: {
      // set instances variables
      NODE_ENV: "dev",
    },
  },
});

Usage with docker

To create the image azukiapp/node, execute the following command on the docker-node folder:

$ docker build -t azukiapp/node 0.10/

To run the image and bind to port 8000:

$ docker run -it --rm --name my-app -p 8000:8000 -v "$PWD":/myapp -w /myapp azukiapp/node node server.js

Logs

# with azk
$ azk logs my-app

# with docker
$ docker logs <CONTAINER_ID>

License

Azuki Dockerfiles distributed under the Apache License.

About

Node.js Dockerfile for trusted automated Docker builds.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published