Sie sind auf Seite 1von 1

FROM node:0.

10

RUN mkdir -p /usr/src/app


WORKDIR /usr/src/app

COPY . /usr/src/app

ENV baseUrl http://localhost


ENV auth_endpoint https://secure.vendhq.com/connect
ENV token_service .vendhq.com/api/1.0/token
ENV client_id xxx
ENV client_secret xxx
ENV ironWorkersUrl https://worker-aws-us-east-
1.iron.io:443/2/projects/xxx/tasks/webhook
ENV ironWorkersOauthToken xxx
ENV importStockOrderToWarehouse wh.order.import.cached
ENV importStockOrderToPos create.consignment.products
ENV generateStockOrderWorker wh.order.gen.serial.paged
ENV removeUnfulfilledProducts wh.order.clean.fulfilled
ENV removeUnreceivedProducts wh.order.clean.received
ENV stockOrderWorker warehouse.manual.mongo

RUN echo "module.exports = { 'site': { 'baseUrl':'http://${VM_EXTERNAL_IP}',


'proxyUrl': '' }, 'logging': { 'console': true, 'file': false }, 'prestashop':
{ 'apiKey':'' }, 'vend':{ 'auth_endpoint':'https://secure.vendhq.com/connect',
'token_service':'.vendhq.com/api/1.0/token', 'client_id':'${VEND_CLIENT_ID}',
'client_secret':'${VEND_CLIENT_SECRET}' }, 'ironWorkersUrl':'${IW_URL}',
'ironWorkersOauthToken':'${IW_OAUTH_TOKEN}', 'importStockOrderToWarehouse':'$
{IMPORT_STOCK_ORDER_TO_WAREHOUSE}', 'importStockOrderToPos':'$
{IMPORT_STOCK_ORDER_TO_POS}', 'generateStockOrderWorker':'$
{GENERATE_STOCK_ORDER_WORKER}', 'removeUnfulfilledProducts':'$
{REMOVE_UNFULFILLED_PRODUCTS_WORKER}', 'removeUnreceivedProducts':'$
{REMOVE_UNRECEIVED_PRODUCTS_WORKER}', 'stockOrderWorker':'$
{STOCK_ORDER_WORKER}' };" > server/config.staging.js
RUN cat server/config.staging.js

RUN npm install


RUN npm install grunt-cli
RUN npm install bower
RUN node_modules/bower/bin/bower --allow-root install
RUN node_modules/grunt-cli/bin/grunt deploy:staging

EXPOSE 8080
CMD [ "npm", "start" ]

Das könnte Ihnen auch gefallen