Tag: node.js

How does docker-compose link work?

I have three containers, web, rest and db. I want rest (nodejs) to be able to access db (mongodb). My docker-compose.yml: version: ‘2’ services: web: build: front depends_on: – db – rest db: build: backend/mongodb volumes: – /src/docker/mongodb:/var/lib/mongodb restart: always rest: build: backend/rest restart: always links: – db:database In my nodejs program: MongoClient.connect(“mongodb://database:27017/mytest”, function (err, […]

node.JS application in docker container

I have my node.JS application running in a docker container. While most of the functioning of this setup is normal but it fails to work with kafka-node module. Exception thrown is /app/node_modules/kafka-node/node_modules/snappy/node_modules/bindings/bindings.js:83 throw e ^ Error: Module did not self-register. at Error (native) at Object.Module._extensions..node (module.js:434:18) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) […]

Integration Tests with Microservices (NodeJS), Jenkins and Docker

How would you typically configure Jenkins to build microservices (multiple NodeJS services, Rabbit, Mongo, etc), then test those services all together ? Let’s say I’ve the following services: RabbitMQ Mongo NodeJS Service 1 NodeJS Service 2 Each of them has their own tests (unit and integration) and their Dockerfile. I want to configure Jenkins in […]

supervoord gave up nodejs entered FATAL state

I am deploying a node app to aws eb, here is my Dockerfile FROM ubuntu:14.04 RUN rm /bin/sh && ln -s /bin/bash /bin/sh # Install base packages ENV DEBIAN_FRONTEND noninteractive RUN apt-get update && apt-get install -y \ zsh \ vim \ git \ curl \ build-essential \ nodejs \ npm \ supervisor RUN update-alternatives […]

Deploying and Accessing Database Inside Docker Container

I’m trying to deploy a docker container that holds a MariaDB. I want this on the cloud and be able to store and retrieve data from it. I understand how to setup the container and install MariaDB on it, but is what I’m trying to achieve in the end possible?

Docker-compose with Storm 0.10.0 and Zookeeper (connection loss)

having the following architecture deployed: Apache Kafka and Zookeeper inside a docker container: https://hub.docker.com/r/eucm/kzk/ Storm (Nimbus, Supervisor, UI) using these images: https://hub.docker.com/r/eucm/storm-nimbus/ https://hub.docker.com/r/eucm/storm-ui/ https://hub.docker.com/r/eucm/storm-supervisor/ Using the following ‘docker-compose.yml’ # A scalable cache # saves data to ./data/mongo mongo: image: mongo:3.0 container_name: “mongo” volumes: – “./data/mongo:/data/db” ports: – “27017:27017” # Kafka (A scalable queue) + Zookeeper […]

Whois with NodeJS Docker Image

I’m trying to get Whois working in NodeJS on a Dockerfile. I’m using Whois-UX (which just spawns a whois process with the whois linux command. I’m using the “node:argon” docker image, but it doesn’t have whois installed. There doesn’t seem to be a way to apt-get install whois inside the image either. I then tried […]

rawmemchr: symbol not found in nodegit with docker

When I run the server in the Docker container, everything works fine until I include the line nodegit = require ‘nodegit’. If NodeGit is required, on docker-compose up I get the following error: Error: Error relocating /usr/myContainer/node_modules/nodegit/build/Release/nodegit.node: __rawmemchr: symbol not found I tried NodeGit v.0.12.1 (the latest version) and v.0.11.0. Without Docker, NodeGit works fine […]

Docker Remote API Build with Node and Dockerode

I’m attempting to use the Docker Remote API to POST /build. My Dockerfile looks like. FROM node:5.8.0 COPY . /my-project WORKDIR /my-project RUN npm install CMD [“node”, “server.js”] I have this exact file in a .tar since that is what the API requires. The problem is it executes the commands – except when it gets […]

Node.js – Error: [unixODBC] on db.open with Docker

I’m using ODBC to access my database (Advantage Database Server) in an Node.js backend service. On my test server (CentOS 7.2.1511) everything works right. But on the production system (Docker, Debian 8.4) a weird error occurs when the app tries to connect to the database. This is my package.json: { “name”: “some-name”, “version”: “47.11”, “private”: […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.