Public Repository

Last pushed: a year ago
Short Description
Build of https://github.com/kayateia/lifestream-node-server
Full Description

Requirements

This image expects a running instance of MySQL or MariaDB to be available from another Docker container. It expects to be linked to that instance (e.g. --link some-maria-db:mysql).

How to use this image

First run

Before lifestream-node-server is started for the first time, ensure that config.js already exists in a data volume bound to /app/config.js. The file should be based on the reference template.

When starting lifestream-node-server for the first time, use a command line like the following:

docker run --name lifestream-node-server --link some-mariadb:mysql -v /path/to/config.js:/app/config.js -v /path/to/uploads:/app/uploads -e MYSQL_ADMIN_USER=root -e MYSQL_ADMIN_PASSWORD=my-secret-pw deciare/lifestream-node-server /app/init.sh

After the first run, you may start the container as detailed in the Usage section.

Normal startup

In regular usage, start the container with a command line like the following:

docker run --name lifestream-node-server --link some-mariadb:mysql -v /path/to/config.js:/app/config.js -v /path/to/uploads:/app/uploads deciare/lifestream-node-server

Port 3000 is exposed by this image.

Dockerfile

FROM node

# Install system dependencies for lifestream-node-server
RUN apt-get update && apt-get install -y \
    graphicsmagick \
    mariadb-client
RUN npm install -g bower forever

# Obtain latest code for lifestream-node-server from git
RUN git clone https://github.com/kayateia/lifestream-node-server.git /app

# Install application dependencies for lifestream-node-server
WORKDIR /app
RUN git checkout deciare
RUN npm install
RUN bower install --allow-root

# Run the lifestream-node-server application
EXPOSE 3000
CMD forever -w --watchDirectory . --watchIgnore 'uploads/*' bin/www
Docker Pull Command
Owner
deciare

Comments (0)