Forum Discussion
Nice work! I had tried to get a working Docker image put together for the SDK a while back, but couldn't quite get as far as you. I suspect the magic ingredient that you found that I missed is:
# this backlevel version of nodejs is supported in the SDK
RUN curl -sL https://rpm.nodesource.com/setup_8.x | bash -
- cjdinger4 years agoLeader
That was definitely one of the gotchas cgrinton. The other was the confusing error about being unable to create some install directories. (I saw another member struggled with this issue.) I solved that by creating a different location to install the nodejs apps with npm, and setting the environment variable to redirect before running the install for gulp and lithium-sdk.
# set a location to install these node apps RUN mkdir /home/sdkuser/.npm-global ENV NPM_CONFIG_PREFIX=/home/sdkuser/.npm-global
It would be nice if Khoros support or services decided to create an "official" Docker image for SDK users that they could keep current as the SDK gets versioned (which is infrequent, I know). Happy to donate my Dockerfile to the cause as a start.
Related Content
- 10 days ago
- 2 months ago
- 5 years ago