docker-adaptauthoring/Dockerfile

44 lines
1.2 KiB
Docker
Raw Normal View History

2016-08-29 20:47:50 +00:00
FROM node:4-wheezy
ENV AAT_VER=0.2.2
MAINTAINER Gary Ritchie <gary@garyritchie.com>
2016-08-29 20:47:50 +00:00
RUN apt-get update && apt-get install -y \
build-essential \
ffmpeg \
git \
libssl-dev \
2016-08-29 20:47:50 +00:00
&& 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 / \
2016-10-09 23:57:12 +00:00
&& git clone --branch v${AAT_VER} https://github.com/adaptlearning/adapt_authoring.git
2016-08-29 20:47:50 +00:00
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
2016-08-29 20:47:50 +00:00
# guest: 5000, host: 5000
# guest: 5858, host: 5858
# guest: 27017, host: 27027
EXPOSE 5000
2016-08-29 20:47:50 +00:00
CMD pm2 start --no-daemon processes.json