Commit efe32d30 authored by Michiel de Jong's avatar Michiel de Jong

add node api

parent 80e5ea8f
module.exports.getDockerOptions = function(host, application, envVars, MbOfRAM, localDataPath) {
var envVarArr = [];
for (var i in envVars) {
envVarArr.push(i + '=' + envVars[i]);
}
return {
createOptions: {
Image: 'indiehosters/' + application,
name: host,
Hostname: host,
Memory: MbOfRAM * 1024 * 1024,
MemorySwap: -1,
Env: envVarArr
},
startOptions: {
Binds: [ localDataPath + '/' + application + ':/data' ]
}
};
};
{
"name": "indiehosters-applications",
"repository": "https://github.com/indiehosters/applications",
"version": "0.0.1",
"dependencies": {
},
"main": "index.js"
}
FROM lamp
FROM indiehosters/lamp
RUN curl -O https://codeload.github.com/idno/Known/tar.gz/v0.7.5 && mv v0.7.5 known.tgz
......
FROM lamp
FROM indiehosters/lamp
RUN curl -O https://download.owncloud.org/community/owncloud-8.0.2.tar.bz2
......
FROM lamp
FROM indiehosters/lamp
ENV DEBIAN_FRONTEND noninteractive
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment