commit a1fabfa0d295b6b5d9c7048e7e7ad041fcc1867f Author: Gary Ritchie Date: Mon Aug 29 16:47:50 2016 -0400 Initial hack works with some set-up. diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3f884a5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,40 @@ +FROM node:4-wheezy + +RUN apt-get update && apt-get install -y \ + build-essential \ + libssl-dev \ + git \ + ffmpeg \ + && rm -rf /var/lib/apt/lists/* + +# global npm dependencies +RUN npm install -g pm2 \ + && npm install -g grunt-cli \ + && npm install -g adapt-cli + +RUN cd / \ + && git clone https://github.com/adaptlearning/adapt_authoring.git + +WORKDIR /adapt_authoring + +RUN npm install --production + +## Currently have to run this within container so we can link to running mongodb container... +## docker run -it -P --link adaptdb --name adapt adaptframework bash +#RUN node install --install Y --serverPort 5000 --serverName localhost --dbHost adaptdb \ + # --dbName adapt-tenant-master --dbPort 27017 \ + # --dataRoot data --sessionSecret your-session-secret --useffmpeg Y \ + # --smtpService dummy --smtpUsername smtpUser --smtpPassword smtpPass --fromAddress you@example.com \ + # --name master --displayName Master --email admin --password password + +# upgrade the AuthoringTool and or Framework +#RUN node upgrade --Y/n Y + +# guest: 5000, host: 5000 +# guest: 5858, host: 5858 +# guest: 27017, host: 27027 + +# cd /vagrant/ +# pm2 start processes.json + +EXPOSE 5000 \ No newline at end of file