This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.synced_folder "./", "/vagrant_share", create: true | |
config.vm.provision "shell" do |s| | |
s.path = "provision/setup.sh" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mf/nodebox | |
# Maintainer | |
MAINTAINER Raif Harik <reharik@gmail.com> | |
# Expose the node.js port to the Docker host. | |
EXPOSE 3000 | |
# Entrypoint to docker shell | |
ENTRYPOINT ["docker-shell"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dockerfile for a base node installation with NVM | |
FROM debian:wheezy | |
USER root | |
RUN \ | |
mkdir -p /opt/app/current && \ | |
mkdir -p /var/log/nodejs && \ | |
mkdir -p /var/run/nodejs && \ | |
echo DIRECTORIES BUILT && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes 4; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 768; | |
# multi_accept on; | |
} | |
http { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"internalDependencies": { | |
"logger": "/src/logger" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(TestClassBase, pointlessDependency, logger) { | |
return class TestClass extends TestClassBase { | |
constructor(someOtherProp) { | |
super(); | |
this._someOtherProp = someOtherProp; | |
//do something here | |
} | |
setSomeOtherProp(val) { | |
this._someOtherProp = val; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
container: container ? container | |
: new _container(x=> | |
x.pathToPackageJson('../package.json') | |
.forDependencyParam('logger').requireThisInternalModule('./loggerMock') | |
.replace('lodash').withThis('_') | |
.replace('bluebird').withThis('Promise') | |
.complete()) | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var invariant = require('invariant'); | |
var path = require('path'); | |
var helpers = require('./DSLHelpers'); | |
module.exports = (function () { | |
function RegistryDSL() { | |
_classCallCheck(this, RegistryDSL); | |
this.dependencyDeclarations = []; | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = class RegistryDSL{ | |
constructor(){ | |
this._declarationInProgress; | |
... | |
} | |
requireDirectoryRecursively(dir){ | |
invariant(dir,'You must provide a valid directory'); | |
var absoluteDir= path.join(appRoot.path, dir); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mf/nodebox | |
# Maintainer | |
MAINTAINER Raif Harik <reharik@gmail.com> | |
# Expose the node.js port to the Docker host. | |
EXPOSE 3000 | |
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
ADD /app/package.json /tmp/package.json |