Initial hack works with some set-up.
This commit is contained in:
commit
a1fabfa0d2
40
Dockerfile
Normal file
40
Dockerfile
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user