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
Step 13 : COPY /app /opt/app/current | |
---> 5a22c3f3e1a7 | |
Removing intermediate container e25fb63a67cb | |
Step 14 : RUN pwd | |
---> Running in 252c00cda6ba | |
/opt/app/current | |
---> 57455a74dcf7 | |
Removing intermediate container 252c00cda6ba | |
Step 15 : RUN ls | |
---> Running in a65d7cbd1818 |
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 |
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
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 = { | |
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
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
"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
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
# 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
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"] |