FROM ubuntu:16.04
RUN apt-get update && \
apt-get -y install curl build-essential python-software-properties
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN apt-get update && \
apt-get install nodejs
RUN npm install -g pm2 realm-object-server@2.1.0
COPY realm-object-server-agreement.json /root/.realm/
RUN mkdir /realm && cd /realm && ros init server
RUN cd /realm/server && npm run build
Code Sample
See above.
Version of Realm and Tooling
Realm Object Server Version: 2.1.0
Flavor:
[X] Developer
[ ] Professional
[ ] Enterprise
Server OS & Version: Ubuntu 16.04 inside Docker
Logs
docker-compose build log
Step 9/9 : RUN cd /realm/server && npm run build
---> Running in d2f9c4d137d8
> my-ros-app@1.0.0 build /realm/server
> rm -rf dist; ./node_modules/.bin/tsc
node_modules/realm-object-server/dist/shared/TokenValidator.d.ts(3,24): error TS2307: Cannot find module './logger'.
npm ERR! Linux 4.4.0-87-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
npm ERR! node v6.11.4
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! my-ros-app@1.0.0 build: `rm -rf dist; ./node_modules/.bin/tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the my-ros-app@1.0.0 build script 'rm -rf dist; ./node_modules/.bin/tsc'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the my-ros-app package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! rm -rf dist; ./node_modules/.bin/tsc
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs my-ros-app
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls my-ros-app
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /realm/server/npm-debug.log
Goals
Build realm server
Expected Results
Everything should work
Actual Results
node_modules/realm-object-server/dist/shared/TokenValidator.d.ts(3,24): error TS2307: Cannot find module './logger'.
Steps to Reproduce
There is Docker file to reproduce:
Code Sample
See above.
Version of Realm and Tooling
Logs
docker-compose build log
Step 9/9 : RUN cd /realm/server && npm run build ---> Running in d2f9c4d137d8 > my-ros-app@1.0.0 build /realm/server > rm -rf dist; ./node_modules/.bin/tsc node_modules/realm-object-server/dist/shared/TokenValidator.d.ts(3,24): error TS2307: Cannot find module './logger'. npm ERR! Linux 4.4.0-87-generic npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build" npm ERR! node v6.11.4 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! my-ros-app@1.0.0 build: `rm -rf dist; ./node_modules/.bin/tsc` npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the my-ros-app@1.0.0 build script 'rm -rf dist; ./node_modules/.bin/tsc'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the my-ros-app package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! rm -rf dist; ./node_modules/.bin/tsc npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs my-ros-app npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls my-ros-app npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /realm/server/npm-debug.log